]> git.donarmstrong.com Git - mothur.git/blobdiff - removeseqscommand.cpp
testing mpi
[mothur.git] / removeseqscommand.cpp
index e8565d05819e72968aee30bf6584b1dcb59cc484..07e946b78eb8d7d56c7d09a91fd2fb90fc8564a5 100644 (file)
@@ -279,10 +279,13 @@ int RemoveSeqsCommand::readList(){
                                }
                        
                                //get last name
-                               if (names.count(binnames) == 0) {  newNames += binnames;  }
+                               if (names.count(binnames) == 0) {  newNames += binnames + ",";  }
 
                                //if there are names in this bin add to new list
-                               if (newNames != "") {  newList.push_back(newNames);     }
+                               if (newNames != "") {  
+                                       newNames = newNames.substr(0, newNames.length()-1); //rip off extra comma
+                                       newList.push_back(newNames);    
+                               }
                        }
                                
                        //print new listvector