X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=metastatscommand.h;h=88e32acc0426a15525b1278bd5fc6d9c4d6392fc;hb=2bb9267aa4b4ecdf8488b06605cc9f3f36fa4332;hp=a38f3a7951c9629b680b4799c4a9ea00ea8d0270;hpb=8bc3e5b38c2317a1715f53be22fa96455868c281;p=mothur.git diff --git a/metastatscommand.h b/metastatscommand.h index a38f3a7..88e32ac 100644 --- a/metastatscommand.h +++ b/metastatscommand.h @@ -12,23 +12,24 @@ #include "command.hpp" #include "inputdata.h" -#include "readotu.h" #include "sharedrabundvector.h" -class GlobalData; - class MetaStatsCommand : public Command { public: MetaStatsCommand(string); MetaStatsCommand(); - ~MetaStatsCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~MetaStatsCommand() {} + + vector setParameters(); + string getCommandName() { return "metastats"; } + string getCommandCategory() { return "OTU-Based Approaches"; } + string getHelpString(); + string getCitation() { return "White JR, Nagarajan N, Pop M (2009). Statistical methods for detecting differentially abundant features in clinical metagenomic samples. PLoS Comput Biol 5: e1000352. \nhttp://www.mothur.org/wiki/Metastats"; } + string getDescription() { return "detects differentially abundant features in clinical metagenomic samples"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: struct linePair { @@ -38,23 +39,19 @@ private: }; vector lines; - GlobalData* globaldata; GroupMap* designMap; - ReadOTUFile* read; InputData* input; vector lookup; - map > outputTypes; - + bool abort, allLines, pickedGroups; set labels; //holds labels to be used - string groups, label, outputDir, inputDir, designfile, sets; + string groups, label, outputDir, inputDir, designfile, sets, sharedfile; vector Groups, outputNames, Sets; vector< vector > namesOfGroupCombos; int iters, processors; float threshold; int process(vector&); - int eliminateZeroOTUS(vector&); int driver(int, int, vector&); };