Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

Commit

Permalink
report mixture model component in .iqtree file if necessary (requeste…
Browse files Browse the repository at this point in the history
…d by Joran Martijn)
  • Loading branch information
bqminh committed Dec 8, 2017
1 parent 32a5317 commit 6be8320
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions main/phyloanalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,14 @@ void reportModel(ofstream &out, PhyloTree &tree) {
reportModel(out, tree.aln, m);
}
}
if (tree.aln->seq_type != SEQ_POMO)
for (i = 0; i < nmix; i++) {
ModelMarkov *m = (ModelMarkov*)mmodel->getMixtureClass(i);
if (m->getFreqType() == FREQ_EQUAL || m->getFreqType() == FREQ_USER_DEFINED)
continue;
out << endl << "Model for mixture component " << i+1 << ": " << (m)->name << endl;
reportModel(out, tree.aln, m);
}
out << endl;
} else {
out << "Model of substitution: " << tree.getModelName() << endl << endl;
Expand Down

0 comments on commit 6be8320

Please sign in to comment.