//output scores for each combination
for(int k = 0; k < numComp; k++) {
- cout << "Tree " << i+1 << " Combination " << groupComb[k] << " parsimony score = " << userData[k] << endl;
//update uscoreFreq
it = uscoreFreq[k].find(userData[k]);
if (it == uscoreFreq[k].end()) {//new score
}
printParsimonyFile();
- if (randomtree != "") { printUSummaryFile(); }
+ if (randomtree == "") { printUSummaryFile(); }
//reset globaldata's treemap if you just did random distrib
- if (randomtree == "") { globaldata->gTreemap = savetmap; }
+ if (randomtree != "") { globaldata->gTreemap = savetmap; }
//reset randomTree parameter to ""
globaldata->setRandomTree("");
for (int i = 0; i< T.size(); i++) {
for(int a = 0; a < numComp; a++) {
outSum << setprecision(6) << i+1 << '\t' << groupComb[a] << '\t' << '\t' << userTreeScores[a][i] << '\t' << UScoreSig[a][i] << endl;
+ cout << setprecision(6) << i+1 << '\t' << groupComb[a] << '\t' << '\t' << userTreeScores[a][i] << '\t' << UScoreSig[a][i] << endl;
}
}
}
//ABC
- groupComb.push_back(allGroups);
- numComp++;
+ if (numComp != 1) {
+ groupComb.push_back(allGroups);
+ numComp++;
+ }
}
catch(exception& e) {