]> git.donarmstrong.com Git - mothur.git/blobdiff - unifracweightedcommand.cpp
changes for 1.16.0
[mothur.git] / unifracweightedcommand.cpp
index 4ded9c51d399de1bf07950da88e0cb3a19e333d0..bee10cb4e9954f56960c96e7efe8904958d67c97 100644 (file)
@@ -332,7 +332,6 @@ int UnifracWeightedCommand::createProcesses(Tree* t, vector< vector<string> > na
        try {
 #if defined (__APPLE__) || (__MACH__) || (linux) || (__linux)
                int process = 1;
-               int num = 0;
                vector<int> processIDS;
                
                EstOutput results;
@@ -528,7 +527,7 @@ 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++) {
+                               for (int l = 0; l < r; l++) {
                                        dists[r][l] = utreeScores[count];
                                        dists[l][r] = utreeScores[count];
                                        count++;