SingCellaR provides a comprehensive set of R functions for analyzing single-cell RNA sequencing (scRNA-seq) data. The package includes functionalities for:
supporting multiple integrative approaches:
Harmony,
Seurat,
Liger,
Scanorama,
Limma,
and Combat
SingCellaR facilitates downstream analyses for each type of data integration within the same object. The users can visualize the results such as UMAP, tSNE, and etc., from different integrative methods in a single platform.
tSNE
UMAP
Force-directed graph
KNN-graph visualization in both 2D and 3D
Diffusion map
Violin plot
Bubble plot
Heatmap
Different types of plots can be visualized with different types of information:
- Individual gene expression
- Gene set score
- AUCell score
If you use SingCellaR for your research, please cite our papers:
G. Wang, W. X. Wen, A. J. Mead, Roy, A, B. Psaila, and S. Thongjuea (2022). Processing single-cell RNA-seq datasets using SingCellaR. STAR Protocols (doi.org/10.1016/j.xpro.2022.101266) https://www.sciencedirect.com/science/article/pii/S2666166722001460
Roy, A., G. Wang, D. Iskander, S. O’Byrne, N. Elliott, J. O’Sullivan, G. Buck, E. F. Heuston, W. X. Wen, A. R. Meira, P.Hua, A. Karadimitris, A. J. Mead, D. M. Bodine, I. Roberts, B. Psaila and S. Thongjuea (2021). Transitions in lineage specification and gene regulatory networks in hematopoietic stem/progenitor cells over human development. Cell Reports 36(11).https://www.sciencedirect.com/science/article/pii/S2211124721011451
Installation (in R >=4.2)
install.packages('devtools')
library(devtools)
install_github('supatt-lab/SingCellaR')
Here is an example to create an environment, install packages within it, then use the created environment from R:
library(reticulate)
#create a new environment
conda_create("r-reticulate")
The reticulate will create the r-miniconda in your working environment (e.g., in /Users/supat/Library/r-miniconda/envs)
To install python library in R use:
>py_install("fa2")
More information can be found from https://rstudio.github.io/reticulate/articles/python_packages.html#conda-installation-1
To install Scanorama, the user has to run ‘pip’ command line in the created environment working directory e.g., in /Users/supat/Library/r-miniconda/envs
> cd /Users/supat/Library/r-miniconda/envs/r-reticulate
The standard ‘pip’ software using the command line below can be used :
> ./pip install scanorama
To install Scrublet, please see https://github.com/swolock/scrublet. The ‘pip’ command line can be used to install Scrublet, similar to the Scanorama installation.
> ./pip install scrublet
SingCellaR implemented c++ functions that need to be compiled. These functions built on RcppArmadillo, RcppAnnoy, and RcppParallel that require the c++ compilation.
For mac users, the compiler ‘Clang’ has to be installed https://clang.llvm.org/get_started.html
Install gfortran can be found here https://gcc.gnu.org/wiki/GFortranBinaries. Install Clang can be found here https://clang.llvm.org/get_started.html