X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getrabundcommand.h;h=fd7a6b07fecf135262e310598a3936221cb98826;hp=66a3211296edc7f2105af0ba2bfc10f85b7ae109;hb=615301e57c25e241356a9c2380648d117709458d;hpb=0024441c1ff9a98467ba53cc7420a37c98f32e86 diff --git a/getrabundcommand.h b/getrabundcommand.h index 66a3211..fd7a6b0 100644 --- a/getrabundcommand.h +++ b/getrabundcommand.h @@ -13,25 +13,41 @@ #include "command.hpp" #include "inputdata.h" -#include "readotu.h" #include "listvector.hpp" -class GlobalData; class GetRAbundCommand : public Command { public: + GetRAbundCommand(string); GetRAbundCommand(); - ~GetRAbundCommand(); - int execute(); + ~GetRAbundCommand(){} + + vector setParameters(); + string getCommandName() { return "get.rabund"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "http://www.mothur.org/wiki/Get.rabund"; } + string getDescription() { return "creates a rabund file"; } + + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; - string filename; + + string filename, listfile, sabundfile, inputfile, format, outputDir, countfile; ofstream out; - ReadOTUFile* read; - InputData* input; - ListVector* list; - RAbundVector* rabund; + vector outputNames; + + bool abort, allLines, sorted; + set labels; //holds labels to be used + string label; + + int processList(ofstream& out); + int createRabund(CountTable& ct, ListVector*& list, RAbundVector*& rabund); }; #endif