Created
June 26, 2015 14:40
Revisions
-
maclandrol created this gist
Jun 26, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,13 @@ from ete2 import PhyloNode, TreeStyle import sys if(len(sys.argv)<2): sys.exit("Usage : python disptree.py input output") else: inputfile, output = sys.argv[1], sys.argv[2] t = PhyloNode(inputfile) ts = TreeStyle() ts.show_branch_length = True ts.show_branch_support = True if not output.endswith('.pdf'): output+='.pdf' t.render(output, tree_style=ts)