X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=mothurout.h;h=363a7a88041ac97bfd207558fc4fa445af7d442b;hp=77b1b6d4ec1efb758973d332aa8e4df00619f58b;hb=499f4ac6e321f9f03d4c3aa25c3b6880892c8b83;hpb=b25ede2ad307ae76f8a610443e0ec3ec69621ce7 diff --git a/mothurout.h b/mothurout.h index 77b1b6d..363a7a8 100644 --- a/mothurout.h +++ b/mothurout.h @@ -67,10 +67,12 @@ class MothurOut { vector getAllGroups() { sort(namesOfGroups.begin(), namesOfGroups.end()); return namesOfGroups; } vector Treenames; //map names; - vector binLabelsInFile; - vector currentBinLabels; + vector sharedBinLabelsInFile; + vector currentSharedBinLabels; + vector listBinLabelsInFile; + //vector currentListBinLabels; string saveNextLabel, argv, sharedHeaderMode, groupMode; - bool printedHeaders, commandInputsConvertError, changedSeqNames, modifyNames; + bool printedSharedHeaders, printedListHeaders, commandInputsConvertError, changedSeqNames, modifyNames; //functions from mothur.h //file operations @@ -93,7 +95,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&); @@ -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 @@ -156,11 +163,14 @@ class MothurOut { 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 >&); @@ -262,7 +272,8 @@ class MothurOut { counttablefile = ""; summaryfile = ""; gui = false; - printedHeaders = false; + printedSharedHeaders = false; + printedListHeaders = false; commandInputsConvertError = false; mothurCalling = false; debug = false;