Robust integration and annotation of single-cell and spatial multi-omics data using interpretable gene programs
You can install the released version of SSpMosaic from Github with the following code.
- R version >= 4.0.0.
- Dependent R packages: nnls, Seurat, SeuratObject, WGCNA, methods, Matrix, RcppAnnoy, hdWGCNA, igraph, qlcMatrix, stats, ggplot2, grDevices, uwot, utils, stringr, patchwork, dplyr
# install devtools if necessary
install.packages('devtools')
# install the SSpMosaic package
devtools::install_github('zyllluck/SSpMosaic')
# load package
library(SSpMosaic)
SSpMosaic tutorials are as follows.
For every analytical task, the SSpMosaic program must first be generated, which comprises two steps: SSpMosaic program generation and the subsequent SSpMosaic program network-propagation step.
For integration tasks, SSpMosaic program generation should be executed on each batch of data individually, followed by running the network-propagation step as a whole; finally, proceed according to the SSpMosaic integration tutorial.
For single-cell annotation tasks,SSpMosaic program generation should be executed on the reference dataset. If the reference dataset has multiple batches,it needs to be run on each batch separately, followed by running the network-propagation step as a whole;finally, proceed according to the SSpMosaic single-cell annotation tutorial.
For deconvolution tasks, SSpMosaic program generation should be executed on the single-cell reference data. If the reference single-cell data has multiple batches,it needs to be run on each batch separately, followed by running the network-propagation step as a whole;finally, proceed according to the SSpMosaic deconvolution tutorial.
The following two steps should be run in sequence before using the downstream functions of SSpMosaic.
SSpMosaic program generation tutorial is in generate program
SSpMosaic program network-propagation tutorial is in network-propagation
To use the downstream functions of SSpMosaic, it is necessary to first generate the SSpMosaic program in accordance with the above two steps.
SSpMosaic integration tutorial is in integration
SSpMosaic single-cell annotation tutorial is in sc_annotation
SSpMosaic deconvolution tutorial is in deconvolution
All data in tutorials can be downloaded via the following link: https://drive.google.com/drive/folders/1VDpHAHBjAoKk1u8eR10A4oqMnkeSbT8c?usp=drive_link
All feedback, bug reports and suggestions are warmly welcomed! Please make sure to raise issues with a detailed and reproducible example and also please provide the output of your sessionInfo() in R!
