Skip to main content

PHATE

Project description

Latest PyPi version Latest CRAN version Travis CI Build Read the Docs bioRxiv Preprint Twitter GitHub stars

PHATE (Potential of Heat-diffusion for Affinity-based Trajectory Embedding) is a tool for visualizing high dimensional data. PHATE uses a novel conceptual framework for learning and visualizing the manifold to preserve both local and global distances.

To see how PHATE can be applied to datasets such as facial images and single-cell data from human embryonic stem cells, check out our preprint on BioRxiv.

Kevin R. Moon, David van Dijk, Zheng Wang, et al. **Visualizing Transitions and Structure for Biological Data Exploration**. 2018. *BioRxiv*.

PHATE has been implemented in Python >=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

Quick Start

If you have loaded a data matrix data in Python (cells on rows, genes on columns) you can run PHATE as follows:

import phate
phate_op = phate.PHATE()
data_phate = phate_op.fit_transform(data)

PHATE accepts the following data types: numpy.array, scipy.spmatrix, pandas.DataFrame and anndata.AnnData.

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 Jupyter notebook. A second tutorial is available here which works with the artificial tree shown above in more detail. You can also access interactive versions of these tutorials on Google Colaboratory: single cell RNA seq, artificial tree.

Help

If you have any questions or require assistance using PHATE, please contact us at https://krishnaswamylab.org/get-help

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

phate-0.4.1.tar.gz (20.8 kB view details)

Uploaded Source

Built Distributions

phate-0.4.1-py3.7.egg (43.1 kB view details)

Uploaded Source

phate-0.4.1-py3.6.egg (43.0 kB view details)

Uploaded Source

phate-0.4.1-py3.5.egg (43.5 kB view details)

Uploaded Source

phate-0.4.1-py3-none-any.whl (21.4 kB view details)

Uploaded Python 3

File details

Details for the file phate-0.4.1.tar.gz.

File metadata

  • Download URL: phate-0.4.1.tar.gz
  • Upload date:
  • Size: 20.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for phate-0.4.1.tar.gz
Algorithm Hash digest
SHA256 2e5510057480b3cb6dad8b2c46f2c2ff8fed3ccd7418b02c4ab31e264fb731b9
MD5 e9b843975cee0933569f40c6bfe0a0b9
BLAKE2b-256 3d449b0dd4ff796eea9718c26a911b3db80635c591411fcfca25f7ec5e9e2bf8

See more details on using hashes here.

File details

Details for the file phate-0.4.1-py3.7.egg.

File metadata

  • Download URL: phate-0.4.1-py3.7.egg
  • Upload date:
  • Size: 43.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.7.0a4+

File hashes

Hashes for phate-0.4.1-py3.7.egg
Algorithm Hash digest
SHA256 4b08df71af80d020d9ba80991312664ec4a7f2d9035393bb1902289905d4e0a7
MD5 4b0d80f1ffc71b373f4830c5c6e55bc3
BLAKE2b-256 b7a5fba769e5324d79f28eed11eeb19ca7423bd5b537bc609ef33182dff35c54

See more details on using hashes here.

File details

Details for the file phate-0.4.1-py3.6.egg.

File metadata

  • Download URL: phate-0.4.1-py3.6.egg
  • Upload date:
  • Size: 43.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for phate-0.4.1-py3.6.egg
Algorithm Hash digest
SHA256 79000e749fdaa443bd25e46438f91bce27f2d64c92365578ca095ae5492026e2
MD5 49a7f0fe2b9b67e0c112555df66b28a7
BLAKE2b-256 a3772f4c46cb57769e8bc1088322fb3489467db6e1af177708b0a4e5011e4df6

See more details on using hashes here.

File details

Details for the file phate-0.4.1-py3.5.egg.

File metadata

  • Download URL: phate-0.4.1-py3.5.egg
  • Upload date:
  • Size: 43.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.6

File hashes

Hashes for phate-0.4.1-py3.5.egg
Algorithm Hash digest
SHA256 3859d8c5f2dfe548ac819a581166549e7b940b1faf68ebcd10f709127bbba6b9
MD5 a0d321ece9770a69e879e987bec41683
BLAKE2b-256 13c69b3a5cc534d19ef8b82b7a879607ad242fc2e8d26b23461854fc6969eb61

See more details on using hashes here.

File details

Details for the file phate-0.4.1-py3-none-any.whl.

File metadata

  • Download URL: phate-0.4.1-py3-none-any.whl
  • Upload date:
  • Size: 21.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.6.3

File hashes

Hashes for phate-0.4.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5e5f34bd3b5b5df4cba55a240904e3b0f39431acd71cd6d4191fa4512bbab9bf
MD5 f87f3846a23cadb0455e7ed0c617602c
BLAKE2b-256 d779f547d9bca700b835f1d48be0dbe9655f930f36fafdc44b2ddcddd53c3bf7

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