]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefactsharedcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / rarefactsharedcommand.cpp
index 022ae65bf8530da954589881fbcfa811adba8082..83fb35ed883fbb748d8cb5a6191aa136c692ae06 100644 (file)
@@ -188,6 +188,8 @@ int RareFactSharedCommand::execute(){
                        }
                        
                        if ((anyLabelsToProcess(lookup[0]->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                                       string saveLabel = lookup[0]->getLabel();
+                       
                                        for (int i = 0; i < lookup.size(); i++) {  delete lookup[i];  } 
                                        lookup = input->getSharedRAbundVectors(lastLabel);
 
@@ -198,6 +200,9 @@ int RareFactSharedCommand::execute(){
 
                                        processedLabels.insert(lookup[0]->getLabel());
                                        userLabels.erase(lookup[0]->getLabel());
+                                       
+                                       //restore real lastlabel to save below
+                                       lookup[0]->setLabel(saveLabel);
                        }