X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.h;h=3cf6fa4963672b5d69acb7de389eb266b957ba24;hb=3914b0d6480f67df53b1e838f51c4e6155710434;hp=643ecd58a149aebc1ac88f500d4658de98d5e145;hpb=c48d91112209b841444923670dca5454da0e2a4d;p=mothur.git diff --git a/mothurout.h b/mothurout.h index 643ecd5..3cf6fa4 100644 --- a/mothurout.h +++ b/mothurout.h @@ -70,7 +70,7 @@ class MothurOut { vector binLabelsInFile; vector currentBinLabels; string saveNextLabel, argv, sharedHeaderMode, groupMode; - bool printedHeaders, commandInputsConvertError, changedSeqNames; + bool printedHeaders, commandInputsConvertError, changedSeqNames, modifyNames; //functions from mothur.h //file operations @@ -93,7 +93,9 @@ 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 string getline(ifstream&); @@ -107,6 +109,8 @@ class MothurOut { map readNames(string); map readNames(string, unsigned long int&); int readTax(string, map&); + vector readConsTax(string); + int readConsTax(string, map&); int readNames(string, map&, map&); int readNames(string, map&); int readNames(string, map&, bool); @@ -151,6 +155,7 @@ class MothurOut { string makeList(vector&); bool isSubset(vector, vector); //bigSet, subset int checkName(string&); + map > parseClasses(string); //math operation int factorial(int num); @@ -163,6 +168,7 @@ class MothurOut { vector getStandardDeviation(vector< vector >&); vector getStandardDeviation(vector< vector >&, vector&); vector getAverages(vector< vector >&); + double getAverage(vector); vector< vector > getStandardDeviation(vector< vector< vector > >&); vector< vector > getStandardDeviation(vector< vector< vector > >&, vector< vector >&); vector< vector > getAverages(vector< vector< vector > >&, string); @@ -265,6 +271,7 @@ class MothurOut { sharedHeaderMode = ""; groupMode = "group"; changedSeqNames = false; + modifyNames = true; } ~MothurOut();