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("distance.npy", "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.1.0.tar.gz (14.1 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.1.0-py3-none-any.whl (15.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: damicore_tree_builder-0.1.0.tar.gz
  • Upload date:
  • Size: 14.1 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.1.0.tar.gz
Algorithm Hash digest
SHA256 6a5f2e46ed3cbd600ea3b7da012e29e45ba31d108e7178c8a6130cb64ef8515b
MD5 25c97d19655debfc8a1a7f28c9433bc1
BLAKE2b-256 72cfdf9d79d22a5731159ec1c80ed80bdcc61ef0cfc64b7177d333e901c82763

See more details on using hashes here.

Provenance

The following attestation bundles were made for damicore_tree_builder-0.1.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.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for damicore_tree_builder-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 949dae8d7ac5da42c194315c7fc6dca4cd8892ab04cf368d4dfc7e3fac948838
MD5 16972849491a2b98ad94ddc7af44ef40
BLAKE2b-256 b78023e4959d9ac6300c994e5952f642958e8999cf474fe0f7939d3d533fc5d9

See more details on using hashes here.

Provenance

The following attestation bundles were made for damicore_tree_builder-0.1.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