Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ endif()
# The version number.
set (iqtree_VERSION_MAJOR 2)
set (iqtree_VERSION_MINOR 3)
set (iqtree_VERSION_PATCH ".5")
set (iqtree_VERSION_PATCH ".6")

option(BUILD_SHARED_LIBS "Build Shared Libraries" OFF)

Expand Down
2 changes: 1 addition & 1 deletion main/phyloanalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ void reportNexusFile(ostream &out, ModelSubst *m) {
double f = 1.0 / m->num_states;
for (i = 0; i < m->num_states; i++)
out << " " << f;
out << endl;
out << ";" << endl;
out.precision(4);
out << "end;" << endl;
}
Expand Down
2 changes: 1 addition & 1 deletion model/modelmixture.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2429,8 +2429,8 @@ void ModelMixture::setBounds(double *lower_bound, double *upper_bound, bool *bou
// only consider the first class as this is a linked substitution matrix
iterator it = begin();
auto freq = (*it)->freq_type;
int ndim = (*it)->getNDim();
(*it)->freq_type=FREQ_USER_DEFINED;
int ndim = (*it)->getNDim();
(*it)->setBounds(&lower_bound[dim], &upper_bound[dim], &bound_check[dim]);
(*it)->freq_type=freq;
//manually set these params for the restartParameters method; TODO: properly fix this -JD
Expand Down
4 changes: 3 additions & 1 deletion model/modelprotein.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,9 @@ void ModelProtein::init(const char *model_name, string model_params, StateFreqTy
} else {
// initialize rate matrix with a model (default: POISSON) -JD
nxs_model = models_block->findModel(Params::getInstance().gtr20_model);
ASSERT(nxs_model);
if (nxs_model == nullptr) {
outError("Unknown init model: " + Params::getInstance().gtr20_model);
}
readParametersString(nxs_model->description, false);
rescaleRates(rates, getNumRateEntries());
}
Expand Down
5 changes: 4 additions & 1 deletion tree/phylosupertree.cpp
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm unsure if this this the right way, when you changed from:
out << saln->partitions[part]->sequence_type << ", ";
to
out << saln->partitions[part]->sequence_type;
why is printing comma removed?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @bqminh ,

I just modified the code so that the comma will be printed out only when both sequence_type and pos are not empty.

if (!saln->partitions[part]->sequence_type.empty() && !pos.empty()) {
       out << ", ";
}

Original file line number Diff line number Diff line change
Expand Up @@ -1535,9 +1535,12 @@ void PhyloSuperTree::printBestPartitionParams(const char *filename) {
if (!saln->partitions[part]->aln_file.empty()) out << saln->partitions[part]->aln_file << ": ";
/*if (saln->partitions[part]->seq_type == SEQ_CODON)
out << "CODON, ";*/
out << saln->partitions[part]->sequence_type << ", ";
out << saln->partitions[part]->sequence_type;
string pos = saln->partitions[part]->position_spec;
replace(pos.begin(), pos.end(), ',' , ' ');
if (!saln->partitions[part]->sequence_type.empty() && !pos.empty()) {
out << ", ";
}
out << pos << ";" << endl;
}
out << " charpartition mymodels =" << endl;
Expand Down
3 changes: 2 additions & 1 deletion utils/tools.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1689,8 +1689,9 @@ void parseArg(int argc, char *argv[], Params &params) {
if (strcmp(argv[cnt], "--gtr20-model") == 0 || strcmp(argv[cnt], "--init-exchange") == 0) {
cnt++;
if (cnt >= argc)
throw "Use --gtr20-model <POISSON/LG>";
throw "Use " + string(argv[cnt-1]) + " <protein model name>";
params.gtr20_model = argv[cnt];
transform(params.gtr20_model.begin(), params.gtr20_model.end(), params.gtr20_model.begin(), ::toupper);
continue;
}
if (strcmp(argv[cnt], "--guess-multiplier") == 0) {
Expand Down