X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=removegroupscommand.h;h=c6e9d645c9f7fff26e2c23c634b6264a4614e01b;hp=896697aa4cfe7c9cfa7532db6e94b5f5590050ad;hb=050a3ff02473a3d4c0980964e1a9ebe52e55d6b8;hpb=e3e0858c684c4608d679840024e5095ddc8e2719 diff --git a/removegroupscommand.h b/removegroupscommand.h index 896697a..c6e9d64 100644 --- a/removegroupscommand.h +++ b/removegroupscommand.h @@ -21,28 +21,40 @@ public: RemoveGroupsCommand(string); RemoveGroupsCommand(); ~RemoveGroupsCommand(){} - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + + vector setParameters(); + string getCommandName() { return "remove.groups"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "http://www.mothur.org/wiki/Remove.groups"; } + string getDescription() { return "removes sequences from a list, fasta, name, group, shared, design or taxonomy file from a given group or set of groups"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: set names; - string accnosfile, fastafile, namefile, groupfile, listfile, taxfile, outputDir, groups; + string accnosfile, fastafile, namefile, groupfile, countfile, designfile, listfile, taxfile, outputDir, groups, sharedfile; bool abort; vector outputNames, Groups; - map > outputTypes; GroupMap* groupMap; + map uniqueToRedundant; //if a namefile is given and the first column name is not selected + //then the other files need to change the unique name in their file to match. + //only add the names that need to be changed to keep the map search quick + int readFasta(); + int readShared(); int readName(); int readGroup(); - void readAccnos(); + int readCount(); int readList(); int readTax(); int fillNames(); + int readDesign(); };