Skip to main content

Pure-Python port of CytoTRACE — gene-count-based stemness pseudotime (Gulati et al. Science 2020).

Project description

py-CytoTRACE

A Python port of CytoTRACE (Gulati et al. Science 2020) — single-cell developmental potential / stemness prediction from gene counts.

  • Pure NumPy / SciPy implementation, no Rcpp dependency
  • Core algorithm: detected-gene count + most-variable-genes + GCS + NNLS + diffusion smoothing → rank-normalised score in [0, 1]
  • ggplot2-python visualisation: plot_cytotrace (scatter on embedding) + plot_cyto_genes (top-correlated genes bar)

Install

pip install pycytotrace-bio

(module name is pycytotrace.)

Quick-start

import pycytotrace
res = pycytotrace.cytotrace_run(counts)        # counts: (n_genes × n_cells)
res.cytotrace                                  # 1.0 = stem-like, 0.0 = differentiated
res.cyto_genes.head()                          # top genes correlated with score
from ggplot2_py import ggsave
ggsave("out.png",
       plot=pycytotrace.plot_cytotrace(res, embedding=umap_coords),
       width=6, height=4, dpi=120)

Function map

Python R Status
cytotrace_run CytoTRACE
CytoTRACE dataclass CytoTRACE() return list
plot_cytotrace plotCytoTRACE
plot_cyto_genes plotCytoGenes
iCytoTRACE (multi-batch integration) iCytoTRACE ⏳ v0.2

Known limitations (v0.1)

  1. Batch correction (ComBat) skipped — single-batch fit only. v0.2 will add a batch= argument that delegates to scanpy's sc.pp.combat.
  2. Fast-mode (subsampling for >3000 cells) not yet implemented — large datasets compute the full N×N similarity matrix, which is O(N²) memory.
  3. iCytoTRACE deferred to v0.2.

Citation

Gulati, G. S. et al. Single-cell transcriptional diversity is a hallmark of developmental potential. Science 367, 405–411 (2020).

License

MIT.

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

pycytotrace_bio-0.1.0.tar.gz (7.7 kB view details)

Uploaded Source

Built Distribution

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

pycytotrace_bio-0.1.0-py3-none-any.whl (8.4 kB view details)

Uploaded Python 3

File details

Details for the file pycytotrace_bio-0.1.0.tar.gz.

File metadata

  • Download URL: pycytotrace_bio-0.1.0.tar.gz
  • Upload date:
  • Size: 7.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for pycytotrace_bio-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4c6b145c8ac1cfb83f1cf10422a3ff58940d9c4125e59f9ec456a8a754d69f8c
MD5 29e92b8b18ccab5e33f51d5acbc0edb8
BLAKE2b-256 7cd48e9433356eac12b2c353a0fc829aeee4cabc0d1d64889763e69fdb379f78

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycytotrace_bio-0.1.0.tar.gz:

Publisher: publish.yml on omicverse/py-CytoTRACE

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file pycytotrace_bio-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pycytotrace_bio-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 0540c7fb274d1d49059674d56ec3f1f1dfdd79941c107fc0f240702ff1f65c2a
MD5 71e129e511ac42e9a339f0cd67ddf444
BLAKE2b-256 2b72a57d923c0160d47202ce7aaa70cafa4d21973ae63c7a0182940cfe68890b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pycytotrace_bio-0.1.0-py3-none-any.whl:

Publisher: publish.yml on omicverse/py-CytoTRACE

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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