python - How to convert a tree drawn with ete2 to Newick format? -
i have drawn tree in python using ete2 commands tree(), .add_child(), .add_sister() , on. there way can convert tree corresponding newick format?
from ete3 import tree tree = tree() tree.add_child(name="c") tree.add_child(name="b") print tree.write() #(c:1,b:1);
Comments
Post a Comment