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)
- Batch correction (ComBat) skipped — single-batch fit only. v0.2 will add a
batch=argument that delegates to scanpy'ssc.pp.combat. - Fast-mode (subsampling for >3000 cells) not yet implemented — large datasets compute the full N×N similarity matrix, which is O(N²) memory.
- 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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c6b145c8ac1cfb83f1cf10422a3ff58940d9c4125e59f9ec456a8a754d69f8c
|
|
| MD5 |
29e92b8b18ccab5e33f51d5acbc0edb8
|
|
| BLAKE2b-256 |
7cd48e9433356eac12b2c353a0fc829aeee4cabc0d1d64889763e69fdb379f78
|
Provenance
The following attestation bundles were made for pycytotrace_bio-0.1.0.tar.gz:
Publisher:
publish.yml on omicverse/py-CytoTRACE
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycytotrace_bio-0.1.0.tar.gz -
Subject digest:
4c6b145c8ac1cfb83f1cf10422a3ff58940d9c4125e59f9ec456a8a754d69f8c - Sigstore transparency entry: 1628898349
- Sigstore integration time:
-
Permalink:
omicverse/py-CytoTRACE@e8ca75666b9e3706d6bb65021d0fdc4c507a99ae -
Branch / Tag:
refs/heads/main - Owner: https://github.com/omicverse
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8ca75666b9e3706d6bb65021d0fdc4c507a99ae -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pycytotrace_bio-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pycytotrace_bio-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0540c7fb274d1d49059674d56ec3f1f1dfdd79941c107fc0f240702ff1f65c2a
|
|
| MD5 |
71e129e511ac42e9a339f0cd67ddf444
|
|
| BLAKE2b-256 |
2b72a57d923c0160d47202ce7aaa70cafa4d21973ae63c7a0182940cfe68890b
|
Provenance
The following attestation bundles were made for pycytotrace_bio-0.1.0-py3-none-any.whl:
Publisher:
publish.yml on omicverse/py-CytoTRACE
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pycytotrace_bio-0.1.0-py3-none-any.whl -
Subject digest:
0540c7fb274d1d49059674d56ec3f1f1dfdd79941c107fc0f240702ff1f65c2a - Sigstore transparency entry: 1628898362
- Sigstore integration time:
-
Permalink:
omicverse/py-CytoTRACE@e8ca75666b9e3706d6bb65021d0fdc4c507a99ae -
Branch / Tag:
refs/heads/main - Owner: https://github.com/omicverse
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@e8ca75666b9e3706d6bb65021d0fdc4c507a99ae -
Trigger Event:
workflow_dispatch
-
Statement type: