]> git.donarmstrong.com Git - mothur.git/blobdiff - weighted.cpp
fixed order of unifrac commands so that it matches the summary commands
[mothur.git] / weighted.cpp
index fd7f8541494e78ade54e78f6832e7f4eab20ea2e..52d90c8ac4487d83acd1587b1d0f5c30b0c4cfe0 100644 (file)
@@ -30,7 +30,7 @@ EstOutput Weighted::getValues(Tree* t, int p, string o) {
                //calculate number of comparisons i.e. with groups A,B,C = AB, AC, BC = 3;
                vector< vector<string> > namesOfGroupCombos;
                for (int i=0; i<numGroups; i++) { 
-                       for (int l = i+1; l < numGroups; l++) { 
+                       for (int l = 0; l < i; l++) {   
                                //initialize weighted scores
                                //WScore[globaldata->Groups[i]+globaldata->Groups[l]] = 0.0;
                                vector<string> groups; groups.push_back(globaldata->Groups[i]); groups.push_back(globaldata->Groups[l]);