From c8b8b4589082cc375eb7c0a597c71e4dfffe80b1 Mon Sep 17 00:00:00 2001 From: NhanLT Date: Mon, 27 May 2024 15:33:43 +1000 Subject: [PATCH] Bug fixed: fix the state freqs from the user-defined model parameters for UNREST model --- model/modelunrest.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/model/modelunrest.cpp b/model/modelunrest.cpp index cd181f959..066e69f7a 100644 --- a/model/modelunrest.cpp +++ b/model/modelunrest.cpp @@ -55,6 +55,10 @@ ModelUnrest::ModelUnrest(PhyloTree *tree, string model_params, StateFreqType fre outWarning("In the UNREST model, state frequencies should be embedded into the substitution rates. Thus, AliSim skips the user-specified state frequencies."); ModelMarkov::init(FREQ_ESTIMATE); + + // change the state freq type to user defined if users specify the model parameters + if (model_params != "") + this->freq_type = FREQ_USER_DEFINED; } void ModelUnrest::writeInfo(ostream &out) {