[英]How to convert a tree drawn with ete2 to Newick format?
I have drawn a tree in python using ete2 commands Tree(), .add_child(), .add_sister() and so on. 我使用ete2命令Tree(),. add_child(),. add_sister()等在python中绘制了一棵树。 Is there any way I can convert this tree to the corresponding Newick format?
有什么办法可以将这棵树转换成相应的Newick格式吗?
from ete3 import Tree
tree = Tree()
tree.add_child(name="c")
tree.add_child(name="b")
print tree.write()
#(c:1,b:1);
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.