Skip to main content

scvelo - stochastic single cell RNA velocity

Project description

PyPI Docs travis

scvelo – stochastic single cell RNA velocity

https://drive.google.com/uc?export=view&id=1rcgHou-YFTJCKDR-Vd37zQ_AvLiaHLut

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


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.15.tar.gz (65.3 kB view details)

Uploaded Source

Built Distribution

scvelo-0.1.15-py3-none-any.whl (227.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for scvelo-0.1.15.tar.gz
Algorithm Hash digest
SHA256 4c7c89c8b02c7b7f68be3b07acb7971b96ff876a25e03942a227579c7614f0f2
MD5 b66f56ae766593f9e2df819ea7bdb661
BLAKE2b-256 5d711a36b4c4b7ab109c51253d2d7192c11c128d0141b4b1043490df1ff74d07

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for scvelo-0.1.15-py3-none-any.whl
Algorithm Hash digest
SHA256 94dc80ec28812e2c5599dca8bc28c1d1b428babffe227fcbe2fc602c252f05d4
MD5 e732ca61859488c978436616afe5cc12
BLAKE2b-256 cc5b39aaae79f32ba8bf675cadf4349d54310c0f02b5f3827ab1e5468219ee36

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