X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=phylodiversitycommand.h;fp=phylodiversitycommand.h;h=df04b35d66f1c0dc36893074f6c840711395c49b;hb=ca9ac1d80c62f57270b0dcd49410ebe08a8aecd6;hp=f5e205c4e40ce010239c0cc8beba6798e1a17aa4;hpb=36a867cbd85d9c276d3c8d13f25a150bbbe2466b;p=mothur.git diff --git a/phylodiversitycommand.h b/phylodiversitycommand.h index f5e205c..df04b35 100644 --- a/phylodiversitycommand.h +++ b/phylodiversitycommand.h @@ -12,31 +12,35 @@ #include "command.hpp" #include "treemap.h" -#include "globaldata.hpp" +#include "readtree.h" +#include "sharedutilities.h" + class PhyloDiversityCommand : public Command { public: PhyloDiversityCommand(string); PhyloDiversityCommand(); - ~PhyloDiversityCommand(); - vector getRequiredParameters(); - vector getValidParameters(); - vector getRequiredFiles(); - map > getOutputFiles() { return outputTypes; } - int execute(); - void help(); + ~PhyloDiversityCommand(){} - private: - GlobalData* globaldata; - + vector setParameters(); + string getCommandName() { return "phylo.diversity"; } + string getCommandCategory() { return "Hypothesis Testing"; } + string getHelpString(); + + int execute(); + void help() { m->mothurOut(getHelpString()); } +private: + ReadTree* read; + TreeMap* tmap; float freq; - int iters, processors; + int iters, processors, numUniquesInName; bool abort, rarefy, summary, collect, scale; - string groups, outputDir; + string groups, outputDir, treefile, groupfile, namefile; vector Groups, outputNames; //holds groups to be used, and outputFile names - map > outputTypes; + map nameMap; + int readNamesFile(); void printData(set&, map< string, vector >&, ofstream&, int); void printSumData(map< string, vector >&, ofstream&, int); vector calcBranchLength(Tree*, int, map< string, set >&);