Previous changeset 6:f1eca1158f21 (2018-10-10) Next changeset 8:16e925bf567e (2019-10-31) |
Commit message:
planemo upload for repository https://github.com/TGAC/earlham-galaxytools/tree/master/tools/ete commit 55116304ad98416757ad689c9a885dd0967f120e |
modified:
ete_genetree_splitter.py |
b |
diff -r f1eca1158f21 -r 6a5282f71f82 ete_genetree_splitter.py --- a/ete_genetree_splitter.py Wed Oct 10 05:24:04 2018 -0400 +++ b/ete_genetree_splitter.py Thu Oct 11 11:52:28 2018 -0400 |
[ |
@@ -19,8 +19,14 @@ if options.genetree is None: parser.error("--genetree option must be specified, GeneTree in nhx format") + with open(options.genetree, 'r') as f: + contents = f.read() + + # Remove empty NHX features that can be produced by TreeBest but break ete3 + contents = contents.replace('[&&NHX]', '') + # reads single gene tree - genetree = PhyloTree(options.genetree) + genetree = PhyloTree(contents) # sets species naming function if options.gene_node == 0: |