X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=splitgroupscommand.h;h=ec22b8fedaec8752dd1b9161c6476b0223fc157e;hp=f6e8760e11ef8e02661dc275f22bc94414aa1517;hb=df7e3ff9f68ef157b0328a2d353c3258c5d45d89;hpb=cea46f0830d8d1a6dc26e3410fc283d26c355831 diff --git a/splitgroupscommand.h b/splitgroupscommand.h index f6e8760..ec22b8f 100644 --- a/splitgroupscommand.h +++ b/splitgroupscommand.h @@ -24,23 +24,31 @@ class SplitGroupCommand : public Command { public: SplitGroupCommand(string); - ~SplitGroupCommand(); - int execute(); - void help(); + SplitGroupCommand(); + ~SplitGroupCommand() {} + + vector setParameters(); + string getCommandName() { return "split.groups"; } + string getCommandCategory() { return "Sequence Processing"; } + + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "http://www.mothur.org/wiki/Split.group"; } + string getDescription() { return "split a name or fasta file by group"; } -private: - int readNames(); - int splitFasta(); + int execute(); + void help() { m->mothurOut(getHelpString()); } +private: vector outputNames; - map > nameMap; - map >::iterator itNames; - GroupMap* groupMap; - - string outputDir, namefile, groupfile, groups, fastafile; + + string outputDir, namefile, groupfile, countfile, groups, fastafile; vector Groups; bool abort; + + int runNameGroup(); + int runCount(); }; /***************************************************************************************/