X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=treegroupscommand.cpp;h=582a3233ae847f64bc74209e14c918d2b6ebdc45;hb=ec1b5bc7460ac8ad40f54f0729900d9ed98e7292;hp=5d7df3440439c469f3311073d2237b87272e79e6;hpb=1d898dc6edaf9e9f287fab53bf1f21fb29757a17;p=mothur.git diff --git a/treegroupscommand.cpp b/treegroupscommand.cpp index 5d7df34..582a323 100644 --- a/treegroupscommand.cpp +++ b/treegroupscommand.cpp @@ -125,6 +125,7 @@ TreeGroupCommand::TreeGroupCommand(string option) { //allow user to run help if(option == "help") { help(); abort = true; calledHelp = true; } + else if(option == "citation") { citation(); abort = true; calledHelp = true;} else { vector myArray = setParameters(); @@ -247,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"; }