]> git.donarmstrong.com Git - mothur.git/blobdiff - removelineagecommand.cpp
sped up the remove.seqs and remove.lineage and get.seqs and get.lineage. fixed bug...
[mothur.git] / removelineagecommand.cpp
index ef1e77e01755f57acbaa4581c36a3e66d376c198..ebd06084e23d481fe6eb1a18b8498807d688ca57 100644 (file)
@@ -434,16 +434,8 @@ int RemoveLineageCommand::readName(){
                        in >> secondCol;                        
 
                        vector<string> parsedNames;
-                       //parse second column saving each name
-                       while (secondCol.find_first_of(',') != -1) { 
-                               name = secondCol.substr(0,secondCol.find_first_of(','));
-                               secondCol = secondCol.substr(secondCol.find_first_of(',')+1, secondCol.length());
-                               parsedNames.push_back(name);
-                       }
+                       m->splitAtComma(secondCol, parsedNames);
                        
-                       //get name after last ,
-                       parsedNames.push_back(secondCol);
-
                        vector<string> validSecond;  validSecond.clear();
                        for (int i = 0; i < parsedNames.size(); i++) {
                                if (names.count(parsedNames[i]) == 0) {