X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=clusterfragmentscommand.h;h=e3d861a8a1477c0edf71ae7208c86560ceb56860;hb=6c2b1e530a5c0bb87040e58a3e410097acdfcc3d;hp=9bdbc4479f19bd7e1aa8297ed4e1f278e0de912f;hpb=61798fe609675abfedf511e542cc48c56a531199;p=mothur.git diff --git a/clusterfragmentscommand.h b/clusterfragmentscommand.h index 9bdbc44..e3d861a 100644 --- a/clusterfragmentscommand.h +++ b/clusterfragmentscommand.h @@ -13,6 +13,7 @@ #include "command.hpp" #include "sequence.hpp" +#include "counttable.h" /************************************************************/ struct seqRNode { @@ -31,21 +32,35 @@ 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: + CountTable ct; bool abort; - string fastafile, namefile, outputDir; + string fastafile, namefile, countfile, 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); };