X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.h;h=db931b5a5e380169c3147ee8b0c9acb4d72f1a00;hb=2ff2d03fbe46ce8cf2738bff4403a52be4f31e2f;hp=efb3823aa74fb162bc1e1d0090d3af958f89f777;hpb=ad4f75fd7c938090d3b1ce4cfefcc21edf1869eb;p=mothur.git diff --git a/mothurout.h b/mothurout.h index efb3823..db931b5 100644 --- a/mothurout.h +++ b/mothurout.h @@ -93,9 +93,13 @@ class MothurOut { string getRootName(string); bool isBlank(string); int openOutputFile(string, ofstream&); + int openOutputFileBinary(string, ofstream&); int openOutputFileAppend(string, ofstream&); + int openOutputFileBinaryAppend(string, ofstream&); int openInputFile(string, ifstream&); - int openInputFile(string, ifstream&, string); //no error given + int openInputFile(string, ifstream&, string); //no error given + + bool checkLocations(string&, string); //filename, inputDir. checks for file in ./, inputdir, default and mothur's exe location. Returns false if cant be found. If found completes name with location string getline(ifstream&); string getline(istringstream&); void gobble(istream&); @@ -136,6 +140,9 @@ class MothurOut { bool isTrue(string); bool isContainingOnlyDigits(string); bool isNumeric1(string); + bool isLabelEquivalent(string, string); + string getSimpleLabel(string); + string findEdianness(); //string manipulation @@ -153,13 +160,17 @@ class MothurOut { string makeList(vector&); bool isSubset(vector, vector); //bigSet, subset int checkName(string&); + map > parseClasses(string); //math operation + double max(vector&); //returns largest value in vector + double min(vector&); //returns smallest value in vector int factorial(int num); vector > binomial(int); float ceilDist(float, int); float roundDist(float, int); unsigned int fromBase36(string); + double median(vector); int getRandomIndex(int); //highest double getStandardDeviation(vector&); vector getStandardDeviation(vector< vector >&);