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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

unity3d - Fatal error- Monodevelop-Unity failed to start -