]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
fixed order of unifrac commands so that it matches the summary commands
[mothur.git] / unifracweightedcommand.cpp
index 1417b5a34a6e4ca8a133cc6f2c8ae390ffb81271..e4a0a9d66e3128753371dca2d90554c43c4b59a9 100644 (file)
@@ -158,7 +158,7 @@ int UnifracWeightedCommand::execute() {
                                //calculate number of comparisons i.e. with groups A,B,C = AB, AC, BC = 3;
                                vector< vector<string> > namesOfGroupCombos;
                                for (int a=0; a<numGroups; a++) { 
-                                       for (int l = a+1; l < numGroups; l++) { 
+                                       for (int l = 0; l < a; l++) {   
                                                vector<string> groups; groups.push_back(globaldata->Groups[a]); groups.push_back(globaldata->Groups[l]);
                                                namesOfGroupCombos.push_back(groups);
                                        }