X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getsharedotucommand.h;h=f03b5ddcf6b5de00eba42210d39c74e46848d73c;hp=3b14b39bb70e8939641dea69c2e53bcb98a82ffa;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=c82900be3ceed3d9bc491bdc98b1819ef85c1af7 diff --git a/getsharedotucommand.h b/getsharedotucommand.h index 3b14b39..f03b5dd 100644 --- a/getsharedotucommand.h +++ b/getsharedotucommand.h @@ -14,7 +14,8 @@ #include "listvector.hpp" #include "sequence.hpp" #include "groupmap.h" -#include "globaldata.hpp" +#include "sharedrabundvector.h" +#include "inputdata.h" //********************************************************************************************************************** class GetSharedOTUCommand : public Command { @@ -22,25 +23,40 @@ class GetSharedOTUCommand : public Command { public: GetSharedOTUCommand(string); - ~GetSharedOTUCommand(); - int execute(); - void help(); + GetSharedOTUCommand(); + ~GetSharedOTUCommand() {} + + vector setParameters(); + string getCommandName() { return "get.sharedseqs"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + string getRequiredCommand() { return "none"; } - private: + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "http://www.mothur.org/wiki/Get.sharedseqs"; } + string getDescription() { return "identifies sequences that are either unique or shared by specific groups"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + + - GlobalData* globaldata; + private: ListVector* list; GroupMap* groupMap; set labels; - string fastafile, label, groups, listfile, groupfile, output; + string fastafile, label, groups, listfile, groupfile, sharedfile, output, userGroups, outputDir, format; bool abort, allLines, unique; vector Groups; map groupFinder; map::iterator it; vector seqs; + vector outputNames; - void process(ListVector*); + int process(ListVector*); + int process(vector&); + int runShared(); }; //**********************************************************************************************************************