PHATE is a tool for visualizing high dimensional single-cell data with natural progressions or trajectories. PHATE uses a novel conceptual framework for learning and visualizing the manifold inherent to biological systems in which smooth transitions mark the progressions of cells from one state to another. To see how PHATE can be applied to single-cell RNA-seq datasets from hematopoietic stem cells, human embryonic stem cells, and bone marrow samples, check out our preprint on BioRxiv.
PHATE has been implemented in Python (2.7 and >=3.5), R and MATLAB.
Python installation and dependencies
Installation with pip
The Python version of PHATE can be installed using:
pip install --user phate
Installation from source
The Python version of PHATE can be installed from GitHub by running the following from a terminal:
git clone --recursive git://github.com/KrishnaswamyLab/PHATE.git cd Python python setup.py install --user
Usage
PHATE has been implemented with an API that should be familiar to those with experience using scikit-learn. The core of the PHATE package is the PHATE class which is a subclass of sklearn.base.BaseEstimator. To get started, import phate and instantiate a phate.PHATE() object. Just like most sklearn estimators, PHATE() objects have both fit() and fit_transform() methods. For more information, check out our notebook below.
If you want to try running our test script on a DLA fractal tree, run the following in a Python interpreter:
import phate tree_data, tree_clusters = phate.tree.gen_dla() phate_operator = phate.PHATE(k=15, t=100) tree_phate = phate_operator.fit_transform(tree_data) phate.plot.scatter2d(phate_operator, c=tree_clusters) # or phate.plot.scatter2d(tree_phate, c=tree_clusters) phate.plot.rotate_scatter3d(phate_operator, c=tree_clusters)
Jupyter Notebooks
A demo on PHATE usage and visualization for single cell RNA-seq data can be found in this notebook: http://nbviewer.jupyter.org/github/KrishnaswamyLab/PHATE/blob/master/Python/tutorial/EmbryoidBody.ipynb
A second tutorial is available here which works with the artificial tree shown above in more detail: http://nbviewer.jupyter.org/github/KrishnaswamyLab/PHATE/blob/master/Python/tutorial/PHATE_tree.ipynb
Metadata
Release files for phate 0.2.8.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| phate-0.2.8.2.tar.gz | 21.0 kB | Details |
Release files / phate-0.2.8.2.tar.gz
| Download URL | phate-0.2.8.2.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2a98488199a963fc090ddc94a49d59e74b6062e40c3500b65115deea8248e111
|
|
BLAKE2b-256 checksum How to use checksums |
72bfc301a39308ef3b21230fc8c4e8a8cf928402ba9e3fa7e05f44dd3157d2e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |