X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.h;h=ffdcaf63d704d087eccf27892bf6797765955a0e;hb=4b54ce99af7db8019ea907cd7c2edf789369ada9;hp=98565dc547d1e81dc03d88c9a526983727c1b124;hpb=f06b339c5fc4b6d1b9d2a08fe16bf7670bf7aeb4;p=mothur.git diff --git a/mothurout.h b/mothurout.h index 98565dc..ffdcaf6 100644 --- a/mothurout.h +++ b/mothurout.h @@ -68,8 +68,8 @@ class MothurOut { //map names; vector binLabelsInFile; vector currentBinLabels; - string saveNextLabel, argv, sharedHeaderMode; - bool printedHeaders, commandInputsConvertError; + string saveNextLabel, argv, sharedHeaderMode, groupMode; + bool printedHeaders, commandInputsConvertError, changedSeqNames; //functions from mothur.h //file operations @@ -102,6 +102,7 @@ class MothurOut { set readAccnos(string); int readAccnos(string, vector&); map readNames(string); + map readNames(string, unsigned long int&); int readTax(string, map&); int readNames(string, map&, map&); int readNames(string, map&); @@ -111,6 +112,7 @@ class MothurOut { int readNames(string, vector&, map&); int mothurRemove(string); bool mothurConvert(string, int&); //use for converting user inputs. Sets commandInputsConvertError to true if error occurs. Engines check this. + bool mothurConvert(string, intDist&); //use for converting user inputs. Sets commandInputsConvertError to true if error occurs. Engines check this. bool mothurConvert(string, float&); //use for converting user inputs. Sets commandInputsConvertError to true if error occurs. Engines check this. bool mothurConvert(string, double&); //use for converting user inputs. Sets commandInputsConvertError to true if error occurs. Engines check this. @@ -119,7 +121,9 @@ class MothurOut { bool checkReleaseVersion(ifstream&, string); bool anyLabelsToProcess(string, set&, string); bool inUsersGroups(vector, vector); + bool inUsersGroups(vector, vector< vector >); bool inUsersGroups(string, vector); + bool inUsersGroups(int, vector); void getNumSeqs(ifstream&, int&); int getNumSeqs(ifstream&); int getNumNames(string); @@ -138,8 +142,12 @@ class MothurOut { void splitAtDash(string&, vector&); void splitAtChar(string&, vector&, char); void splitAtChar(string&, string&, char); + vector splitWhiteSpaceWithQuotes(string); int removeConfidences(string&); + string removeQuotes(string); string makeList(vector&); + bool isSubset(vector, vector); //bigSet, subset + int checkName(string&); //math operation int factorial(int num); @@ -148,6 +156,14 @@ class MothurOut { float roundDist(float, int); unsigned int fromBase36(string); int getRandomIndex(int); //highest + double getStandardDeviation(vector&); + vector getStandardDeviation(vector< vector >&); + vector getStandardDeviation(vector< vector >&, vector&); + vector getAverages(vector< vector >&); + vector< vector > getStandardDeviation(vector< vector< vector > >&); + vector< vector > getStandardDeviation(vector< vector< vector > >&, vector< vector >&); + vector< vector > getAverages(vector< vector< vector > >&, string); + vector< vector > getAverages(vector< vector< vector > >&); int control_pressed; bool executing, runParse, jumble, gui, mothurCalling, debug; @@ -179,7 +195,7 @@ class MothurOut { void setListFile(string f) { listfile = getFullPathName(f); } void setTreeFile(string f) { treefile = getFullPathName(f); } - void setGroupFile(string f) { groupfile = getFullPathName(f); } + void setGroupFile(string f) { groupfile = getFullPathName(f); groupMode = "group"; } void setPhylipFile(string f) { phylipfile = getFullPathName(f); } void setColumnFile(string f) { columnfile = getFullPathName(f); } void setNameFile(string f) { namefile = getFullPathName(f); } @@ -198,7 +214,7 @@ class MothurOut { void setTaxonomyFile(string f) { taxonomyfile = getFullPathName(f); } void setFlowFile(string f) { flowfile = getFullPathName(f); } void setBiomFile(string f) { biomfile = getFullPathName(f); } - void setCountTableFile(string f) { counttablefile = getFullPathName(f); } + void setCountTableFile(string f) { counttablefile = getFullPathName(f); groupMode = "count"; } void setProcessors(string p) { processors = p; mothurOut("\nUsing " + toString(p) + " processors.\n"); } void printCurrentFiles(); @@ -241,6 +257,8 @@ class MothurOut { mothurCalling = false; debug = false; sharedHeaderMode = ""; + groupMode = "group"; + changedSeqNames = false; } ~MothurOut();