X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=sharedcommand.h;h=5d0daa2fdc484f55b78613541e1e82ef547a7d09;hb=8e3e7b1e124f45cb1f2ca9d764ff67fa9b2e532b;hp=f1e7c48cd71ee7ff1984e43cb7bb5676a3ee42a5;hpb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;p=mothur.git diff --git a/sharedcommand.h b/sharedcommand.h index f1e7c48..5d0daa2 100644 --- a/sharedcommand.h +++ b/sharedcommand.h @@ -31,24 +31,29 @@ public: string getCommandName() { return "make.shared"; } string getCommandCategory() { return "OTU-Based Approaches"; } string getHelpString(); - + string getCitation() { return "http://www.mothur.org/wiki/Make.shared"; } + string getDescription() { return "make a shared file from a list and group file"; } + int execute(); void help() { m->mothurOut(getHelpString()); } private: - void printSharedData(vector); - int createMisMatchFile(); + void printSharedData(vector, ofstream&); + int createMisMatchFile(SharedListVector*, GroupMap*); int readOrderFile(); bool isValidGroup(string, vector); int eliminateZeroOTUS(vector&); + int ListGroupSameSeqs(vector&, SharedListVector*); + int createSharedFromListGroup(string); + int createSharedFromBiom(string); + string getTag(string&); + vector readRows(string, ifstream&, int&); + int getDims(string, int&, int&); + vector readData(string, string, ifstream&, 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; bool firsttime, pickedGroups, abort, allLines; map filehandles; map::iterator it3;