]> git.donarmstrong.com Git - mothur.git/blobdiff - summarysharedcommand.cpp
working on citations
[mothur.git] / summarysharedcommand.cpp
index 4cc32e320bc063e52e6ee821331cc91a182bc03e..8e162eed63a4f1a4b5ca026dcb09bb60f2b31743 100644 (file)
@@ -184,6 +184,11 @@ SummarySharedCommand::SummarySharedCommand(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 = ""; }