X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=normalizesharedcommand.h;h=53bcd6b5e4aac7d0a463fa436fc8ed6346f5f069;hp=fcfc727b23ba0e4aae0fc1d1406c6799fde81689;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=b20d7d9b1b0eeeaedb78d8fdf26833fd212d2e81 diff --git a/normalizesharedcommand.h b/normalizesharedcommand.h index fcfc727..53bcd6b 100644 --- a/normalizesharedcommand.h +++ b/normalizesharedcommand.h @@ -12,33 +12,44 @@ #include "command.hpp" #include "inputdata.h" -#include "readotu.h" #include "sharedrabundvector.h" -class GlobalData; - class NormalizeSharedCommand : public Command { public: NormalizeSharedCommand(string); - ~NormalizeSharedCommand(); - int execute(); - void help(); + NormalizeSharedCommand(); + ~NormalizeSharedCommand() {} + + vector setParameters(); + string getCommandName() { return "normalize.shared"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "http://www.mothur.org/wiki/Normalize.shared"; } + string getDescription() { return "normalize samples in a shared or relabund file"; } + + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; - ReadOTUFile* read; InputData* input; vector lookup; + vector lookupFloat; - bool abort, allLines, pickedGroups; + bool abort, allLines, pickedGroups, makeRelabund; set labels; //holds labels to be used - string groups, label, outputDir, method; + string groups, label, outputDir, method, sharedfile, relabundfile, format, inputfile; int norm; - vector Groups; - - int normalize(vector&, ofstream&); - int eliminateZeroOTUS(vector& thislookup); + vector Groups, outputNames; + + int normalize(vector&); + int normalize(vector&); + int eliminateZeroOTUS(vector&); + int eliminateZeroOTUS(vector&); };