X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=classifytreecommand.h;h=ef180babdf12e2a3640ea6157d64b91fe4cc9268;hp=026e4bae414d227dab7750d623999b86d4aa4a73;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=a78fa674631a7d8a8d4e5043384ee244ed65cc09 diff --git a/classifytreecommand.h b/classifytreecommand.h index 026e4ba..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,7 +23,9 @@ 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 consensus taxonomy for the descendant of each tree node"; } @@ -30,21 +33,18 @@ public: 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(); };