py-destiny
A Python port of destiny (Angerer et al., Bioinformatics 2016) — diffusion maps + diffusion pseudotime (DPT) for single-cell RNA-seq.
- Pure NumPy / SciPy implementation (no Rcpp dependency)
- 3/3 core algorithmic outputs parity-validated:
- Eigenvectors Procrustes = 0.916 vs R (threshold 0.80)
- Eigenvalues Pearson = 0.967 (threshold 0.95)
- DPT Pearson = 0.974 (threshold 0.85)
Install
pip install pydestiny-bio
(module name is pydestiny; the PyPI distribution name pydestiny was taken by an unrelated project, so this package ships as pydestiny-bio.)
Quick-start
import pydestiny
dm = pydestiny.DiffusionMap.fit(expression, sigma='local', n_eigs=5)
dpt = pydestiny.DPT(dm, root=0)
Function map
| Python | R | Status |
|---|---|---|
DiffusionMap.fit |
DiffusionMap |
✅ |
DPT |
DPT |
✅ |
Sigmas |
Sigmas |
✅ |
find_dm_k |
find_dm_k |
✅ |
Known limitations (v0.1)
- Plotting deferred (
plot.DiffusionMap,plot.DPT,gene-relevanceetc.) → v0.2. - GeneRelevance not yet ported → v0.2.
- Censoring / dropout-noise model not yet ported → v0.2.
- Local sigma uses simple mean of n_local nearest distances; R has more sophisticated weighting that slightly shifts eigenvalues (Pearson 0.97 vs perfect 1.0).
Citation
Angerer, P. et al. destiny: diffusion maps for large-scale single-cell data in R. Bioinformatics 32, 1241–1243 (2016).
License
MIT.
Metadata
Release files for pydestiny-bio 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pydestiny_bio-0.2.0.tar.gz | 8.7 kB | With provenance | Details for pydestiny_bio-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pydestiny_bio-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for pydestiny_bio-0.2.0-py3-none-any.whl |
Total release size: 17.7 kB
Release files / pydestiny_bio-0.2.0.tar.gz
| Download URL | pydestiny_bio-0.2.0.tar.gz |
|---|---|
| Size | 8.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d7d6d4146f28148dbe40c7b927fe9eb3bf9ff7ed08d7353447c58d86abafe9f9
|
|
BLAKE2b-256 checksum How to use checksums |
f0d4eab6def426adf3cf55100bf06ee4ad488f0c6ff63fd5ce61652c5430077b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency logRelease files / pydestiny_bio-0.2.0-py3-none-any.whl
| Download URL | pydestiny_bio-0.2.0-py3-none-any.whl |
|---|---|
| Size | 9.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
e9eb980fa5749970ce37fe087d1fc1c6575a5bf2aa8a68a1f1b890a3bbea0005
|
|
BLAKE2b-256 checksum How to use checksums |
4d7f67bab6dd7127fabe312fd696e9d8c8ca47e0fbe687ab55ce6b5b07d6df84
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.12
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency logSecurity for pydestiny-bio 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for pydestiny_bio-0.2.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on May 25, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.