X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=metastatscommand.h;h=88e32acc0426a15525b1278bd5fc6d9c4d6392fc;hb=8dd3c225255d7084e3aff8740aa4f1f1cabb367a;hp=8c633b5417cbe07dc96827cf80c8e0b5522c0fad;hpb=37eac2026d91179acda0494c4dcca22f176551b9;p=mothur.git diff --git a/metastatscommand.h b/metastatscommand.h index 8c633b5..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,16 +39,13 @@ 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;