]> git.donarmstrong.com Git - mothur.git/blobdiff - subsamplecommand.cpp
added headers to shared and relabund files
[mothur.git] / subsamplecommand.cpp
index 66ea7e91df86eb1bc5b2b55c23b08dc852fa135a..0f7bdec57cc94e1b721c8cee65c57eb01a5e6124 100644 (file)
@@ -702,6 +702,7 @@ int SubSampleCommand::getSubSampleShared() {
                                
                                m->mothurOut(lookup[0]->getLabel()); m->mothurOutEndLine();
                                
+                               if (!m->printedHeaders) { lookup[0]->printHeaders(out); }
                                processShared(lookup, out);
                                
                                processedLabels.insert(lookup[0]->getLabel());
@@ -716,6 +717,7 @@ int SubSampleCommand::getSubSampleShared() {
                                lookup = input->getSharedRAbundVectors(lastLabel);
                                m->mothurOut(lookup[0]->getLabel()); m->mothurOutEndLine();
                                
+                               if (!m->printedHeaders) { lookup[0]->printHeaders(out); }
                                processShared(lookup, out);
                                
                                processedLabels.insert(lookup[0]->getLabel());
@@ -756,6 +758,7 @@ int SubSampleCommand::getSubSampleShared() {
                        
                        m->mothurOut(lookup[0]->getLabel()); m->mothurOutEndLine();
                        
+                       if (!m->printedHeaders) { lookup[0]->printHeaders(out); }
                        processShared(lookup, out);
                        
                        for (int i = 0; i < lookup.size(); i++) {  delete lookup[i];  }