Skip to content

The R Shiny App for machine learning analysis and visualization of cellular spatial point patterns under hypercaloric diet shifts.

License

Notifications You must be signed in to change notification settings

viktormiok/CsppaRshiny

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version GitHub code size in bytes GitHub issues

dependencies commit GitHub

Edit with Gitpod

CsppaRshiny

Overview

The R shiny app CsppaRshiny performs machine learning analysis and visualization of cellular spatial point patterns under hypercaloric diet shifts and it is based on Csppa R-package.

The application visualizes spatial point pattern density plots in 3D and 2D, allowing flexibility in representing the data and emphasizing the question of interest. It also allows for overall and local significance analysis of spatial point pattern densities, employing several statistical approaches.

K Nearest Neighbour and Random Forest classification algorithms are implemented to compare the grouping of the cells expressing different markers within and between the diets. On top of this, correlation and spatial auto-correlation of the cells expressing different markets can be compared using the Mentel and Moran I tests, respectively.

Application

Here we focus on the astrocytes from the arcuate nucleus of the mouse brain and the expression of Gfap and Aldh1l1 genes recovering spatial point patterns under a standard chow (SC), 5 and 15-day high-fat high sugar (HFHS) diet. The R-package Csppa allows for assessing whether these astrocyte populations are spatially organized and whether they tend to form local identical clusters in response to an HFHS diet over time. To do that, the algorithm measures the degree of spatial coherence (depicting the level of similarity between neighbors) of each astrocytic sub-type in different conditions (SC, 5d, or 15d HFHS diet) by applying Moran I spatial autocorrelation coefficient, previously described as an indicator of the level of spatial dispersion. On top of that, employing a random forest classifier determines the partitioning of the feature space shared by astrocytes expressing Gfap and Aldh1l1 in each experimental group.

How to Run the App

If you downloaded the CsppaRshiny app locally, have all the dependencies, and wish to run it, open the app.R file in RStudio and click the Run App button. You need to load functions from the R folder into RStudio before running the CsppaRshiny app or you need to install the R-package Csppa.

Data

Data required for cellular spatial point pattern analysis will be deposited online soon:

Data type Link to the data Code to get the data
Aldh1l1 only link link
Gfap only link link
Double positive link link

Tutorials

Please see the following notebook for detailed examples of what you can do with CsppaRshiny:

CsppaRshiny example:

License

CsppaRshiny is distributed under the MIT license. The information about the license of CsppaRshiny can be found in the LICENSE file. Please read the license before using CsppaRshiny.

References

Publications related to CsppaRshiny include:

Please cite the relevant publications if you use CsppaRshiny.

About

The R Shiny App for machine learning analysis and visualization of cellular spatial point patterns under hypercaloric diet shifts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published