ETE3: error while parsing Newick tree
Any idea why ETE Toolkit (ete3) throws an error while parsing the following Newick tree:
((((A,B),C),(((D,E),F),(((((G,H),I),J),K),L)))(M,N));
from ete3 import Tree
s = '((((A,B),C),(((D,E),F),(((((G,H),I),J),K),L)))(M,N));'
t = Tree(s)
The error message:
ete3.parser.newick.NewickError: Broken newick structure at: G,H),I),J),K),L)))
You may want to check other newick loading flags like 'format' or 'quoted_node_names'.
I also tried loading the tree with all the format flag (and values from 0 to 9).
• 3,228 views
•
link
1 answer
You need comma between L))) and (M,N).
• 0 views
•
link
Log in to answer this question.