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