X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=mothurout.h;h=b19c05a68381c3ca96e19264e0eca931e22a0895;hb=ee8403d4eb5760187d62b42a9cf4272de8fc0ec4;hp=12de987e231247a4fb195aef20054bd94dacd375;hpb=d6c0a11d1cecfac18b323285e7ffadb7f58e848f;p=mothur.git diff --git a/mothurout.h b/mothurout.h index 12de987..b19c05a 100644 --- a/mothurout.h +++ b/mothurout.h @@ -65,7 +65,7 @@ class MothurOut { vector getAllGroups() { sort(namesOfGroups.begin(), namesOfGroups.end()); return namesOfGroups; } vector Treenames; - map names; + //map names; vector binLabelsInFile; vector currentBinLabels; string saveNextLabel, argv, sharedHeaderMode; @@ -73,6 +73,7 @@ class MothurOut { //functions from mothur.h //file operations + bool dirCheck(string&); //completes path, appends appropriate / or \, makes sure dir is writable. vector divideFile(string, int&); int divideFile(string, int&, vector&); vector setFilePosEachLine(string, int&); @@ -81,6 +82,7 @@ class MothurOut { int appendFiles(string, string); int renameFile(string, string); //oldname, newname string getFullPathName(string); + string findProgramPath(string programName); string hasPath(string); string getExtension(string); string getPathName(string); @@ -95,6 +97,7 @@ class MothurOut { string getline(istringstream&); void gobble(istream&); void gobble(istringstream&); + vector splitWhiteSpace(string& rest, char[], int); map readNames(string); int readNames(string, map&); int readNames(string, map >&); @@ -127,7 +130,9 @@ class MothurOut { void splitAtDash(string&, set&); void splitAtDash(string&, vector&); void splitAtChar(string&, vector&, char); + void splitAtChar(string&, string&, char); int removeConfidences(string&); + string makeList(vector&); //math operation int factorial(int num); @@ -138,7 +143,7 @@ class MothurOut { int getRandomIndex(int); //highest int control_pressed; - bool executing, runParse, jumble, gui; + bool executing, runParse, jumble, gui, mothurCalling, debug; //current files - if you add a new type you must edit optionParser->getParameters, get.current command and mothurOut->printCurrentFiles/clearCurrentFiles. string getPhylipFile() { return phylipfile; } @@ -161,6 +166,7 @@ class MothurOut { string getAccnosFile() { return accnosfile; } string getTaxonomyFile() { return taxonomyfile; } string getFlowFile() { return flowfile; } + string getBiomFile() { return biomfile; } string getProcessors() { return processors; } void setListFile(string f) { listfile = getFullPathName(f); } @@ -183,6 +189,7 @@ class MothurOut { void setAccnosFile(string f) { accnosfile = getFullPathName(f); } void setTaxonomyFile(string f) { taxonomyfile = getFullPathName(f); } void setFlowFile(string f) { flowfile = getFullPathName(f); } + void setBiomFile(string f) { biomfile = getFullPathName(f); } void setProcessors(string p) { processors = p; } void printCurrentFiles(); @@ -216,9 +223,12 @@ class MothurOut { taxonomyfile = ""; processors = "1"; flowfile = ""; + biomfile = ""; gui = false; printedHeaders = false; commandInputsConvertError = false; + mothurCalling = false; + debug = false; sharedHeaderMode = ""; } ~MothurOut(); @@ -227,7 +237,7 @@ class MothurOut { string defaultPath, outputDir; string releaseDate, version; - string accnosfile, phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, designfile, taxonomyfile; + string accnosfile, phylipfile, columnfile, listfile, rabundfile, sabundfile, namefile, groupfile, designfile, taxonomyfile, biomfile; string orderfile, treefile, sharedfile, ordergroupfile, relabundfile, fastafile, qualfile, sfffile, oligosfile, processors, flowfile; vector Groups;