phlower.tl.tree_original_dict
- phlower.tl.tree_original_dict(tree, leaf_name)
Given a node original name like ‘27-PODO’ or (‘27-PODO’,) or (‘27-PODO’, “9-PT/LOH”), find all the original names in the path return a dict {node_name: original_name}
Parameters
- tree: networkx.DiGraph
fate tree
- leaf_name: str or tuple
the original name of the leaf node