]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefactcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / rarefactcommand.cpp
index 76d66023237c025b6f5a8b0216f9dcdcb85e0110..4417d5c7ae3ca1f186308790b63d085ab553cc5a 100644 (file)
@@ -195,6 +195,8 @@ int RareFactCommand::execute(){
                        }
                        
                        if ((anyLabelsToProcess(order->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                               string saveLabel = order->getLabel();
+                               
                                delete order;
                                order = (input->getOrderVector(lastLabel));
                                
@@ -205,6 +207,9 @@ int RareFactCommand::execute(){
                                mothurOut(order->getLabel()); mothurOutEndLine();
                                processedLabels.insert(order->getLabel());
                                userLabels.erase(order->getLabel());
+                               
+                               //restore real lastlabel to save below
+                               order->setLabel(saveLabel);
                        }
                        
                        lastLabel = order->getLabel();