eaton-lab / toytree

A minimalist tree plotting library using toyplot graphs
http://eaton-lab.org/toytree
BSD 3-Clause "New" or "Revised" License
165 stars 28 forks source link

Added custom root option for parsing networks #47

Closed pmckenz1 closed 3 years ago

pmckenz1 commented 3 years ago

Without a custom root option the "admix" dict source/dest values can contain non-monophyletic groups after rerooting, making it difficult to relocate the node index after rerooting (which you could otherwise easily find by using get_mrca_idx_from_tip_labels). The custom option allows you to reroot how you want upon reading the tree so that the admix dict values will be monophyletic under that rooting.