]> git.donarmstrong.com Git - mothur.git/blobdiff - collectsharedcommand.cpp
working on citations
[mothur.git] / collectsharedcommand.cpp
index b9b3606cd9318dd1fe1f3d32834dfc9c29e451f6..46f49b28f7b2de79b6525c05b2110325684194da 100644 (file)
@@ -259,6 +259,11 @@ CollectSharedCommand::CollectSharedCommand(string option)  {
                                 if (calc == "default")  {  calc = "sharedsobs-sharedchao-sharedace-jabund-sorabund-jclass-sorclass-jest-sorest-thetayc-thetan";  }
                        }
                        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; } }
+                       }
                        
                        groups = validParameter.validFile(parameters, "groups", false);                 
                        if (groups == "not found") { groups = ""; }