The sctransform package was developed by Christoph Hafemeister in Rahul Satija’s lab at the New York Genome Center and described in Hafemeister and Satija, Genome Biology 2019. Recent updates are described in (Choudhary and Satija, Genome Biology, 2022). Core functionality of this package has been integrated into Seurat, an R package designed for QC, analysis, and exploration of single cell RNA-seq data.
Installation:
# Install sctransform from CRAN
install.packages("sctransform")
# Or the development version from GitHub:
# the development version currently support v2 regularization
# v2 regularization will be available on CRAN soon
# install.packages("remotes")
::install_github("satijalab/sctransform", ref="develop") remotes
Running sctransform:
# Runnning sctransform on a UMI matrix
<- sctransform::vst(umi_count_matrix)$y
normalized_data # v2 regularization
<- sctransform::vst(umi_count_matrix, vst.flavor="v2")$y
normalized_data
# Runnning sctransform on a Seurat object
<- Seurat::SCTransform(seurat_object)
seurat_object #v2 regularization
<- Seurat::SCTransform(seurat_object, vst.flavor="v2") seurat_object
For usage examples see vignettes in inst/doc or use the built-in help
after installation
?sctransform::vst
Available vignettes:
Please use the issue tracker if you encounter a problem
Hafemeister, C. & Satija, R. Normalization and variance stabilization of single-cell RNA-seq data using regularized negative binomial regression. Genome Biology 20, 296 (2019). https://doi.org/10.1186/s13059-019-1874-1. An early version of this work was used in the paper Developmental diversification of cortical inhibitory interneurons, Nature 555, 2018.
Choudhary, S. & Satija, R. Comparison and evaluation of statistical error models for scRNA-seq. Genome Biology 23.1 (2022). https://doi.org/10.1186/s13059-021-02584-9