SONAR is the algorithm of cell-type deconvolution for spatial transcriptomics
devtools:: install_github("lzygenomics/SONAR")
Install the dependence
Install SONAR
Download the SONAR files: Follow the Example/SONAR-entrance.Rmd IS ALL YOU NEED
/inst/extdata/
These files store the required input information, See SONAR-entrance.Rmd for specific format requirements.
/result/
These files store the output results.
Proportions of all cell types in each spot (SONAR.results.txt);
Spatial pie plots (pie.pdf);
Spatial distribution of specific cell types proportion (abs_prop.pdf / scaled_prop.pdf);
Colocalization(correlation along the spatial) for pairs of cell types (colocalization.pdf).
/core-code/
no need to operate.
These files store the core code, and store the preprocessed data that delivered to SONAR.
Please Follow the Example/SONAR-entrance.Rmd
https://www.nature.com/articles/s41467-023-40458-9
Liu, Z., Wu, D., Zhai, W. et al. SONAR enables cell type deconvolution with spatially weighted Poisson-Gamma model for spatial transcriptomics. Nat Commun 14, 4727 (2023). https://doi.org/10.1038/s41467-023-40458-9