]> git.donarmstrong.com Git - mothur.git/blobdiff - bootstrapsharedcommand.cpp
removed some testing changes i made to classify.seqs
[mothur.git] / bootstrapsharedcommand.cpp
index 7f7683bd4f3c779203d3e2944885ad65a4369bc9..f63f2f496d05ac403cc7584db343067771e5ebb7 100644 (file)
@@ -78,6 +78,7 @@ BootSharedCommand::BootSharedCommand(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();
@@ -143,6 +144,11 @@ BootSharedCommand::BootSharedCommand(string option) {
                                 if (calc == "default")  {  calc = "jclass-thetayc";  }
                        }
                        m->splitAtDash(calc, Estimators);
+                       if (m->inUsersGroups("citation", Estimators)) { 
+                               ValidCalculators validCalc; validCalc.printCitations(Estimators); 
+                               //remove citation from list of calcs
+                               for (int i = 0; i < Estimators.size(); i++) { if (Estimators[i] == "citation") {  Estimators.erase(Estimators.begin()+i); break; } }
+                       }
 
                        string temp;
                        temp = validParameter.validFile(parameters, "iters", false);  if (temp == "not found") { temp = "1000"; }