X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=corraxescommand.h;h=a91a24019c46b1b8d7346fd87e5a45ea957242a9;hp=01c8d2bacd223d7c742a28a78fcfa65f91827192;hb=cf9987b67aa49777a4c91c2d21f96e58bf17aa82;hpb=1f7448f6ec056b30ed146a5f779dfd6029788316 diff --git a/corraxescommand.h b/corraxescommand.h index 01c8d2b..a91a240 100644 --- a/corraxescommand.h +++ b/corraxescommand.h @@ -11,41 +11,45 @@ */ #include "command.hpp" -#include "sharedrabundvector.h" #include "sharedrabundfloatvector.h" #include "inputdata.h" + class CorrAxesCommand : public Command { public: CorrAxesCommand(string); CorrAxesCommand(); - ~CorrAxesCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~CorrAxesCommand(){} + + 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"; } + + int execute(); + void help() { m->mothurOut(getHelpString()); } private: - GlobalData* globaldata; + string axesfile, sharedfile, relabundfile, metadatafile, groups, label, inputFileName, outputDir, method; bool abort, pickedGroups; int numaxes; set names; vector outputNames, Groups; - map > outputTypes; - vector lookup; vector lookupFloat; + vector metadataLabels; - int getShared(); - int getSharedFloat(); - int convertToRelabund(); + int getSharedFloat(InputData*); + int getMetadata(); int eliminateZeroOTUS(vector&); map > readAxes(); int calcPearson(map >&, ofstream&); int calcSpearman(map >&, ofstream&); + int calcKendall(map >&, ofstream&); };