]> git.donarmstrong.com Git - mothur.git/blobdiff - rarefactcommand.cpp
working on citations
[mothur.git] / rarefactcommand.cpp
index 1c04bc4384fb632db099867821b6ffb3b4d79e95..82251c4a8fad67ea36fea2d7232b2f9171d5e3f5 100644 (file)
@@ -243,6 +243,11 @@ RareFactCommand::RareFactCommand(string option)  {
                                 if (calc == "default")  {  calc = "sobs";  }
                        }
                        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, "freq", false);                     if (temp == "not found") { temp = "100"; }