X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getrabundcommand.h;h=fd7a6b07fecf135262e310598a3936221cb98826;hp=92e8475d154db06761e52ada6d72120bb586ce16;hb=d1c97b8c04bb75faca1e76ffad60b37a4d789d3d;hpb=348a7bac1d3c5d17ae0e4a93b78f69f4e200a190 diff --git a/getrabundcommand.h b/getrabundcommand.h index 92e8475..fd7a6b0 100644 --- a/getrabundcommand.h +++ b/getrabundcommand.h @@ -13,33 +13,41 @@ #include "command.hpp" #include "inputdata.h" -#include "readotu.h" #include "listvector.hpp" -class GlobalData; class GetRAbundCommand : public Command { public: GetRAbundCommand(string); - ~GetRAbundCommand(); - int execute(); - void help(); + GetRAbundCommand(); + ~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 lines; //hold lines to be used set labels; //holds labels to be used - string line, label; + string label; - + int processList(ofstream& out); + int createRabund(CountTable& ct, ListVector*& list, RAbundVector*& rabund); }; #endif