Skip to main content

Palantir for modeling continuous cell state and cell fate choices in single cell data

Project description

Palantir

Palantir is an algorithm to align cells along differentiation trajectories. Palantir models differentiation as a stochastic process where stem cells differentiate to terminally differentiated cells by a series of steps through a low dimensional phenotypic manifold. Palantir effectively captures the continuity in cell states and the stochasticity in cell fate determination. Palantir has been designed to work with multidimensional single cell data from diverse technologies such as Mass cytometry and single cell RNA-seq.

Installation and dependencies

  1. Palantir has been implemented in Python3 and can be installed using:

     $> pip install PhenoGraph
     $> pip install palantir
    
  2. Palantir depends on a number of python3 packages available on pypi and these dependencies are listed in setup.py

    All the dependencies will be automatically installed using the above commands

  3. To uninstall:

     $> pip uninstall palantir
    
  4. If you would like to determine gene expression trends, please install R programming language and the R package GAM . You will also need to install the rpy2 module using

     $> pip install .['PLOT_GENE_TRENDS']
         OR,
     $> pip install rpy2
    

    In case of compiler error during installation of rpy2, try to link your compiler in env. Example:

     $> env CC=/usr/local/Cellar/gcc/xxx/bin/gcc-x pip install .['PLOT_GENE_TRENDS']
    

    where x should be replaced with the version numbers

  5. Palantir can also be used with Scanpy. It is fully integrated into Scanpy, and can be found under Scanpy's external modules (link)

Usage

A tutorial on Palantir usage and results visualization for single cell RNA-seq data can be found in this notebook: http://nbviewer.jupyter.org/github/dpeerlab/Palantir/blob/master/notebooks/Palantir_sample_notebook.ipynb

Processed data and metadata

scanpy anndata objects are available for download for the three replicates generated in the manuscript: Rep1, Rep2, Rep3

Each object has the following elements

  • .X: Filtered, normalized and log transformed count matrix
  • .raw: Filtered raw count matrix
  • .obsm['MAGIC_imputed_data']: Imputed count matrix using MAGIC
  • .obsm['tsne']: tSNE maps presented in the manuscript generated using scaled diffusion components as inputs
  • .obs['clusters']: Clustering of cells
  • .obs['palantir_pseudotime']: Palantir pseudo-time ordering
  • .obs['palantir_diff_potential']: Palantir differentation potential
  • .obsm['palantir_branch_probs']: Palantir branch probabilities
  • .uns['palantir_branch_probs_cell_types']: Column names for branch probabilities
  • .uns['ct_colors']: Cell type colors used in the manuscript
  • .uns['cluster_colors']: Cluster colors used in the manuscript
  • .varm['mast_diff_res_pval']: MAST p-values for differentially expression in each cluster compared to others
  • .varm['mast_diff_res_statistic']: MAST statistic for differentially expression in each cluster compared to others
  • .uns['mast_diff_res_columns']: Column names for the differential expression results

Comparison to trajectory detection algorithms

Notebooks detailing the generation of results comparing Palantir to trajectory detection algorithms are available here

Citations

Palantir manuscript is available from Nature Biotechnology. If you use Palantir for your work, please cite our paper.

    @article{Palantir_2019,
            title = {Characterization of cell fate probabilities in single-cell data with Palantir},
            author = {Manu Setty and Vaidotas Kiseliovas and Jacob Levine and Adam Gayoso and Linas Mazutis and Dana Pe'er},
            journal = {Nature Biotechnology},
            year = {2019},
            month = {march},
            url = {https://doi.org/10.1038/s41587-019-0068-4},
            doi = {10.1038/s41587-019-0068-4}
    }

Release Notes

Version 1.0.0

  • A fix to issue#41
  • A fix to issue#42
  • Revamped tutorial with support for Anndata and force directed layouts

Version 0.2.6

Version 0.2.5

  • A fix related to issue#28. When identifying terminal states, duplicate values were generated instead of unique ones.

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

palantir-1.0.0.tar.gz (18.1 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

palantir-1.0.0-py3-none-any.whl (26.6 kB view details)

Uploaded Python 3

File details

Details for the file palantir-1.0.0.tar.gz.

File metadata

  • Download URL: palantir-1.0.0.tar.gz
  • Upload date:
  • Size: 18.1 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.5

File hashes

Hashes for palantir-1.0.0.tar.gz
Algorithm Hash digest
SHA256 5c5d24d9ab1217abf2185b0f385c87deeca6b51d0c59f5db53d09fb59e132839
MD5 e810488bf2ecb15f3fc9df163c478a1e
BLAKE2b-256 fc19f8203a10180007b43ad5c1115477621f3597ddac7a19305507f7840049c5

See more details on using hashes here.

File details

Details for the file palantir-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: palantir-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 26.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.22.0 setuptools/46.0.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.6.5

File hashes

Hashes for palantir-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4e616201a267c994c6102ad25b1cf722d4dc6804a9ea2557516167a761c04b20
MD5 5f8322bef9de7d5d0ac4a2daf3963c55
BLAKE2b-256 02340571343fc6fc8b269f1e103038e17d447556f34c7b37c255b512b2829fb1

See more details on using hashes here.

Supported by

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