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 "sharedrabundvector.h"
17 #include "sharedrabundfloatvector.h"
18 #include "inputdata.h"
20 class IndicatorCommand : public Command {
22 IndicatorCommand(string);
26 vector<string> setParameters();
27 string getCommandName() { return "indicator"; }
28 string getCommandCategory() { return "Hypothesis Testing"; }
29 string getHelpString();
30 string getCitation() { return "Dufrene M, Legendre P (1997). Species assemblages and indicator species: The need for a flexible asymmetrical approach. Ecol Monogr 67: 345-66.\n 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/Indicator"; }
33 void help() { m->mothurOut(getHelpString()); }
39 string treefile, sharedfile, relabundfile, groups, label, inputFileName, outputDir, designfile;
41 vector<string> outputNames, Groups;
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*&);