Hi all,
I am using BEAST package v1.10.1. I ran the same xml file for 5 times and got 5 replicates. The chain length of each MCMC run is 500,000,000. I used LogCombiner to combine these 5 log and tree files. The state of the combined file is 2,250,250,000. (My another question: Why is it not 500,000,000 * 5 = 2,500,000,000?)
Then I used TreeAnnotator for the combined tree files. My commend was as follows:
treeannotator -heights median -burnin 225025000 combined.trees MCC.trees
However, I got an error in the first step “Reading trees.“ The error message was:
Reading trees (bar assumes 10,000 trees)...
0 25 50 75 100
|--------------|--------------|--------------|--------------|
******************************************************************************************************************************************************************************************************************************************************************Exception in thread "main" java.lang.NumberFormatException: For input string: "2147500000" at java.base/java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.base/java.lang.Integer.parseInt(Integer.java:652)
at java.base/java.lang.Integer.parseInt(Integer.java:770)
at dr.app.tools.TreeAnnotator.<init>(Unknown Source)
at dr.app.tools.TreeAnnotator.main(Unknown Source)
If I set the burnin to 0, then TreeAnnotator worked well. (So, I do not think it was due to not enough memory.) I also tried to set the burnin to different numbers (50000, 214750000, 250000000), but I got the same error message.
Dose anyone know what the problem is and how I can solve this issue?
Best wishes,
Michael