X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=rarefactcommand.h;h=02fe6e3aa4355a107e76f06d8f8f9a7f0df19118;hp=3213af4d6b8ea66fd9c50bbfa7ce0d7efcf85327;hb=b206f634aae1b4ce13978d203247fb64757d5482;hpb=92f998cc7debc4bf3e8594848586b8153d96db16 diff --git a/rarefactcommand.h b/rarefactcommand.h index 3213af4..02fe6e3 100644 --- a/rarefactcommand.h +++ b/rarefactcommand.h @@ -14,40 +14,46 @@ #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 getOutputPattern(string); + 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 parseSharedFile(string, map >&); + vector createGroupFile(vector&, map); }; #endif