Skip to main content

CellRank for directed single-cell fate mapping

Project description

PyPI Bioconda Downloads CI CI-Notebooks Documentation Coverage

CellRank for directed single-cell fate mapping

https://raw.githubusercontent.com/theislab/cellrank/master/resources/images/cellrank_fate_map.png

CellRank is a toolkit to uncover cellular dynamics based on Markov state modeling of single-cell data. It contains two main modules: kernels compute cell-cell transition probabilities and estimators generate hypothesis based on these. Our kernels work with a variety of input data including RNA velocity (see La Manno et al. (2018) and Bergen et al. (2020)), cellular similarity (both transcriptomic and spatial) and pseudotime, among others. Our VelocityKernel takes into account uncertainty in the velocities and allows you to aggregate the short-range fate relations given by RNA velocity into longer trends along the phenotypic manifold. Our main estimator is Generalized Perron Cluster Cluster Analysis (G-PCCA) [GPCCA18] which coarse-grains the Markov chain into a set of macrostates which represent initial, terminal and intermediate states. For each transient cell, we compute its fate probability towards any terminal state. We show an example of such a fate map in the figure above, which has been computed using the data of pancreatic endocrinogenesis. CellRank combines kernels and estimators with a powerful plotting API, enabling you to visualize e.g. smooth gene expression trends along lineages or fate-informed circular embeddings, to name just a few.

CellRank scales to large cell numbers, is fully compatible with scanpy and scvelo and is easy to use. For installation instructions, documentation and tutorials, visit cellrank.org.

Getting started with CellRank

If you’re new to CellRank, make sure to go though the basic tutorial which introduces you to CellRank’s high-level API. Most biological systems require a bit more control, so be sure to check out the kernels and estimators tutorial which allows to unlock the full power of CellRank. If you want to see individual functions in action, visit our gallery.

Manuscript

Please see our preprint on bioRxiv to learn more.

CellRank’s key applications

  • compute initial & terminal as well as intermediate macrostates of your biological system

  • infer fate probabilities towards the terminal states for each individual cell

  • visualize gene expression trends along specific lineages while accounting for the continuous nature of fate determination

  • identify potential driver genes for each identified cellular trajectory

Installation

Install CellRank by running:

conda install -c conda-forge -c bioconda cellrank
# or with extra libraries, useful for large datasets
conda install -c conda-forge -c bioconda cellrank-krylov

or via PyPI:

pip install cellrank
# or with extra libraries, useful for large datasets
pip install 'cellrank[krylov]'
# or with external modules, see External API
pip install 'cellrank[external]'

Why is it called “CellRank”?

CellRank does not rank cells, we gave the package this name because just like Google’s original PageRank algorithm, it works with Markov chains to aggregate relationships between individual objects (cells vs. websites) to learn about more global properties of the underlying dynamics (initial & terminal states and fate probabilities vs. website relevance).

Support

We welcome your feedback! Feel free to open an issue, send us an email or tweet if you encounter a bug, need our help or just want to make a comment/suggestion.

Contributing

We actively encourage any contribution! To get started, please check out both the contribution guide as well as the external API. CellRank’s modular structure makes it easy to contribute, be it a new method to compute cell-cell transition probabilities (kernels), a new way to analyze a transition matrix (estimators) or an addition to the plotting API. If you’re thinking of contributing a new kernel, we have a kernel tutorial that guides you trough the process.

CellRank was developed in collaboration between the Theislab and the Peerlab.

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

cellrank-1.5.0.tar.gz (291.2 kB view details)

Uploaded Source

Built Distribution

cellrank-1.5.0-py3-none-any.whl (250.6 kB view details)

Uploaded Python 3

File details

Details for the file cellrank-1.5.0.tar.gz.

File metadata

  • Download URL: cellrank-1.5.0.tar.gz
  • Upload date:
  • Size: 291.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for cellrank-1.5.0.tar.gz
Algorithm Hash digest
SHA256 c52f90f2e767e30a7a86a7991606fcecdcd076e602950a7551a8d7ad1d6ebed8
MD5 eff45b3325d5311536ff80cceef77c69
BLAKE2b-256 e02a8c1014f958ad25268d1baf6aeb04f7b047add6eb6768c87ac8c0ab0657c1

See more details on using hashes here.

File details

Details for the file cellrank-1.5.0-py3-none-any.whl.

File metadata

  • Download URL: cellrank-1.5.0-py3-none-any.whl
  • Upload date:
  • Size: 250.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for cellrank-1.5.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd0f0b542b4f4c6b382af70ad2ecb1f6ccfd60db6a87515faacab8fa4ccb7266
MD5 c920d13f332ae64b07d294872a5aff58
BLAKE2b-256 5867cc49eec883f3db74df2adcafebe21a67869417632b31c3347fc63c6f7f1e

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