X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=subsamplecommand.h;h=7b251eee11c2fa7ad5be7baa6cea4427c90265c7;hb=3914b0d6480f67df53b1e838f51c4e6155710434;hp=4be357059793f3c06d574ac227b4cc8049383479;hpb=1bf53bca7e26bf091588bc8ca6e68cbfae1df6fe;p=mothur.git diff --git a/subsamplecommand.h b/subsamplecommand.h index 4be3570..7b251ee 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,8 +28,10 @@ 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"; } @@ -37,15 +40,15 @@ public: 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(); @@ -57,6 +60,7 @@ private: int processList(ListVector*&, ofstream&, set&); int getNames(); int readNames(); + int getTax(set&); };