]> git.donarmstrong.com Git - mothur.git/blobdiff - unweighted.cpp
fixed order of unifrac commands so that it matches the summary commands
[mothur.git] / unweighted.cpp
index a9515d160a93c50813f61f5a54c1da6423cd4da3..8103688fb04d34542ee2174728d3399055a5d452 100644 (file)
@@ -24,7 +24,7 @@ EstOutput Unweighted::getValues(Tree* t, int p, string o) {
                int numComp = 0;
                vector< vector<string> > namesOfGroupCombos;
                for (int r=0; r<numGroups; r++) { 
-                       for (int l = r+1; l < numGroups; l++) {
+                       for (int l = 0; l < r; l++) {
                                numComp++;
                                vector<string> groups; groups.push_back(globaldata->Groups[r]); groups.push_back(globaldata->Groups[l]);
                                namesOfGroupCombos.push_back(groups);
@@ -241,7 +241,7 @@ EstOutput Unweighted::getValues(Tree* t, string groupA, string groupB, int p, st
                int numComp = 0;
                vector< vector<string> > namesOfGroupCombos;
                for (int r=0; r<numGroups; r++) { 
-                       for (int l = r+1; l < numGroups; l++) {
+                       for (int l = 0; l < r; l++) {
                                numComp++;
                                vector<string> groups; groups.push_back(globaldata->Groups[r]); groups.push_back(globaldata->Groups[l]);
                                namesOfGroupCombos.push_back(groups);