X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=corraxescommand.h;h=a91a24019c46b1b8d7346fd87e5a45ea957242a9;hb=3914b0d6480f67df53b1e838f51c4e6155710434;hp=8547b0fa1978a6d5477b9d393d0846455a3ad00a;hpb=37eac2026d91179acda0494c4dcca22f176551b9;p=mothur.git diff --git a/corraxescommand.h b/corraxescommand.h index 8547b0f..a91a240 100644 --- a/corraxescommand.h +++ b/corraxescommand.h @@ -14,38 +14,32 @@ #include "sharedrabundfloatvector.h" #include "inputdata.h" -/***************************************************************/ -struct spearmanRank { - string name; - float score; - - spearmanRank(string n, float s) : name(n), score(s) {} -}; -/***************************************************************/ class CorrAxesCommand : public Command { public: CorrAxesCommand(string); CorrAxesCommand(); - ~CorrAxesCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~CorrAxesCommand(){} -private: + vector setParameters(); + string getCommandName() { return "corr.axes"; } + string getCommandCategory() { return "Hypothesis Testing"; } + string getHelpString(); + string getOutputPattern(string); + string getCitation() { return "McCune B, Grace JB, Urban DL (2002). Analysis of ecological communities. MjM Software Design: Gleneden Beach, OR. \nLegendre P, Legendre L (1998). Numerical Ecology. Elsevier: New York. \nhttp://www.mothur.org/wiki/Corr.axes"; } + string getDescription() { return "calculate the correlation coefficient for each column in a shared/relabund file to the axes displayed in a pcoa file"; } - GlobalData* globaldata; + int execute(); + void help() { m->mothurOut(getHelpString()); } +private: + string axesfile, sharedfile, relabundfile, metadatafile, groups, label, inputFileName, outputDir, method; bool abort, pickedGroups; int numaxes; set names; vector outputNames, Groups; - map > outputTypes; vector lookupFloat; vector metadataLabels;