Giter Club home page Giter Club logo

scvelo's Introduction

PyPI Docs travis

scvelo โ€“ stochastic single cell RNA velocity

https://i.ibb.co/XWsfsvD/Image-Pasted-at-2018-11-28-18-24.png

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.

scvelo's People

Contributors

volkerbergen avatar flying-sheep avatar marius1311 avatar stefanpeidli avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.