X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracunweightedcommand.cpp;h=77cd4d7d686ed5607c11eb07d2245c62f2ef2deb;hb=438aa88dbc092d9c1c80ec3fa20c8e47f97101c4;hp=28bc2ac55f64ebb02185a55d43ba9ea8e6faa03b;hpb=e4ca037c5e637e3d34e64cb5e8ab11b03220188d;p=mothur.git diff --git a/unifracunweightedcommand.cpp b/unifracunweightedcommand.cpp index 28bc2ac..77cd4d7 100644 --- a/unifracunweightedcommand.cpp +++ b/unifracunweightedcommand.cpp @@ -336,8 +336,8 @@ void UnifracUnweightedCommand::createPhylipFile(int i) { int count = 0; for (int r=0; rGroups.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++; } }