]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
working on chimera change to add trim feature, fixed bug in print of distance file...
[mothur.git] / unifracweightedcommand.cpp
index b2fd628b42218a38db6b61366ba7374b4ea4603a..bee10cb4e9954f56960c96e7efe8904958d67c97 100644 (file)
@@ -527,7 +527,7 @@ void UnifracWeightedCommand::createPhylipFile() {
                        
                        //flip it so you can print it
                        for (int r=0; r<globaldata->Groups.size(); r++) { 
-                               for (int l = r+1; l < globaldata->Groups.size(); l++) {
+                               for (int l = 0; l < r; l++) {
                                        dists[r][l] = utreeScores[count];
                                        dists[l][r] = utreeScores[count];
                                        count++;