X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=getsharedotucommand.h;h=f03b5ddcf6b5de00eba42210d39c74e46848d73c;hb=372fb21ea66ced432b109225851a1b80ef0491a3;hp=30a5cd2468ab7ec8bb741729f4cb390e8a8f7c1d;hpb=aa9238c0a9e6e7aa0ed8b8b606b08ad4fd7dcfe3;p=mothur.git diff --git a/getsharedotucommand.h b/getsharedotucommand.h index 30a5cd2..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,18 +23,30 @@ 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, userGroups, outputDir; + string fastafile, label, groups, listfile, groupfile, sharedfile, output, userGroups, outputDir, format; bool abort, allLines, unique; vector Groups; map groupFinder; @@ -42,6 +55,8 @@ class GetSharedOTUCommand : public Command { vector outputNames; int process(ListVector*); + int process(vector&); + int runShared(); }; //**********************************************************************************************************************