Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我使用 ete2 命令 Tree()、.add_child()、.add_sister() 等在 python 中绘制了一棵树。有什么办法可以将这棵树转换为相应的 Newick 格式?
from ete3 import Tree tree = Tree() tree.add_child(name="c") tree.add_child(name="b") print tree.write() #(c:1,b:1);