]> git.donarmstrong.com Git - mothur.git/blobdiff - getoturepcommand.cpp
added hcluster command and fixed some bugs, namely one with smart distancing.
[mothur.git] / getoturepcommand.cpp
index 07486191e886c72d5d2aafd1db781bad96411874..e9bed002a11637f7ca1e4279b0a14690f3fd40b6 100644 (file)
@@ -199,6 +199,8 @@ int GetOTURepCommand::execute(){
                        }
                        
                        if ((anyLabelsToProcess(list->getLabel(), userLabels, "") == true) && (processedLabels.count(lastLabel) != 1)) {
+                                       string saveLabel = list->getLabel();
+                                       
                                        delete list;
                                        list = input->getListVector(lastLabel);
                                        mothurOut(list->getLabel() + "\t" + toString(list->size())); mothurOutEndLine();
@@ -207,6 +209,9 @@ int GetOTURepCommand::execute(){
                                        
                                        processedLabels.insert(list->getLabel());
                                        userLabels.erase(list->getLabel());
+                                       
+                                       //restore real lastlabel to save below
+                                       list->setLabel(saveLabel);
                        }
                        
                        lastLabel = list->getLabel();