]> git.donarmstrong.com Git - mothur.git/blobdiff - unweighted.cpp
working on parallelizing unifrac.weighted.
[mothur.git] / unweighted.cpp
index d9b3b586ad7487b0782277955c3ad53e40642851..c4548c9c5ada81a19405ef491a00b1d62672c2d8 100644 (file)
@@ -55,7 +55,7 @@ EstOutput Unweighted::getValues(Tree* t) {
                                        int pcountSize = 0;
                                        for (int j = 0; j < groups.size(); j++) {
                                                map<string, int>::iterator itGroup = t->tree[i].pcount.find(groups[j]);
-                                               if (itGroup != t->tree[i].pcount.end()) { pcountSize++; if (pcountSize > 1) { break; } 
+                                               if (itGroup != t->tree[i].pcount.end()) { pcountSize++; } 
                                        }
                                        
                                        if (pcountSize == 0) { }
@@ -188,7 +188,7 @@ EstOutput Unweighted::getValues(Tree* t, string groupA, string groupB) {
                                        int pcountSize = 0;
                                        for (int j = 0; j < groups.size(); j++) {
                                                map<string, int>::iterator itGroup = copyTree->tree[i].pcount.find(groups[j]);
-                                               if (itGroup != copyTree->tree[i].pcount.end()) { pcountSize++; if (pcountSize > 1) { break; } 
+                                               if (itGroup != copyTree->tree[i].pcount.end()) { pcountSize++; } 
                                        }
                                        
                                        if (pcountSize == 0) { }