Skip to main content

damicore-tree-builder

damicore-tree-builder builds a deterministic Neighbor Joining tree from a distance matrix and its labels. It is the third stage of the DAMICORE pipeline; most users install the aggregate damicore distribution, which runs all four stages end to end. Install this package alone to build trees without the rest of the pipeline.

pip install damicore-tree-builder

Python

from damicore_tree_builder import build_tree

result = build_tree("run/distance.npy", "run/labels.json", "run")

distance.npy and labels.json are produced by the sibling damicore-distance distribution; the call writes tree.json plus Newick, and tree.json is the input the sibling damicore-clusterizer distribution consumes. The path API copies into a temporary memory map, reuses slots, evaluates Q pairwise without materializing it, and preserves negative branches. neighbor_joining(matrix, labels) is available for small in-memory matrices.

Links

Licensed under Apache-2.0.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

damicore_tree_builder-0.2.0.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

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

damicore_tree_builder-0.2.0-py3-none-any.whl (15.6 kB view details)

Uploaded Python 3

File details

Details for the file damicore_tree_builder-0.2.0.tar.gz.

File metadata

  • Download URL: damicore_tree_builder-0.2.0.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for damicore_tree_builder-0.2.0.tar.gz
Algorithm Hash digest
SHA256 5bb1de71aaa9eda0552dcd3f75f112d372b57222411f8dfc7277189fa79eb7e3
MD5 2ca6128890d9a2cd43dd290376cbf66a
BLAKE2b-256 ef3fd7908f4c46ec2da8418391a1b1e3fcb63d015792cd3328b660f4b99d8125

See more details on using hashes here.

Provenance

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

Publisher: release.yml on Delbem-Research-and-Innovation/damicore

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

File details

Details for the file damicore_tree_builder-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for damicore_tree_builder-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 8b040dfc5845221b01548bbbf96bdd6a8c59fdc2f9067c8c36015b78c2f90047
MD5 5dc70f87b73b70b101015b013a62eaa3
BLAKE2b-256 909c0451836f7a0bec2432c88171e1f91d110ad69363cfebf2965e303fd9d9df

See more details on using hashes here.

Provenance

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

Publisher: release.yml on Delbem-Research-and-Innovation/damicore

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 Sentry Error logging StatusPage Status page