]> git.donarmstrong.com Git - mothur.git/blobdiff - createdatabasecommand.cpp
added otulabels to heatmap.bin. made OTUlabels “smarter” so OTU01 and OTU001 are...
[mothur.git] / createdatabasecommand.cpp
index eab7c8261a55e45abe3f762f86cc46e59c9822a6..235682bfec8fdfc36c43ed25fb78ffd06eef1b4f 100644 (file)
@@ -298,7 +298,7 @@ int CreateDatabaseCommand::execute(){
             }
             repNames = tempRepNames;
         }else {
-            ct.readTable(countfile, true);
+            ct.readTable(countfile, true, false);
             numUniqueNamesFile = ct.getNumUniqueSeqs();
             nameMap = ct.getNameMap();
         }
@@ -506,7 +506,7 @@ int CreateDatabaseCommand::findIndex(vector<string>& otuLabels, string label){
        try {
         int index = -1;
         for (int i = 0; i < otuLabels.size(); i++) {
-            if (otuLabels[i] == label) { index = i; break; }
+            if (m->isLabelEquivalent(otuLabels[i],label)) { index = i; break; }
         }
                return index;
     }