X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=classifytreecommand.h;h=ef180babdf12e2a3640ea6157d64b91fe4cc9268;hp=bd0e1ce4f084ccefae3fd8c088322dca1dc214b5;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=d6c0a11d1cecfac18b323285e7ffadb7f58e848f diff --git a/classifytreecommand.h b/classifytreecommand.h index bd0e1ce..ef180ba 100644 --- a/classifytreecommand.h +++ b/classifytreecommand.h @@ -12,6 +12,7 @@ #include "command.hpp" #include "readtree.h" #include "treemap.h" +#include "counttable.h" class ClassifyTreeCommand : public Command { public: @@ -22,29 +23,28 @@ public: vector setParameters(); string getCommandName() { return "classify.tree"; } string getCommandCategory() { return "Phylotype Analysis"; } + string getHelpString(); + string getOutputPattern(string); string getCitation() { return "http://www.mothur.org/wiki/Classify.tree"; } - string getDescription() { return "Find the concensus taxonomy for the descendant of each tree node"; } + string getDescription() { return "Find the consensus taxonomy for the descendant of each tree node"; } int execute(); void help() { m->mothurOut(getHelpString()); } private: - ReadTree* read; - TreeMap* tmap; - string treefile, taxonomyfile, groupfile, namefile, outputDir; + string treefile, taxonomyfile, groupfile, namefile, countfile, outputDir; bool abort; vector outputNames; int numUniquesInName, cutoff; map nameMap; map nameCount; map taxMap; + CountTable* ct; int getClassifications(Tree*&); map > getDescendantList(Tree*&, int, map > >); string getTaxonomy(set, int&); - int readNamesFile(); - int readTaxonomyFile(); };