X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=removeotulabelscommand.cpp;h=a882f6bdd3cc1a5588fa4cc18476eca09e6f2153;hp=161c4bfb3553d52ceac6fd89b033152cf9fa8e43;hb=499f4ac6e321f9f03d4c3aa25c3b6880892c8b83;hpb=a935b75dd890da5ae7f09e5e6179f90ab2955348 diff --git a/removeotulabelscommand.cpp b/removeotulabelscommand.cpp index 161c4bf..a882f6b 100644 --- a/removeotulabelscommand.cpp +++ b/removeotulabelscommand.cpp @@ -462,9 +462,9 @@ int RemoveOtuLabelsCommand::readShared(){ if (m->control_pressed) { for (int j = 0; j < newLookup.size(); j++) { delete newLookup[j]; } for (int j = 0; j < lookup.size(); j++) { delete lookup[j]; } return 0; } //is this otu on the list - if (labels.count(m->getSimpleLabel(m->currentBinLabels[i])) == 0) { + if (labels.count(m->getSimpleLabel(m->currentSharedBinLabels[i])) == 0) { wroteSomething = true; - newLabels.push_back(m->currentBinLabels[i]); + newLabels.push_back(m->currentSharedBinLabels[i]); for (int j = 0; j < newLookup.size(); j++) { //add this OTU to the new lookup newLookup[j]->push_back(lookup[j]->getAbundance(i), lookup[j]->getGroup()); } @@ -484,7 +484,7 @@ int RemoveOtuLabelsCommand::readShared(){ for (int j = 0; j < lookup.size(); j++) { delete lookup[j]; } - m->currentBinLabels = newLabels; + m->currentSharedBinLabels = newLabels; newLookup[0]->printHeaders(out);