1 #ifndef CORRAXESCOMMAND_H
2 #define CORRAXESCOMMAND_H
8 * Created by westcott on 12/22/10.
9 * Copyright 2010 Schloss Lab. All rights reserved.
13 #include "command.hpp"
14 #include "sharedrabundfloatvector.h"
15 #include "inputdata.h"
18 class CorrAxesCommand : public Command {
20 CorrAxesCommand(string);
24 vector<string> setParameters();
25 string getCommandName() { return "corr.axes"; }
26 string getCommandCategory() { return "Hypothesis Testing"; }
28 string getHelpString();
29 string getOutputPattern(string);
30 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"; }
31 string getDescription() { return "calculate the correlation coefficient for each column in a shared/relabund file to the axes displayed in a pcoa file"; }
34 void help() { m->mothurOut(getHelpString()); }
37 string axesfile, sharedfile, relabundfile, metadatafile, groups, label, inputFileName, outputDir, method;
38 bool abort, pickedGroups;
42 vector<string> outputNames, Groups;
43 vector<SharedRAbundFloatVector*> lookupFloat;
44 vector<string> metadataLabels;
46 int getSharedFloat(InputData*);
48 int eliminateZeroOTUS(vector<SharedRAbundFloatVector*>&);
49 map<string, vector<float> > readAxes();
50 int calcPearson(map<string, vector<float> >&, ofstream&);
51 int calcSpearman(map<string, vector<float> >&, ofstream&);
52 int calcKendall(map<string, vector<float> >&, ofstream&);