Hi all,
I am using BEAST2 to analyse a matrix of multi-state morphological characters. When I apply the Mkv model to my data, i.e. the ascertainment correction, the resulting XML file includes two invariant characters at the end of the alignment. For example:
<alignment id="My_Data" spec="FilteredAlignment" ascertained="true" excludefrom="30" excludeto="32" filter="1-30,31-32">
However, this line is causing problems in my analysis. It fails to run, since the posterior likelihood = NaN. This is because the tree likelihood = NaN. So I get the message:
"Fatal Exception: Could not find a proper state to initialise. Perhaps try another seed"
When I remove " excludefrom="30" excludeto="32" ", the error is solved, and the run continues. This seems to be a very strange error message to be receiving, and I have not encountered it before, despite analysing morphological characters with the Mkv model in BEAST2 previously.
Does anyone know why this could be happening/how to resolve it? I don't think it is appropriate to remove the 'excludeto/from' from the xml file, since the ascertainment bias correction may not be implemented correctly.
Thanks so much,
Yasmin