figtree
figtree copied to clipboard
Newick files with comma-delimited labels load incorrectly
For the tree
(('A','B')[&label=1,!color=#73ffff],'C');`
I would expect a 3-tip tree with the (A,B) subtree containing the label 1 and color #73ffff. But the comma in the label seems to be interpreted as an additional leaf.
See screen shot below:
![Screen Shot 2021-04-15 at 5 12 54 PM](https://user-images.githubusercontent.com/3998543/114944815-e7768600-9e0d-11eb-94c9-38332abdc591.png)
I'm using FigTree v1.4.2
Comments (in [
, ]
) and 'metacomments' are only defined by the Nexus format. Surround the tree by:
#NEXUS
begin trees;
tree TREE = (('A','B')[&label=1,!color=#73ffff],'C');
end;
Then perhaps either an error should be raised or the comments should be entirely ignored. Single field comments, like [&label=1]
do work in the Newick inputs. So there is partial support, but commas aren't handled.
I agree - it should either complain or parse them.