]> git.donarmstrong.com Git - mothur.git/blobdiff - getrabundcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / getrabundcommand.cpp
index 04b1b0badcf7dfc009296ac145aa49da50a3de50..2ed5b7be71e13b5369f4cc71aaab72258960d41f 100644 (file)
@@ -133,6 +133,8 @@ int GetRAbundCommand::execute(){
                        }
                        
                        if ((anyLabelsToProcess(list->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                                       string saveLabel = list->getLabel();
+                                       
                                        delete list;
                                        list = input->getListVector(lastLabel);
                                        
@@ -147,6 +149,9 @@ int GetRAbundCommand::execute(){
 
                                        processedLabels.insert(list->getLabel());
                                        userLabels.erase(list->getLabel());
+                                       
+                                       //restore real lastlabel to save below
+                                       list->setLabel(saveLabel);
                        }
                        
                        lastLabel = list->getLabel();