Skip to main content

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)

  1. Plotting deferred (plot.DiffusionMap, plot.DPT, gene-relevance etc.) → v0.2.
  2. GeneRelevance not yet ported → v0.2.
  3. Censoring / dropout-noise model not yet ported → v0.2.
  4. 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)

Source distribution for pydestiny-bio 0.2.0
File Size Uploaded
pydestiny_bio-0.2.0.tar.gz 8.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydestiny-bio 0.2.0
File Interpreter ABI Platform
pydestiny_bio-0.2.0-py3-none-any.whl Python 3 none any Details

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 log

Release 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 log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page