Skip to main content

scvelo - stochastic single cell RNA velocity

Project description

PyPI Docs travis

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 (velocity specific workflows) and scanpy (basic workflows) as:

import scvelo as scv
import scanpy.api as sc

Read your data file (loom, h5ad, xlsx, csv, etc.) with adata = sc.read(filename, **params), apply some basic preprocessing (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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scvelo-0.1.8.tar.gz (30.3 kB view details)

Uploaded Source

Built Distribution

scvelo-0.1.8-py3-none-any.whl (83.9 kB view details)

Uploaded Python 3

File details

Details for the file scvelo-0.1.8.tar.gz.

File metadata

  • Download URL: scvelo-0.1.8.tar.gz
  • Upload date:
  • Size: 30.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.18.4

File hashes

Hashes for scvelo-0.1.8.tar.gz
Algorithm Hash digest
SHA256 b6828cb62977ccfbcb259ea7dd9f3255fc359cf5fbb8219090ce7c8a94d0135e
MD5 2772b2f176eda115110a8294f48e37ac
BLAKE2b-256 978fde203a87f9bf732dcd98abb5a4a53a89f45a9098002a4ea95b4e6284d23c

See more details on using hashes here.

File details

Details for the file scvelo-0.1.8-py3-none-any.whl.

File metadata

  • Download URL: scvelo-0.1.8-py3-none-any.whl
  • Upload date:
  • Size: 83.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: python-requests/2.18.4

File hashes

Hashes for scvelo-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 c8fabe368ba20c9ba4560e9c8f21d34560ef329899be213d085461193c94204e
MD5 21b53a1d62d501772b6d44202b713a2d
BLAKE2b-256 9108d11f3107f138148a1592694dcbc9d9ee301f21f5414711dd6c70dde627c8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page