This is a test version of Biostars. For the public version, visit https://www.biostars.org.
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).

ete3 newick tree ete

1 answer

You need comma between L))) and (M,N).

Log in to answer this question.