ETE3: error while parsing Newick tree
1
0
Entering edit mode
4.4 years ago

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 • 2.1k views
ADD COMMENT
3
Entering edit mode
4.4 years ago
Mensur Dlakic ★ 27k

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

ADD COMMENT

Login before adding your answer.

Traffic: 2510 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6