X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=getrelabundcommand.h;h=dcb4cf71e43a919bc6fce2588b8d7e8e7c2864dd;hp=9725a31ab546f0829ec4ca0bf370e6792fdfeadf;hb=615301e57c25e241356a9c2380648d117709458d;hpb=762b3e4c83e1e8e8392c1199b6482d36ee89e50f diff --git a/getrelabundcommand.h b/getrelabundcommand.h index 9725a31..dcb4cf7 100644 --- a/getrelabundcommand.h +++ b/getrelabundcommand.h @@ -12,32 +12,39 @@ #include "command.hpp" #include "inputdata.h" -#include "readotu.h" #include "sharedrabundvector.h" -class GlobalData; class GetRelAbundCommand : public Command { public: GetRelAbundCommand(string); - ~GetRelAbundCommand(); - int execute(); - void help(); + GetRelAbundCommand(); + ~GetRelAbundCommand(){} + + vector setParameters(); + string getCommandName() { return "get.relabund"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "http://www.mothur.org/wiki/Get.relabund"; } + string getDescription() { return "calculates the relative abundance of each OTU in a sample"; } + + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - GlobalData* globaldata; - ReadOTUFile* read; InputData* input; vector lookup; bool abort, allLines, pickedGroups; set labels; //holds labels to be used - string groups, label, outputDir, scale; - vector Groups; + string groups, label, outputDir, scale, sharedfile; + vector Groups, outputNames; int getRelAbundance(vector&, ofstream&); - int eliminateZeroOTUS(vector& thislookup); };