]> git.donarmstrong.com Git - mothur.git/blobdiff - parsimony.cpp
fixed bug in read.tree updates help and validparameters strings, added ability for...
[mothur.git] / parsimony.cpp
index fc1a8b6f48821a3d66aa1fb9c70799260c56c241..9a8706e82499fb80f9c2a55d61bc92c7b2399839 100644 (file)
@@ -75,7 +75,9 @@ EstOutput Parsimony::getValues(Tree* t) {
                        if (numGroups == 0) {
                                //get score for all users groups
                                for (int i = 0; i < tmap->namesOfGroups.size(); i++) {
-                                       groups.push_back(tmap->namesOfGroups[i]);
+                                       if (tmap->namesOfGroups[i] != "xxx") {
+                                               groups.push_back(tmap->namesOfGroups[i]);
+                                       }
                                }
                        }else {
                                for (int i = 0; i < globaldata->Groups.size(); i++) {
@@ -126,6 +128,8 @@ EstOutput Parsimony::getValues(Tree* t) {
 //                     cin >> hold;
                }
                
+               delete copyTree;
+               
                return data;
        }
        catch(exception& e) {