]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracunweightedcommand.cpp
1.9
[mothur.git] / unifracunweightedcommand.cpp
index 28bc2ac55f64ebb02185a55d43ba9ea8e6faa03b..77cd4d7d686ed5607c11eb07d2245c62f2ef2deb 100644 (file)
@@ -336,8 +336,8 @@ void UnifracUnweightedCommand::createPhylipFile(int i) {
                int count = 0;
                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][0]);
-                               dists[l][r] = (1.0 - utreeScores[count][0]);
+                               dists[r][l] = utreeScores[count][0];
+                               dists[l][r] = utreeScores[count][0];
                                count++;
                        }
                }