I produced a phylogenetic tree in MEGA X using the Max Likelihood method and get a nice looking tree. I want to transfer the tree file over to FigTree to change the layout, colors, etc. Note: this has worked in the past with no problem.
Now, when I use the command in MEGA that says "convert data to newick file" it does it, but when I try to open that file in FigTree I get the error "missing closing ')' in tree"
I'm thinking MEGA isn't converting the data to a Newick file proper, but how do I check this or fix it? I've messed around with add additional ")" all over the place with no luck.
Is there another tree viewer like FigTree that is just as easy to use that might work? Thank you.
Can you post the tree file?
Newick is not a super well defined format, so usually if something like FigTree is complaining, its for good reason.
You can try pasting the text of your tree file into an online viewer (e.g., ETE Toolkit), but as Joe said, there is probably an issue with the format of the file, you should view it in a text editor.
Same exact issue here. I get this specifically when exporting trees with bootstrap values. E.g.:
IcyTree tells me:
But I have no clue how to fix this....
This is usually an unbalanced bracket issue. I could be wrong, but in my experience FigTree is usually expecting bootstraps/branch lengths to be preceded by a
I would try parsing the tree in to Biopython or ETE3 and writing it back out to see if they can fix it.