Skip to main content

PyPI License: MIT Docs

phypanda

phypanda logo

phypanda is the Python library for PaNDA—an algorithm library for phylogenetic diversity (PD) optimization on directed phylogenetic networks. It builds on phylozoo for network representations and scanwidth for node- and edge-scanwidth–based dynamic programming.


Key Features

  • All-paths (MAPPD), Max-tree and Min-tree PD: compute the diversity score of a fixed taxon set for several PD measures, or maximize PD using exact FPT algorithms parameterized by node scanwidth or edge scanwidth.
  • Budgeted maximization: assign integer costs to taxa and maximize PD under budget constraints.
  • JIT-compilation: speed up algorithms by optional numba JIT compilation.
  • High-level API — compute_diversity, marginal_diversities, greedy_max_diversity, and solve_max_diversity work with any measure and dispatch to the appropriate solver.

Installation

pip install phypanda

Runtime dependencies (phylozoo, networkx, scanwidth, numba) are installed automatically. For development or documentation extras:

pip install phypanda[dev]   # testing
pip install phypanda[docs]  # Sphinx documentation

Documentation

For the full manual, API reference, and installation guide, visit the phypanda docs.

Citation

If you use phypanda, please cite:

Niels Holtgrefe, Leo van Iersel, Ruben Meuwese, Yukihiro Murakami, and Jannik Schestag. PaNDA: Efficient Optimization of Phylogenetic Diversity in Networks. Journal of Computational Biology, 2026. doi: 10.1177/15578666261481955

If your work builds specifically on the budgeted node-scanwidth algorithms, please also cite:

Niels Holtgrefe and Jannik Schestag. Tractable Optimization of Budgeted Phylogenetic Diversity on Networks Utilizing Node-Scanwidth. arXiv:2605.23319, 2026.

See also

For the graphical-user interface developed for the first paper, please go to gui/.

For the experimental materials corresponding to the above two papers, please go to experiments/.

Metadata

Release files for phypanda 2.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for phypanda 2.1.1
File Size Uploaded Provenance Actions
phypanda-2.1.1.tar.gz 32.9 kB With provenance Details for phypanda-2.1.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for phypanda 2.1.1
File Interpreter ABI Platform Actions
phypanda-2.1.1-py3-none-any.whl Python 3 none any Details for phypanda-2.1.1-py3-none-any.whl

Total release size: 66.4 kB

Release files / phypanda-2.1.1.tar.gz

Download URL phypanda-2.1.1.tar.gz
Size 32.9 kB
Tags Source
SHA-256 checksum
How to use checksums
654c93a7bcc33e9b12f8c3a1fb1ede93c501d7d4b1e8b442de04cccb28d73660
BLAKE2b-256 checksum
How to use checksums
3eb3948497135d781144fd4d3c4fd30f85a5c41b0ea3fc597207372353089363
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 23, 2026.

Transparency log

Release files / phypanda-2.1.1-py3-none-any.whl

Download URL phypanda-2.1.1-py3-none-any.whl
Size 33.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6c31b31861e8816413250a4917fb1f0246420ed697554a9eaa9939bebe859835
BLAKE2b-256 checksum
How to use checksums
e50c9a603e4f181df33b19be356df0689a8b88eca18c8202cf8e582dea3d8ea3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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 Oct 23, 2026.

Transparency log

Security for phypanda 2.1.1

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

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for phypanda-2.1.1.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 Oct 23, 2026.

Transparency log

A 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.

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