]> git.donarmstrong.com Git - mothur.git/blobdiff - venn.cpp
got rid of extra temp files in dist.seqs
[mothur.git] / venn.cpp
index 6f44ed3f366fa6eae8a6c72a85d2c1681046e3f5..112a78b22a18850934f297d2cf63d60e86697c30 100644 (file)
--- a/venn.cpp
+++ b/venn.cpp
@@ -240,7 +240,7 @@ void Venn::getPic(vector<SharedRAbundVector*> lookup, vector<Calculator*> vCalcs
                                //find possible sharedABC values
                                float sharedABC1 = 0.0; float sharedABC2 = 0.0; float sharedABC3 = 0.0; float sharedABC = 0.0;
 
-                               if (vCalcs[i]->getName() != "sharedchao") {
+                               if (vCalcs[i]->getMultiple() == false) {
                                        //merge BC and estimate with shared with A
                                        SharedRAbundVector* merge = new SharedRAbundVector();
                                        for (int j = 0; j < lookup[1]->size(); j++) {
@@ -342,6 +342,7 @@ void Venn::getPic(vector<SharedRAbundVector*> lookup, vector<Calculator*> vCalcs
                                }else { outsvg << "</text>\n"; }
 
                                outsvg << "<text fill=\"black\" class=\"seri\" x=\"175\" y=\"640\">The total richness of all the groups is " + toString(numA[0] + numB[0] + numC[0] - sharedAB[0] - sharedAC[0] - sharedBC[0] + sharedABC) + "</text>\n";
+                               outsvg << "<text fill=\"black\" class=\"seri\" x=\"175\" y=\"780\">The total shared richness is " + toString(sharedABC) + "</text>\n";
                                
                                //close file
                                outsvg << "</g>\n</svg>\n";