}
for(int i=copyTree->getNumLeaves();i<copyTree->getNumNodes();i++){
+
+ if (m->control_pressed) { return data; }
+
int lc = copyTree->tree[i].getLChild();
int rc = copyTree->tree[i].getRChild();
if (numGroups == 0) {
//get score for all users groups
for (int i = 0; i < tmap->namesOfGroups.size(); i++) {
- groups.push_back(tmap->namesOfGroups[i]);
+ if (tmap->namesOfGroups[i] != "xxx") {
+ groups.push_back(tmap->namesOfGroups[i]);
+ }
}
}else {
for (int i = 0; i < globaldata->Groups.size(); i++) {
copyTree->tree[i].pGroups = (copyTree->mergeUserGroups(i, groups));
}
+// map<string,int>::iterator it;
+
for(int i=copyTree->getNumLeaves();i<copyTree->getNumNodes();i++){
+
+ if (m->control_pressed) { return data; }
+
int lc = copyTree->tree[i].getLChild();
int rc = copyTree->tree[i].getRChild();
int iSize = copyTree->tree[i].pGroups.size();
int rcSize = copyTree->tree[rc].pGroups.size();
int lcSize = copyTree->tree[lc].pGroups.size();
-
+
+
//if isize are 0 then that branch is to be ignored
if (iSize == 0) { }
else if ((rcSize == 0) || (lcSize == 0)) { }
}
data[count] = score;
+
}
+ delete copyTree;
+
return data;
}
catch(exception& e) {
- cout << "Standard Error: " << e.what() << " has occurred in the Parsimony class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+ m->errorOut(e, "Parsimony", "getValues");
exit(1);
}
- catch(...) {
- cout << "An unknown error has occurred in the Parsimony class function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
- exit(1);
- }
-
}
/**************************************************************************************************/