]> git.donarmstrong.com Git - mothur.git/blobdiff - heatmapsimcommand.cpp
working on citations
[mothur.git] / heatmapsimcommand.cpp
index 0de3ffc4416f3d8e2318c64ef1a3a3cce240ed7d..92271d9dad6d3532e3463fd7e0be4ad9dcbf395c 100644 (file)
@@ -223,6 +223,11 @@ HeatMapSimCommand::HeatMapSimCommand(string option)  {
                                if (calc == "default")  {  calc = "jest-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; } }
+                       }
                                
                        groups = validParameter.validFile(parameters, "groups", false);                 
                        if (groups == "not found") { groups = ""; }