X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarefactcommand.h;h=72d24151193076eea753f5b17d97e135da7d42d0;hb=8dd3c225255d7084e3aff8740aa4f1f1cabb367a;hp=3213af4d6b8ea66fd9c50bbfa7ce0d7efcf85327;hpb=92f998cc7debc4bf3e8594848586b8153d96db16;p=mothur.git diff --git a/rarefactcommand.h b/rarefactcommand.h index 3213af4..72d2415 100644 --- a/rarefactcommand.h +++ b/rarefactcommand.h @@ -14,40 +14,44 @@ #include "inputdata.h" #include "rarefact.h" #include "display.h" -#include "readotu.h" #include "validcalculator.h" - -class GlobalData; - class RareFactCommand : public Command { public: - RareFactCommand(string); - ~RareFactCommand(); - int execute(); - void help(); + RareFactCommand(string); + RareFactCommand(); + ~RareFactCommand(){} + + vector setParameters(); + string getCommandName() { return "rarefaction.single"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + string getHelpString(); + string getCitation() { return "Magurran AE (2004). Measuring biological diversity. Blackwell Pub.: Malden, Ma. \nhttp://www.mothur.org/wiki/Rarefaction.single"; } + string getDescription() { return "generate intra-sample rarefaction curves using a re-sampling without replacement approach"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - GlobalData* globaldata; + vector rDisplays; - ReadOTUFile* read; OrderVector* order; InputData* input; - ValidCalculators* validCalculator; Rarefact* rCurve; - int freq, nIters, abund; - - bool abort, allLines; + int nIters, abund, processors; + float freq; + + bool abort, allLines, groupMode; set labels; //holds labels to be used - string label, calc; + string label, calc, sharedfile, listfile, rabundfile, sabundfile, format, inputfile; vector Estimators; - vector inputFileNames; + vector inputFileNames, outputNames; vector groups; + string outputDir; vector parseSharedFile(string); - - + vector createGroupFile(vector&, map); }; #endif