X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clusterfragmentscommand.h;h=c322529f3bedf95600a8b30e0ac013be2870d290;hb=5a4ac4f954c4b4445bcee272f1f8220ddcc9c1e4;hp=842485e15c1c9679cf6cd8b1cb16f987454a27c5;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281;p=mothur.git diff --git a/clusterfragmentscommand.h b/clusterfragmentscommand.h index 842485e..c322529 100644 --- a/clusterfragmentscommand.h +++ b/clusterfragmentscommand.h @@ -32,27 +32,33 @@ class ClusterFragmentsCommand : public Command { public: ClusterFragmentsCommand(string); ClusterFragmentsCommand(); - ~ClusterFragmentsCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~ClusterFragmentsCommand() {} + + vector setParameters(); + string getCommandName() { return "cluster.fragments"; } + string getCommandCategory() { return "Sequence Processing"; } + string getOutputFileNameTag(string, string); + string getHelpString(); + string getCitation() { return "http://www.mothur.org/wiki/Cluster.fragments"; } + string getDescription() { return "creates a namesfile with sequences that are a fragment of a larger sequence"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: bool abort; string fastafile, namefile, outputDir; + int diffs, percent; vector alignSeqs; map names; //represents the names file first column maps to second column map sizes; //this map a seq name to the number of identical seqs in the names file map::iterator itSize; vector outputNames; - map > outputTypes; int readFASTA(); void readNameFile(); void printData(string, string); //fasta filename, names file name + bool isFragment(string, string); };