mkt.databases.conservation.rebuild_tree_from_data

mkt.databases.conservation.rebuild_tree_from_data(data: KLIFSConservationData) ClusterNode[source]

Reconstruct the SciPy hierarchical tree from a persisted artifact.

The scipy bridge for KLIFSConservationData: consumers holding only the schema (which is scipy-free) call this in mkt.databases to recover the full ClusterNode tree from the stored linkage matrix.

Parameters:

data (KLIFSConservationData) – The persisted conservation-data artifact.

Returns:

Root node of the reconstructed hierarchical tree.

Return type:

scipy.cluster.hierarchy.ClusterNode