X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clusterfragmentscommand.h;h=c322529f3bedf95600a8b30e0ac013be2870d290;hb=28bcfc4a41b8b82f66636587e0d4d355d07cbdd1;hp=9bdbc4479f19bd7e1aa8297ed4e1f278e0de912f;hpb=61798fe609675abfedf511e542cc48c56a531199;p=mothur.git diff --git a/clusterfragmentscommand.h b/clusterfragmentscommand.h index 9bdbc44..c322529 100644 --- a/clusterfragmentscommand.h +++ b/clusterfragmentscommand.h @@ -31,21 +31,34 @@ class ClusterFragmentsCommand : public Command { public: ClusterFragmentsCommand(string); - ~ClusterFragmentsCommand(); - int execute(); - void help(); + ClusterFragmentsCommand(); + ~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; int readFASTA(); void readNameFile(); void printData(string, string); //fasta filename, names file name + bool isFragment(string, string); };