Single-cell Variational Inference
- Free software: MIT license
- Documentation: https://scvi.readthedocs.io.
- Install Python 3.6 or later. We typically use the Miniconda Python distribution.
- Install PyTorch. If you have an Nvidia GPU, be sure to install a version of PyTorch that supports it -- scVI runs much faster with a discrete GPU.
- Install
scvi
through conda (conda install scvi -c bioconda
) or through pip (pip install scvi
). Alternatively, you may clone this repository and manually install the dependencies listed in setup.py.
- Refer to this Jupyter notebook to see how to import datasets into scVI.
- Refer to this Jupyter notebook to see how to train the scVI model, impute missing data, detect differential expression, and more!
To recreate the results appearing in the paper referenced below, run
python ./run_benchmarks.py --dataset=cortex
Valid choices for --dataset
include synthetic
, cortex
, brain_large
, retina
, cbmc
, hemato
, and pbmc
. You may also specify an arbitrary .loom
, .h5ad
(AnnData), or .csv
file.
Romain Lopez, Jeffrey Regier, Michael B Cole, Michael Jordan, Nir Yosef. "Bayesian Inference for a Generative Model of Transcriptome Profiles from Single-cell RNA Sequencing." In submission. Preprint available at https://www.biorxiv.org/content/early/2018/03/30/292037