while((lookup[0] != NULL) && ((allLines == 1) || (userLabels.size() != 0) || (userLines.size() != 0))) {
if(allLines == 1 || lines.count(count) == 1 || labels.count(lookup[0]->getLabel()) == 1){
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
processedLabels.insert(lookup[0]->getLabel());
//run last line if you need to
if (needToRun == true) {
- for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
+ for (int i = 0; i < lookup.size(); i++) { if (lookup[i] != NULL) { delete lookup[i]; } }
lookup = input->getSharedRAbundVectors(lastLabel);
- mothurOut(lookup[0]->getLabel() + "\t" + toString(count)); mothurOutEndLine();
+ mothurOut(lookup[0]->getLabel()); mothurOutEndLine();
process(lookup);
for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }
}