Pure-Python port of destiny — diffusion maps + DPT for single-cell RNA-seq (Angerer et al. 2016).
Project description
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.
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 pydestiny_bio-0.2.0.tar.gz.
File metadata
- Download URL: pydestiny_bio-0.2.0.tar.gz
- Upload date:
- Size: 8.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 |
d7d6d4146f28148dbe40c7b927fe9eb3bf9ff7ed08d7353447c58d86abafe9f9
|
|
| MD5 |
39eb787592ea007f6f263e16756f9375
|
|
| BLAKE2b-256 |
f0d4eab6def426adf3cf55100bf06ee4ad488f0c6ff63fd5ce61652c5430077b
|
Provenance
The following attestation bundles were made for pydestiny_bio-0.2.0.tar.gz:
Publisher:
publish.yml on omicverse/py-destiny
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydestiny_bio-0.2.0.tar.gz -
Subject digest:
d7d6d4146f28148dbe40c7b927fe9eb3bf9ff7ed08d7353447c58d86abafe9f9 - Sigstore transparency entry: 1628898546
- Sigstore integration time:
-
Permalink:
omicverse/py-destiny@767ea6578c5380ae8e5831474e0720f554825de7 -
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@767ea6578c5380ae8e5831474e0720f554825de7 -
Trigger Event:
workflow_dispatch
-
Statement type:
File details
Details for the file pydestiny_bio-0.2.0-py3-none-any.whl.
File metadata
- Download URL: pydestiny_bio-0.2.0-py3-none-any.whl
- Upload date:
- Size: 9.0 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 |
e9eb980fa5749970ce37fe087d1fc1c6575a5bf2aa8a68a1f1b890a3bbea0005
|
|
| MD5 |
a734185e6ea7668714f30bb7d09e4315
|
|
| BLAKE2b-256 |
4d7f67bab6dd7127fabe312fd696e9d8c8ca47e0fbe687ab55ce6b5b07d6df84
|
Provenance
The following attestation bundles were made for pydestiny_bio-0.2.0-py3-none-any.whl:
Publisher:
publish.yml on omicverse/py-destiny
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
pydestiny_bio-0.2.0-py3-none-any.whl -
Subject digest:
e9eb980fa5749970ce37fe087d1fc1c6575a5bf2aa8a68a1f1b890a3bbea0005 - Sigstore transparency entry: 1628898553
- Sigstore integration time:
-
Permalink:
omicverse/py-destiny@767ea6578c5380ae8e5831474e0720f554825de7 -
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@767ea6578c5380ae8e5831474e0720f554825de7 -
Trigger Event:
workflow_dispatch
-
Statement type: