]> git.donarmstrong.com Git - mothur.git/blobdiff - venncommand.cpp
working on citations
[mothur.git] / venncommand.cpp
index fb0560b38d6c5659fc7ae8b88af2160e6b479191..cae041704c52e7caf6c4368ca393d441a69065c9 100644 (file)
@@ -183,6 +183,11 @@ VennCommand::VennCommand(string option)  {
                                }
                        }
                        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, "abund", false);            if (temp == "not found") { temp = "10"; }