X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedcommand.h;h=39ef9a7a1ebc17f830103cf33d84520aca975f97;hp=861632ce7d6a8026c14b463387b9d8dbb320522d;hb=615301e57c25e241356a9c2380648d117709458d;hpb=55386dddad84cc1140d736cabaf4dd0ae16f2e01 diff --git a/sharedcommand.h b/sharedcommand.h index 861632c..39ef9a7 100644 --- a/sharedcommand.h +++ b/sharedcommand.h @@ -30,7 +30,9 @@ public: vector setParameters(); string getCommandName() { return "make.shared"; } string getCommandCategory() { return "OTU-Based Approaches"; } + string getHelpString(); + string getOutputPattern(string); string getCitation() { return "http://www.mothur.org/wiki/Make.shared"; } string getDescription() { return "make a shared file from a list and group file"; } @@ -38,20 +40,21 @@ public: void help() { m->mothurOut(getHelpString()); } private: - void printSharedData(vector); - int createMisMatchFile(); + void printSharedData(vector, ofstream&); int readOrderFile(); bool isValidGroup(string, vector); int eliminateZeroOTUS(vector&); - int ListGroupSameSeqs(); + int ListGroupSameSeqs(vector&, SharedListVector*); + int createSharedFromListGroup(string); + int createSharedFromBiom(string); + string getTag(string&); + vector readRows(string, int&); + int getDims(string, int&, int&); + vector readData(string, string, string, vector&, int); - SharedListVector* SharedList; - InputData* input; - GroupMap* groupMap; vector Groups, outputNames, order; set labels; - ofstream out; - string filename, fileroot, outputDir, listfile, groupfile, ordergroupfile; + string fileroot, outputDir, listfile, groupfile, biomfile, ordergroupfile, countfile; bool firsttime, pickedGroups, abort, allLines; map filehandles; map::iterator it3;