]> git.donarmstrong.com Git - mothur.git/blobdiff - preclustercommand.cpp
changing command name classify.shared to classifyrf.shared
[mothur.git] / preclustercommand.cpp
index 24d22845c5a4fc33d109888e5f2007d25134672e..bd3f172c2bcaa3e13ced0b5c57d92e39c9073969 100644 (file)
@@ -903,15 +903,9 @@ void PreClusterCommand::readNameFile(){
                while (!in.eof()) {
                        in >> firstCol >> secondCol; m->gobble(in);
             
-            for (int i = 0; i < firstCol.length(); i++) {
-                if (firstCol[i] == ':') { firstCol[i] = '_'; m->changedSeqNames = true; }
-            }
-            
-            int size = 1;
-            for (int i = 0; i < secondCol.length(); i++) {
-                if (secondCol[i] == ':') { secondCol[i] = '_'; m->changedSeqNames = true; }
-                else if(secondCol[i] == ','){  size++; }
-            }
+            m->checkName(firstCol);
+            m->checkName(secondCol);
+            int size = m->getNumNames(secondCol);
             
                        names[firstCol] = secondCol;
             sizes[firstCol] = size;