]> git.donarmstrong.com Git - mothur.git/blobdiff - collectsharedcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / collectsharedcommand.cpp
index 18faa2d699333bade9ce3f492b52a1dbe2eb10a2..844b138c1916d5be2cffe199ace4639b56945bd9 100644 (file)
@@ -244,6 +244,8 @@ int CollectSharedCommand::execute(){
                        
                        //you have a label the user want that is smaller than this label and the last label has not already been processed
                        if ((anyLabelsToProcess(order->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                               string saveLabel = order->getLabel();
+                               
                                delete order;
                                order = input->getSharedOrderVector(lastLabel);
                                
@@ -255,6 +257,9 @@ int CollectSharedCommand::execute(){
                                mothurOut(order->getLabel()); mothurOutEndLine();
                                processedLabels.insert(order->getLabel());
                                userLabels.erase(order->getLabel());
+                               
+                               //restore real lastlabel to save below
+                               order->setLabel(saveLabel);
                        }