X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=subsamplecommand.h;h=d1fb1226236dc3842b9ace53536cf95a266f1d5e;hb=16f9c4ab6f39769856b13e048eae2c8eaa413c02;hp=6716903105f2fc25d018b77d977d6fa57875a148;hpb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;p=mothur.git diff --git a/subsamplecommand.h b/subsamplecommand.h index 6716903..d1fb122 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 { @@ -28,28 +29,31 @@ public: 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()); } private: bool abort, pickedGroups, allLines, persample; - string listfile, groupfile, sharedfile, rabundfile, sabundfile, fastafile, namefile; + string listfile, groupfile, countfile, sharedfile, rabundfile, sabundfile, fastafile, namefile; 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&);