#include "command.hpp"
#include "readtree.h"
#include "treemap.h"
-#include "globaldata.hpp"
#include "sharedrabundvector.h"
#include "sharedrabundfloatvector.h"
#include "inputdata.h"
public:
IndicatorCommand(string);
IndicatorCommand();
- ~IndicatorCommand();
- vector<string> getRequiredParameters();
- vector<string> getValidParameters();
- vector<string> getRequiredFiles();
- map<string, vector<string> > getOutputFiles() { return outputTypes; }
+ ~IndicatorCommand(){}
+
+ vector<string> setParameters();
+ string getCommandName() { return "indicator"; }
+ string getCommandCategory() { return "Hypothesis Testing"; }
+ string getHelpString();
+
int execute();
- void help();
+ void help() { m->mothurOut(getHelpString()); }
private:
- GlobalData* globaldata;
ReadTree* read;
TreeMap* treeMap;
- string treefile, sharedfile, relabundfile, groups, label, inputFileName, outputDir;
- bool abort, pickedGroups;
+ GroupMap* designMap;
+ string treefile, sharedfile, relabundfile, groups, label, inputFileName, outputDir, designfile;
+ bool abort;
vector<string> outputNames, Groups;
- map<string, vector<string> > outputTypes;
vector<SharedRAbundVector*> lookup;
vector<SharedRAbundFloatVector*> lookupFloat;
set<string> getDescendantList(Tree*&, int, map<int, set<string> >, map<int, set<int> >&);
vector<float> getValues(vector< vector<SharedRAbundVector*> >&);
vector<float> getValues(vector< vector<SharedRAbundFloatVector*> >&);
- map<int, float> getLengthToLeaf(Tree*&);
+ map<int, float> getDistToRoot(Tree*&);
};