scvelo - stochastic single cell RNA velocity
Project description
scvelo – stochastic single cell RNA velocity
scvelo is a scalable toolkit for estimating and analyzing stochastic RNA velocities in single cells.
RNA velocity is the time derivative of mRNA abundance obtained by distinguishing unspliced (precursor) from spliced (mature) mRNA, and serves as a predictive indicator for the future state of an individual cell. The main principles of RNA velocity estimation have been presented in velocyto (La Manno et al., 2018) and are based on a deterministic model of transcriptional dynamics. scvelo uses a stochastic formulation and incorporates intrinsic expression variability.
It is compatible with scanpy (Wolf et al., 2018). Making use of sparse implementation, iterative neighbors search and other techniques, it is remarkably efficient in terms of memory and runtime without loss in accuracy (<1GB and <1min for 30,000 cells on a MacBook Pro 2017 with 2.3 GHz i5).
Usage Principles
Install scvelo from PyPI using pip install scvelo.
Import scvelo as:
import scvelo as scv
Read your data file (loom, h5ad, xlsx, csv, etc.) with adata = scv.read(filename, **params), if not done yet preprocess you data (gene selection, normalization, etc.), e.g. using scv.pp.filter_and_normalize(adata, **params), compute moments with scv.pp.moments(adata, **params), and perform velocity estimation:
scv.tl.velocity(adata, mode='stochastic', **params)
The velocity vectors are translated into likely cell transitions with:
scv.tl.velocity_graph(adata, **params)
Finally the velocities can be projected and visualized in any embedding (e.g. UMAP) using:
scv.tl.velocity_embedding(adata, basis='umap', **params) scv.pl.velocity_embedding(adata, basis='umap', **params)
I highly recommend going through the documentation and some exemplary notebooks.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file scvelo-0.1.16.tar.gz
.
File metadata
- Download URL: scvelo-0.1.16.tar.gz
- Upload date:
- Size: 73.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 29bd0db5ac917e8b793fdace45c370292205d7b128a499c6b978c7e22df7a6f3 |
|
MD5 | fa358f729e1ec56c9f9e6f3c802977dc |
|
BLAKE2b-256 | 9746644fed6b31aca03bfceccc4c4fbc477b180170299cb2c032f1be8fe3c776 |
File details
Details for the file scvelo-0.1.16-py2.py3-none-any.whl
.
File metadata
- Download URL: scvelo-0.1.16-py2.py3-none-any.whl
- Upload date:
- Size: 250.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.18.4
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 931bccc381819cbe866de937362305ed8d5d140f4de7fcb88c89c9f59951c3ec |
|
MD5 | a9ea076e35bb9614e367ae9151cb8461 |
|
BLAKE2b-256 | 225be14d8bab16c908ace827d1a340f2987bc548a8ae2381a84256ddf6d06a41 |