]> git.donarmstrong.com Git - mothur.git/blobdiff - treegroupscommand.cpp
working on citations
[mothur.git] / treegroupscommand.cpp
index b5849d3a0d23f49951161ab3c0bde4abd9af86d1..582a3233ae847f64bc74209e14c918d2b6ebdc45 100644 (file)
@@ -248,6 +248,11 @@ TreeGroupCommand::TreeGroupCommand(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, "precision", false);                        if (temp == "not found") { temp = "100"; }