]> git.donarmstrong.com Git - mothur.git/blobdiff - summarycommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / summarycommand.cpp
index a2f79f9b0322670e009cf916c0ce8f05a61c5642..51fabf88828eb10617595b10cf8bf6a95396212f 100644 (file)
@@ -236,6 +236,8 @@ int SummaryCommand::execute(){
                        }
                        
                        if ((anyLabelsToProcess(sabund->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                               string saveLabel = sabund->getLabel();
+                               
                                delete sabund;
                                sabund = input->getSAbundVector(lastLabel);
                                
@@ -250,6 +252,9 @@ int SummaryCommand::execute(){
                                        sumCalculators[i]->print(outputFileHandle);
                                }
                                outputFileHandle << endl;
+                               
+                               //restore real lastlabel to save below
+                               sabund->setLabel(saveLabel);
                        }               
 
                        lastLabel = sabund->getLabel();