1 #ifndef INDICATORCOMMAND_H
2 #define INDICATORCOMMAND_H
8 * Created by westcott on 11/12/10.
9 * Copyright 2010 Schloss Lab. All rights reserved.
13 #include "command.hpp"
16 #include "globaldata.hpp"
17 #include "sharedrabundvector.h"
18 #include "sharedrabundfloatvector.h"
19 #include "inputdata.h"
21 class IndicatorCommand : public Command {
23 IndicatorCommand(string);
26 vector<string> getRequiredParameters();
27 vector<string> getValidParameters();
28 vector<string> getRequiredFiles();
29 map<string, vector<string> > getOutputFiles() { return outputTypes; }
34 GlobalData* globaldata;
38 string treefile, sharedfile, relabundfile, groups, label, inputFileName, outputDir, designfile;
40 vector<string> outputNames, Groups;
41 map<string, vector<string> > outputTypes;
42 vector<SharedRAbundVector*> lookup;
43 vector<SharedRAbundFloatVector*> lookupFloat;
47 int GetIndicatorSpecies(Tree*&);
48 set<string> getDescendantList(Tree*&, int, map<int, set<string> >, map<int, set<int> >&);
49 vector<float> getValues(vector< vector<SharedRAbundVector*> >&);
50 vector<float> getValues(vector< vector<SharedRAbundFloatVector*> >&);
51 map<int, float> getDistToRoot(Tree*&);