Skip to content

Commit

Permalink
Bug fixed: fix the state freqs from the user-defined model parameters…
Browse files Browse the repository at this point in the history
… for UNREST model
  • Loading branch information
trongnhanuit committed May 27, 2024
1 parent 08ccc85 commit c8b8b45
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions model/modelunrest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit c8b8b45

Please sign in to comment.