X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getrelabundcommand.cpp;fp=getrelabundcommand.cpp;h=d4caf5b59a758899606cfc316b20cb386679307c;hb=dbcb14c17c128987e59147f510950f32dbeb6698;hp=91384fab4e71bb37c865c1c037e829d2581e3a1a;hpb=75962c819c16814e5c2340d99af1aa62e564dc20;p=mothur.git diff --git a/getrelabundcommand.cpp b/getrelabundcommand.cpp index 91384fa..d4caf5b 100644 --- a/getrelabundcommand.cpp +++ b/getrelabundcommand.cpp @@ -175,6 +175,7 @@ int GetRelAbundCommand::execute(){ if(allLines == 1 || labels.count(lookup[0]->getLabel()) == 1){ m->mothurOut(lookup[0]->getLabel()); m->mothurOutEndLine(); + if (!m->printedHeaders) { lookup[0]->printHeaders(out); } getRelAbundance(lookup, out); processedLabels.insert(lookup[0]->getLabel()); @@ -187,7 +188,7 @@ int GetRelAbundCommand::execute(){ for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; } lookup = input->getSharedRAbundVectors(lastLabel); m->mothurOut(lookup[0]->getLabel()); m->mothurOutEndLine(); - + if (!m->printedHeaders) { lookup[0]->printHeaders(out); } getRelAbundance(lookup, out); processedLabels.insert(lookup[0]->getLabel()); @@ -228,7 +229,7 @@ int GetRelAbundCommand::execute(){ lookup = input->getSharedRAbundVectors(lastLabel); m->mothurOut(lookup[0]->getLabel()); m->mothurOutEndLine(); - + if (!m->printedHeaders) { lookup[0]->printHeaders(out); } getRelAbundance(lookup, out); for (int i = 0; i < lookup.size(); i++) { delete lookup[i]; }