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);
23 vector<string> getRequiredParameters();
24 vector<string> getValidParameters();
25 vector<string> getRequiredFiles();
26 map<string, vector<string> > getOutputFiles() { return outputTypes; }
33 GlobalData* globaldata;
34 string axesfile, sharedfile, relabundfile, metadatafile, groups, label, inputFileName, outputDir, method;
35 bool abort, pickedGroups;
39 vector<string> outputNames, Groups;
40 map<string, vector<string> > outputTypes;
41 vector<SharedRAbundFloatVector*> lookupFloat;
42 vector<string> metadataLabels;
44 int getSharedFloat(InputData*);
46 int eliminateZeroOTUS(vector<SharedRAbundFloatVector*>&);
47 map<string, vector<float> > readAxes();
48 int calcPearson(map<string, vector<float> >&, ofstream&);
49 int calcSpearman(map<string, vector<float> >&, ofstream&);
50 int calcKendall(map<string, vector<float> >&, ofstream&);