Skip to main content

Compute gene trajectories

Project description

Python Gene Trajectory

This package is a Python implementation of GeneTrajectory. The method is described in detail in the article Gene trajectory inference for single-cell data by optimal transport metrics.

Documentation and tutorials are available at https://genetrajectory-python.readthedocs.io For the R implementation, go to the GeneTrajectory project.

Note that, although the implementation is equivalent, it will produce slightly different results to the R implementation because the signs of eigenvectors may differ and because of the randomness of K-means during the coarse_grain step.

Install

The development version of the package can be installed as

pip install gene-trajectory

The development version of the package can be installed as

pip install git+https://github.com/Klugerlab/GeneTrajectory-python.git

Tutorials

There are tutorials in Jupyter Notebook format in the online documentation and the notebooks folder of the GitHub project.

How to cite Gene Trajectory

If you use this tool in your research and find it useful, you can cite the following reference from our paper Gene trajectory inference for single-cell data by optimal transport metrics. In Bibtex format:

@article{qu_gene_2024,
	title = {Gene trajectory inference for single-cell data by optimal transport metrics},
	issn = {1546-1696},
	url = {https://doi.org/10.1038/s41587-024-02186-3},
	doi = {10.1038/s41587-024-02186-3},
	abstract = {Single-cell RNA sequencing has been widely used to investigate cell state transitions and gene dynamics of biological processes. Current strategies to infer the sequential dynamics of genes in a process typically rely on constructing cell pseudotime through cell trajectory inference. However, the presence of concurrent gene processes in the same group of cells and technical noise can obscure the true progression of the processes studied. To address this challenge, we present GeneTrajectory, an approach that identifies trajectories of genes rather than trajectories of cells. Specifically, optimal transport distances are calculated between gene distributions across the cell–cell graph to extract gene programs and define their gene pseudotemporal order. Here we demonstrate that GeneTrajectory accurately extracts progressive gene dynamics in myeloid lineage maturation. Moreover, we show that GeneTrajectory deconvolves key gene programs underlying mouse skin hair follicle dermal condensate differentiation that could not be resolved by cell trajectory approaches. GeneTrajectory facilitates the discovery of gene programs that control the changes and activities of biological processes.},
	journal = {Nature Biotechnology},
	author = {Qu, Rihao and Cheng, Xiuyuan and Sefik, Esen and Stanley III, Jay S. and Landa, Boris and Strino, Francesco and Platt, Sarah and Garritano, James and Odell, Ian D. and Coifman, Ronald and Flavell, Richard A. and Myung, Peggy and Kluger, Yuval},
	month = apr,
	year = {2024},
}

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

gene_trajectory-1.0.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

gene_trajectory-1.0.0-py3-none-any.whl (17.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: gene_trajectory-1.0.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/5.0.0 CPython/3.12.2

File hashes

Hashes for gene_trajectory-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f9992cbed8a20e1705b6c49c04c826e8a84a8b0c6f9720bd869de61856150cc9
MD5 30993d4702177615b1c66df14fa213f4
BLAKE2b-256 00c7b4d5d96e6d3b85508781301f844ed6d0172cf61de285012f347d17278e4d

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for gene_trajectory-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 6c98aabc75302e3384e6df2e2c251b70d3b2205af8b01bd867e8678f2aa16a83
MD5 de1f13bf2c613ab03ff01b4311c5d200
BLAKE2b-256 588e5ef66c67dc3546b429d009a1bb4d0d6659f721c3160339d7a5b8bc9c5d22

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