X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=subsamplecommand.h;h=c746e144119dc4d4c0d45ef10872b1f7c9951129;hb=01f8d2c7d982a6209211f5abbcf2a086fdf60d0a;hp=b70050653fd5ded5a9b25b555efea08ae79b9565;hpb=3a13eff5c26d6fc156a299c9fa7f5497bded94a0;p=mothur.git diff --git a/subsamplecommand.h b/subsamplecommand.h index b700506..c746e14 100644 --- a/subsamplecommand.h +++ b/subsamplecommand.h @@ -11,11 +11,11 @@ */ #include "command.hpp" -#include "globaldata.hpp" #include "sharedrabundvector.h" #include "listvector.hpp" #include "rabundvector.hpp" #include "inputdata.h" +#include "sequence.hpp" class SubSampleCommand : public Command { @@ -23,34 +23,35 @@ class SubSampleCommand : public Command { public: SubSampleCommand(string); SubSampleCommand(); - ~SubSampleCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~SubSampleCommand() {} -private: - GlobalData* globaldata; + vector setParameters(); + string getCommandName() { return "sub.sample"; } + string getCommandCategory() { return "General"; } + string getOutputFileNameTag(string, string); + string getHelpString(); + 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()); } - bool abort, pickedGroups, allLines; +private: + bool abort, pickedGroups, allLines, persample; string listfile, groupfile, sharedfile, rabundfile, sabundfile, fastafile, namefile; set labels; //holds labels to be used string groups, label, outputDir; vector Groups, outputNames; - map > outputTypes; int size; vector names; map > nameMap; - 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&);