-
- //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);