]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
1.9
[mothur.git] / unifracweightedcommand.cpp
index cd7fec12320e3ee50e415a348df4a5b503e35763..f092b0f2cf03c8e00d70e437af2219ad9c8def44 100644 (file)
@@ -365,8 +365,8 @@ 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++) {
-                                       dists[r][l] = (1.0 - utreeScores[count]);
-                                       dists[l][r] = (1.0 - utreeScores[count]);
+                                       dists[r][l] = utreeScores[count];
+                                       dists[l][r] = utreeScores[count];
                                        count++;
                                }
                        }