X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=filtersharedcommand.cpp;h=4d1c301edf9566b8101e46320e71dc84f8479b67;hb=20071b183e619c122bf9f63b4bb42722507c4e4a;hp=413a9a432532b12987a8fa8eb65948692cec9b22;hpb=3504e4e2feeb05aabb0c79aa42cb696522030924;p=mothur.git diff --git a/filtersharedcommand.cpp b/filtersharedcommand.cpp index 413a9a4..4d1c301 100644 --- a/filtersharedcommand.cpp +++ b/filtersharedcommand.cpp @@ -405,22 +405,8 @@ int FilterSharedCommand::processShared(vector& thislookup) for (int j = 0; j < rareCounts.size(); j++) { //add "rare" OTU to the filtered lookup filteredLookup[j]->push_back(rareCounts[j], thislookup[j]->getGroup()); } - - //create new label - string oldLastLabel = saveBinLabels[saveBinLabels.size()-1]; - string tag = ""; - string otuNumber = ""; - for (int i = 0;i < oldLastLabel.length(); i++){ - //add numbers - if( oldLastLabel[i]>47 && oldLastLabel[i]<58){ otuNumber += oldLastLabel[i]; } - else { tag += oldLastLabel[i]; } - } - - int oldLastBin; - m->mothurConvert(otuNumber, oldLastBin); - oldLastBin++; - string newLabel = tag + toString(oldLastBin); - filteredLabels.push_back(newLabel); + //create label for rare OTUs + filteredLabels.push_back("rareOTUs"); } }