def tree_from_linkage_matrix(linkage, leaf_labels):
""" Form an ete3.Tree from hierarchical linkage matrix.
Linkage should be the matrix returned by hierarchy.linkage.
leaf_labels should be a vector of names for the nodes
corresponding to the clustered items. Internal nodes will be
named node0, node1, etc, in the order in which the
clusters they represent were formed.
returns: new Tree
"""
评论列表
文章目录