]> git.donarmstrong.com Git - mothur.git/blobdiff - sharedsorabund.cpp
fixes while testing 1.33.0
[mothur.git] / sharedsorabund.cpp
index 6748bfe86af75f13a5c206577ed5a7f0d51fa6ae..9a1bd63d7bd2a5b459c6b9955afa77cebc23ed7c 100644 (file)
@@ -23,17 +23,14 @@ EstOutput SorAbund::getValues(vector<SharedRAbundVector*> shared) {
                data[0] = (2 * UVest[0] * UVest[1]) / ((float)(UVest[0] + UVest[1]));
                
                if (isnan(data[0]) || isinf(data[0])) { data[0] = 0; }
+               data[0] = 1-data[0];
                
                return data;
        }
        catch(exception& e) {
-               cout << "Standard Error: " << e.what() << " has occurred in the SorAbund class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
+               m->errorOut(e, "SorAbund", "getValues");
                exit(1);
        }
-       catch(...) {
-               cout << "An unknown error has occurred in the SorAbund class Function getValues. Please contact Pat Schloss at pschloss@microbio.umass.edu." << "\n";
-               exit(1);
-       }       
 }
 
 /***********************************************************************/