]> git.donarmstrong.com Git - mothur.git/blobdiff - parsimonycommand.cpp
bugs for 1.5
[mothur.git] / parsimonycommand.cpp
index 6df2debe877bc0d594949ad3f62249f3912f76eb..6ffb30b3caf18a695604c69c5556b2b7c5c2b50a 100644 (file)
@@ -45,7 +45,7 @@ ParsimonyCommand::ParsimonyCommand(string option) {
                        //check for optional parameter and set defaults
                        // ...at some point should added some additional type checking...
                        groups = validParameter.validFile(parameters, "groups", false);                 
-                       if (groups == "not found") { groups = ""; }
+                       if (groups == "not found") { groups = ""; globaldata->Groups.clear(); }
                        else { 
                                splitAtDash(groups, Groups);
                                globaldata->Groups = Groups;
@@ -71,7 +71,7 @@ ParsimonyCommand::ParsimonyCommand(string option) {
                                
                                //set users groups to analyze
                                util = new SharedUtil();
-                               util->setGroups(globaldata->Groups, tmap->namesOfGroups, allGroups, numGroups, "unweighted");   //sets the groups the user wants to analyze
+                               util->setGroups(globaldata->Groups, tmap->namesOfGroups, allGroups, numGroups, "parsimony");    //sets the groups the user wants to analyze
                                util->getCombos(groupComb, globaldata->Groups, numComp);
                                
                                if (numGroups == 1) { numComp++; groupComb.push_back(allGroups); }