X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=unifracweightedcommand.cpp;h=f092b0f2cf03c8e00d70e437af2219ad9c8def44;hb=ccaad73f103d8f105264d65491ce19e5df80477d;hp=cd7fec12320e3ee50e415a348df4a5b503e35763;hpb=aa9238c0a9e6e7aa0ed8b8b606b08ad4fd7dcfe3;p=mothur.git diff --git a/unifracweightedcommand.cpp b/unifracweightedcommand.cpp index cd7fec1..f092b0f 100644 --- a/unifracweightedcommand.cpp +++ b/unifracweightedcommand.cpp @@ -365,8 +365,8 @@ void UnifracWeightedCommand::createPhylipFile() { //flip it so you can print it for (int r=0; rGroups.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++; } }