Skip to content

Commit

Permalink
check that constraint tree has at least 4 taxa and print a clear erro…
Browse files Browse the repository at this point in the history
…r message otherwise (#200, #202)
  • Loading branch information
amkozlov committed Nov 21, 2024
1 parent e12b46b commit ecdf971
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libs/coraxlib
Submodule coraxlib updated from c48274 to 98e4cf
3 changes: 3 additions & 0 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1471,6 +1471,9 @@ void load_constraint(RaxmlInstance& instance)
(cons_tree.num_tips() == parted_msa.taxon_count() ? "" : "non-") <<
"comprehensive constraint tree with " << cons_tree.num_tips() << " taxa" << endl << endl;

if (cons_tree.num_tips() < 4)
throw runtime_error("Constraint tree must have at least 4 taxa!");

// check if taxa names are consistent between constraint tree and MSA
{
NameList missing_taxa;
Expand Down
2 changes: 1 addition & 1 deletion src/version.h
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#define RAXML_VERSION "2.0.0-dev"
#define RAXML_DATE "30.10.2024"
#define RAXML_DATE "21.11.2024"
#define RAXML_INTVER 200

0 comments on commit ecdf971

Please sign in to comment.