X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=subsamplecommand.h;h=db4001a5c07337d51ea96aedfa9d3f20458b6685;hp=5656dab49e7ac7d58665369e58c1950c17b93542;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=e150b0b0664caec517485ee6d69dcdade6dcae77 diff --git a/subsamplecommand.h b/subsamplecommand.h index 5656dab..db4001a 100644 --- a/subsamplecommand.h +++ b/subsamplecommand.h @@ -16,6 +16,7 @@ #include "rabundvector.hpp" #include "inputdata.h" #include "sequence.hpp" +#include "counttable.h" class SubSampleCommand : public Command { @@ -27,35 +28,39 @@ public: vector setParameters(); string getCommandName() { return "sub.sample"; } - string getCommandCategory() { return "General"; } + string getCommandCategory() { return "Sequence Processing"; } + string getHelpString(); + string getOutputPattern(string); string getCitation() { return "http://www.mothur.org/wiki/Sub.sample"; } - + string getDescription() { return "get a sampling of sequences from a list, shared, rabund, sabund or fasta file"; } + int execute(); void help() { m->mothurOut(getHelpString()); } private: bool abort, pickedGroups, allLines, persample; - string listfile, groupfile, sharedfile, rabundfile, sabundfile, fastafile, namefile; + string listfile, groupfile, countfile, sharedfile, rabundfile, sabundfile, fastafile, namefile, taxonomyfile; set labels; //holds labels to be used string groups, label, outputDir; vector Groups, outputNames; int size; vector names; map > nameMap; + CountTable ct; - int eliminateZeroOTUS(vector&); int getSubSampleShared(); int getSubSampleList(); int getSubSampleRabund(); int getSubSampleSabund(); int getSubSampleFasta(); - int processShared(vector&, ofstream&); + int processShared(vector&); int processRabund(RAbundVector*&, ofstream&); int processSabund(SAbundVector*&, ofstream&); - int processList(ListVector*&, ofstream&, set&); + int processList(ListVector*&, set&); int getNames(); int readNames(); + int getTax(set&); };