X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=rarefactsharedcommand.h;h=4f08d00d7332ae32824464b809744042bd997d7f;hb=a0f1fca79d2ddfa7ad36b4485039c68b5704fe8d;hp=a141988e51c90989515a5ec868319a94015a6e2d;hpb=f37a59b81c339f574d97042ff6e364146feb457a;p=mothur.git diff --git a/rarefactsharedcommand.h b/rarefactsharedcommand.h index a141988..4f08d00 100644 --- a/rarefactsharedcommand.h +++ b/rarefactsharedcommand.h @@ -13,35 +13,44 @@ #include "inputdata.h" #include "rarefact.h" #include "display.h" -#include "readotu.h" #include "validcalculator.h" -class GlobalData; - class RareFactSharedCommand : public Command { public: - RareFactSharedCommand(string); - ~RareFactSharedCommand(); - int execute(); - void help(); + RareFactSharedCommand(string); + RareFactSharedCommand(); + ~RareFactSharedCommand() {} + + vector setParameters(); + string getCommandName() { return "rarefaction.shared"; } + 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.shared"; } + string getDescription() { return "generate inter-sample rarefaction curves using a re-sampling without replacement approach"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } + private: - GlobalData* globaldata; - ReadOTUFile* read; + vector lookup; - InputData* input; - ValidCalculators* validCalculator; - Rarefact* rCurve; - vector rDisplays; - int freq, nIters; + int nIters, subsampleSize, iters; string format; - - bool abort, allLines, jumble; + float freq; + + map file2Group; //index in outputNames[i] -> group + bool abort, allLines, jumble, groupMode, subsample; set labels; //holds labels to be used - string label, calc, groups; - vector Estimators, Groups; - + string label, calc, groups, outputDir, sharedfile, designfile; + vector Estimators, Groups, outputNames, Sets; + + int process(GroupMap&, string); + vector createGroupFile(vector&); + int subsampleLookup(vector&, string); };