]> git.donarmstrong.com Git - mothur.git/blobdiff - clusterdoturcommand.cpp
adding labels to list file.
[mothur.git] / clusterdoturcommand.cpp
index 4463896cefd13f6bafcc625846fd94213b610ba7..dadc9cc485dedeec55a1057474f2eab19bf0d4ab 100644 (file)
@@ -226,7 +226,7 @@ int ClusterDoturCommand::execute(){
             delete nameMap;
                }else if (countfile != "") {
             ct = new CountTable();
-            ct->readTable(countfile);
+            ct->readTable(countfile, false, false);
             cluster->readPhylipFile(phylipfile, ct);
             delete ct;
         }else {
@@ -244,10 +244,10 @@ int ClusterDoturCommand::execute(){
                        
         map<string, string> variables; 
         variables["[filename]"] = fileroot;
-        if (countfile != "") { variables["[tag2]"] = "unique_list"; }
         variables["[clustertag]"] = tag;
         string sabundFileName = getOutputFileName("sabund", variables);
         string rabundFileName = getOutputFileName("rabund", variables);
+        if (countfile != "") { variables["[tag2]"] = "unique_list"; }
         string listFileName = getOutputFileName("list", variables);
         
         if (countfile == "") {
@@ -259,6 +259,7 @@ int ClusterDoturCommand::execute(){
         }
                m->openOutputFile(listFileName, listFile);
         outputNames.push_back(listFileName); outputTypes["list"].push_back(listFileName);
+        list->printHeaders(listFile);
                
                float previousDist = 0.00000;
                float rndPreviousDist = 0.00000;