public:
SplitGroupCommand(string);
- ~SplitGroupCommand();
- int execute();
- void help();
+ SplitGroupCommand();
+ ~SplitGroupCommand() {}
+
+ vector<string> 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<string> outputNames;
- map<string, vector<string> > nameMap;
- map<string, vector<string> >::iterator itNames;
- GroupMap* groupMap;
-
- string outputDir, namefile, groupfile, groups, fastafile;
+
+ string outputDir, namefile, groupfile, countfile, groups, fastafile;
vector<string> Groups;
bool abort;
+
+ int runNameGroup();
+ int runCount();
};
/***************************************************************************************/