]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.cpp
working on chimera change to add trim feature, fixed bug in print of distance file...
[mothur.git] / unifracunweightedcommand.cpp
index b80a3abb4bb76bd0a5da3afa5548df0771797e45..79ee042a9ac883ddadbfef057dff813a4e51cf2a 100644 (file)
@@ -406,7 +406,7 @@ void UnifracUnweightedCommand::createPhylipFile(int i) {
                //flip it so you can print it
                int count = 0;
                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][0];
                                dists[l][r] = utreeScores[count][0];
                                count++;