X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarefactcommand.h;h=72d24151193076eea753f5b17d97e135da7d42d0;hb=2bb9267aa4b4ecdf8488b06605cc9f3f36fa4332;hp=f4492a2ec15e97a9cf52295202306689e2820961;hpb=5a86e9e5a5a9e061e17b3ae64fb8881f14e53b8a;p=mothur.git diff --git a/rarefactcommand.h b/rarefactcommand.h index f4492a2..72d2415 100644 --- a/rarefactcommand.h +++ b/rarefactcommand.h @@ -14,42 +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 nIters, abund; + int nIters, abund, processors; float freq; - bool abort, allLines; + 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