Skip to main content

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)

  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.

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

pydestiny_bio-0.2.0.tar.gz (8.7 kB view details)

Uploaded Source

Built Distribution

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

pydestiny_bio-0.2.0-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

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

Hashes for pydestiny_bio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 d7d6d4146f28148dbe40c7b927fe9eb3bf9ff7ed08d7353447c58d86abafe9f9
MD5 39eb787592ea007f6f263e16756f9375
BLAKE2b-256 f0d4eab6def426adf3cf55100bf06ee4ad488f0c6ff63fd5ce61652c5430077b

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydestiny_bio-0.2.0.tar.gz:

Publisher: publish.yml on omicverse/py-destiny

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

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

Hashes for pydestiny_bio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e9eb980fa5749970ce37fe087d1fc1c6575a5bf2aa8a68a1f1b890a3bbea0005
MD5 a734185e6ea7668714f30bb7d09e4315
BLAKE2b-256 4d7f67bab6dd7127fabe312fd696e9d8c8ca47e0fbe687ab55ce6b5b07d6df84

See more details on using hashes here.

Provenance

The following attestation bundles were made for pydestiny_bio-0.2.0-py3-none-any.whl:

Publisher: publish.yml on omicverse/py-destiny

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