X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=corraxescommand.h;h=a91a24019c46b1b8d7346fd87e5a45ea957242a9;hp=e02c52a002b338f4f8d255b2daccbc571d16651b;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=f3b2f0a234250617602432d9ca8d949bc126f480 diff --git a/corraxescommand.h b/corraxescommand.h index e02c52a..a91a240 100644 --- a/corraxescommand.h +++ b/corraxescommand.h @@ -11,50 +11,40 @@ */ #include "command.hpp" -#include "sharedrabundvector.h" #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 lookup; vector lookupFloat; vector metadataLabels; - int getShared(); - int getSharedFloat(); + int getSharedFloat(InputData*); int getMetadata(); - int convertToRelabund(); int eliminateZeroOTUS(vector&); map > readAxes(); int calcPearson(map >&, ofstream&);