Commit 4b93a7fb authored by Elias Dohmen's avatar Elias Dohmen 🎓

add cerr and bugfix

parent 2015ba86
......@@ -398,6 +398,12 @@ check_termGain(const map< unsigned int,vector<string>> & posorder, const vector<
if(aNode-> isLeaf())
{
// check if outgroup exists in tree and is located closest to root
if (aNode->parent()->parent() == nullptr && aNode->name != outgroup) {
cerr << "Error (-g / --outgroup): Please check if an outgroup with this name exist in the tree and if its branch is closest to the root" << endl;
return EXIT_FAILURE;
}
BSDL::DomainArrangementSet<BSDL::Domain> arrangementSet;
string na=aNode->name;
string filepan = annotationDirectory + na + ending;
......@@ -487,7 +493,7 @@ check_termGain(const map< unsigned int,vector<string>> & posorder, const vector<
if(bNode->isLeaf())
{
BSDL::DomainArrangementSet <BSDL::Domain> nArrangementSet;
bNode->data.assign(domainorder.size(), -1);
bNode->data.assign(single_domainorder.size(), -1);
string nam = bNode->name;
string filepathan = annotationDirectory + nam + ending;
......@@ -736,7 +742,7 @@ check_termGain(const map< unsigned int,vector<string>> & posorder, const vector<
}
}
}
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment