X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sensspeccommand.cpp;h=5746cdabc2161d094dcde6ab24b864d69db9ee8e;hb=250e3b11b1c9c1e1ad458ab6c7e71ac2e67e11d9;hp=12786ca41c848d967ffda72e2d06f382881d8eed;hpb=2e11a0039122a506eed7fc21cc760e8699994c04;p=mothur.git diff --git a/sensspeccommand.cpp b/sensspeccommand.cpp index 12786ca..5746cda 100644 --- a/sensspeccommand.cpp +++ b/sensspeccommand.cpp @@ -793,6 +793,8 @@ string SensSpecCommand::preProcessList(){ //make a new list vector ListVector newList; newList.setLabel(list.getLabel()); + vector binLabels = list.getLabels(); + vector newLabels; //for each bin for (int i = 0; i < list.getNumBins(); i++) { @@ -812,13 +814,16 @@ string SensSpecCommand::preProcessList(){ //if there are names in this bin add to new list if (newNames != "") { newNames = newNames.substr(0, newNames.length()-1); //rip off extra comma - newList.push_back(newNames); + newList.push_back(newNames); + newLabels.push_back(binLabels[i]); } } //print new listvector if (newList.getNumBins() != 0) { wroteSomething = true; + newList.setLabels(newLabels); + if (!m->printedListHeaders) { newList.printHeaders(out); } newList.print(out); }