is there a problem with my block for mrbayes in CIPRES?
1
0
Entering edit mode
4.2 years ago
erickbd94 • 0

Hi, I am using MrBayes MrBayes in XSEDE. After completing the execution of mcmc and obtaining two tree files with the usual suffix .run1.t and .run2.t I did not obtain a consensus because the analysis was aborted. In fact, i got the following error:

Tree reading status:

  0      10      20      30      40      50      60      70      80      90     100
  v-------v-------v-------v-------v-------v-------v-------v-------v-------v-------v

Error in command "Translate" There was an error on at least one processor The error occurred when reading char. 953946-953953 on line 65 in the file 'infile.nex'

Returning execution to command line ...

Error in command "Execute"

As you can see the error comes from line 66 of my data block. But in this part i added the sumt command and I can't find the error in. These are my last lines of my block: 57 END; 58 59 begin mrbayes; 60 set autoclose=yes nowarn=yes; 61 outgroup Acanthaster_planci; 62 lset nst=2 rate=equal; 63 mcmcp ngen= 10000000 relburnin=yes burninfrac=0.50 printfreq=1000 samplefreq=1000 nchains=6 savebrlens=yes; 64 mcmc; 65 sumt; 66 sump; 67 end;

Someone can help me?

thanks Erick.

software error • 1.5k views
ADD COMMENT
0
Entering edit mode
4.2 years ago
Mensur Dlakic ★ 27k

I would have to see the whole .log file to be certain, but there is a good chance that nothing is wrong with your commands. This type of error will appear in at least two cases I know about: 1) when the run was continued after the interruption, and the resulting files don't have the same number of samples; 2) when a nan event was encountered at least once during the log-likelihood calculation.

You can diagnose this by: 1) checking the length of your .p files (typing wc -l *.p should give you identical numbers); 2) searching for nan in your .p files (grep "nan" *.p), or for -- [nan] in your .log file (grep "\-\- \[nan\]" *.log). If #2 is causing the error, you may need to realign your sequences or change the parameters inside your command block to avoid the numeric overflow. For example, you could try using gamma rates and the GTR model in your lset command, or change the heating scheme (the temp parameter in mcmcp). Sometimes decreasing the temperature will overcome the issue by making the cold and heated chains more similar to each other. Also, I suggest larger number of nswaps when you have more than 4 chains.

You could try replacing the two relevant commands in your block with these:

lset nst=6 rate=gamma;
mcmcp ngen=10000000 relburnin=yes burninfrac=0.50 printfreq=1000 samplefreq=1000 nchains=6 nswaps=4 savebrlens=yes temp=0.1;

My suggestion is to go with shorter runs (1-2 million generations) and smaller burn-in fraction (0.25) until you find parameters that will allow a complete run. Then you can increase both parameters to your desired values.

ADD COMMENT

Login before adding your answer.

Traffic: 2643 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