NBISweden / MrBayes

MrBayes is a program for Bayesian inference and model choice across a wide range of phylogenetic and evolutionary models. For documentation and downloading the program, please see the home page:
http://NBISweden.github.io/MrBayes/
GNU General Public License v3.0
224 stars 78 forks source link

Fixed issue with checkpointing when root age is calibrated #285

Closed ronquist closed 9 months ago

ronquist commented 9 months ago

When start values are read in, there are problems in the checking of the consistency between the clock rate and the tree age settings. Among other things, this causes problems with checkpointing in these types of models. The tree age and clock rate parameters are set in different commands, so the consistency check needs to be deferred until just before the start of the chain, when all model settings have been finalized. This is taken care of in this bug fix. Specifically, the check is implemented in the CheckModel function, which is called just before the chain starts, and checks the consistency of the model in cases where this cannot be done earlier.