X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=corraxescommand.h;h=2aa7ae0d345cff024b7485ad856013f88895edd9;hb=e0ce7cbc93d7d2fbb753ca694182db092a0ea0e7;hp=8547b0fa1978a6d5477b9d393d0846455a3ad00a;hpb=37eac2026d91179acda0494c4dcca22f176551b9;p=mothur.git diff --git a/corraxescommand.h b/corraxescommand.h index 8547b0f..2aa7ae0 100644 --- a/corraxescommand.h +++ b/corraxescommand.h @@ -14,38 +14,30 @@ #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(); - -private: + ~CorrAxesCommand(){} + vector setParameters(); + string getCommandName() { return "corr.axes"; } + string getCommandCategory() { return "Hypothesis Testing"; } + string getHelpString(); + 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;