]> git.donarmstrong.com Git - mothur.git/blobdiff - preclustercommand.cpp
added a few evenness calculators and fixed a couple of bugs in filter.seqs and pre...
[mothur.git] / preclustercommand.cpp
index cab29633c8528c30fe0ba032cc6d76bfea44eccb..cfa91bfeedd4334adbe8bd262e476571f61f3ece 100644 (file)
@@ -306,9 +306,9 @@ void PreClusterCommand::readNameFile(){
                        in >> firstCol >> secondCol; gobble(in);
                        names[firstCol] = secondCol;
                        int size = 1;
-                       while (secondCol.find_first_of(',') != -1) { 
-                               size++;
-                               secondCol = secondCol.substr(secondCol.find_first_of(',')+1, secondCol.length());
+
+                       for(int i=0;i<secondCol.size();i++){
+                               if(secondCol[i] == ','){        size++; }
                        }
                        sizes[firstCol] = size;
                }