figtree icon indicating copy to clipboard operation
figtree copied to clipboard

Number format error in reading a newick tree from SUMTREES

Open Alexei-Kassian opened this issue 5 years ago • 2 comments

Hi all, I have a newick tree produced by SUMTREES (dendro.py package) - result.tre.txt (attached). FigTree cannot read it and returns the following error: Number format error: For input string: "0.00833... What should I change in this txt file to make it readable? result.tre.txt

Alexei-Kassian avatar Mar 27 '19 20:03 Alexei-Kassian

The solution is either to delete all square brackets [ ] and text between them, or convert the newick file in the nexus format via:

dendropy-format \ --from newick \ --to nexus \ result.tre > result.nex

Thanks to Jeet Sukumaran for help.

Alexei-Kassian avatar Mar 28 '19 19:03 Alexei-Kassian

Thanks for updating your question with how you solved it. However, what should I do if I want to display the bootstrap values from the bootstrapped tree from RAxML which has the format "0.00833[98]"? I tried deleting the brackets and adding a colon before the bootstrap value but then Figtree says my tree is missing a closing bracket ")"

I have no idea what to do... I want to display my bootstrap values. Thanks in advance for any help...

Best,

A

twohrdrive avatar Sep 11 '20 21:09 twohrdrive