]> git.donarmstrong.com Git - mothur.git/blobdiff - getrabundcommand.cpp
added chimera.uchime
[mothur.git] / getrabundcommand.cpp
index 65eedaa39f1c2efaccc97ac4b2f44f325ddf6a9f..f886c2369a87d757532b68456af89753f72bb9c6 100644 (file)
@@ -69,6 +69,7 @@ GetRAbundCommand::GetRAbundCommand(string option)  {
                
                //allow user to run help
                if(option == "help") { help(); abort = true; calledHelp = true; }
+               else if(option == "citation") { citation(); abort = true; calledHelp = true;}
                
                else {
                        vector<string> myArray = setParameters();
@@ -194,8 +195,6 @@ int GetRAbundCommand::execute(){
                                        
                                        if(sorted)      {   rabund->print(out);                         }
                                        else            {       rabund->nonSortedPrint(out);    }
-                                       
-                                       delete rabund;
                                                                                                                        
                                        processedLabels.insert(rabund->getLabel());
                                        userLabels.erase(rabund->getLabel());
@@ -214,8 +213,6 @@ int GetRAbundCommand::execute(){
                                        if(sorted)      {   rabund->print(out);                         }
                                        else            {       rabund->nonSortedPrint(out);    }
 
-                                       delete rabund;
-
                                        processedLabels.insert(rabund->getLabel());
                                        userLabels.erase(rabund->getLabel());