X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=sharedcommand.h;h=a916c854280c74d035968bfc84ec4ab88a4f70e6;hp=51a25281cfea1e6a47d9bfc969bb63eccc9624e9;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=a44542a3c740cf957cff72ac71742f2fe48b0eaf diff --git a/sharedcommand.h b/sharedcommand.h index 51a2528..a916c85 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,19 +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(vector&, SharedListVector*); + int createSharedFromListGroup(); + int createSharedFromBiom(); + 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;