1

I have drawn a tree in python using ete2 commands Tree(), .add_child(), .add_sister() and so on. Is there any way I can convert this tree to the corresponding Newick format?

fransua
  • 1,559
  • 13
  • 30
Gab-1997
  • 31
  • 1
  • 6

1 Answers1

0
from ete3 import Tree
tree = Tree()
tree.add_child(name="c")
tree.add_child(name="b")
print tree.write()
#(c:1,b:1);
jhc
  • 1,671
  • 3
  • 13
  • 16