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

After reading your data file (loom, h5ad, xlsx, csv, etc.) via adata = sc.read(filename, **params), applying some basic preprocessing (gene selection, normalization, etc.), e.g. using scv.pp.recipe_velocity(adata, **params), velocity estimation is performed using:

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)

For further details - and highly recommended for getting started - read the documentation and take a look at 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.5.tar.gz (24.1 kB view details)

Uploaded Source

Built Distribution

scvelo-0.1.5-py3-none-any.whl (60.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scvelo-0.1.5.tar.gz
Algorithm Hash digest
SHA256 dba45747431500cbef312703ceb8338f1edd27af5f142954ab0d34520cead5f0
MD5 ab7528ce33b8215290554ce616a90b8c
BLAKE2b-256 a9022c0ae430c2511f4a65141e033503ad7b6e7ffa6f9ba47d9fe9e014a6291b

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for scvelo-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 70f379b1630c90d2941f12e8e5d4b5b049866784ec367d122c93b31fe1692ae7
MD5 99bd9b408fb530a3df5903274c2b9776
BLAKE2b-256 d90e2cd23450033e2a16f58cc50c16bbfafb60bad3f0e210b3ce6de1d7719d6c

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