X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classify.h;fp=classify.h;h=03142353feb8af7b8488007e5367144602a45acf;hb=7b3c9ca940891c1b20b3b7ec13e05d7e7b316b63;hp=2926800284ce00cbb7ceb2768bfbe35f28a44a80;hpb=63e089e0b3aad1741bab60119ed7ccc784dce347;p=mothur.git diff --git a/classify.h b/classify.h index 2926800..0314235 100644 --- a/classify.h +++ b/classify.h @@ -15,33 +15,41 @@ #include "mothur.h" #include "database.hpp" - +#include "doTaxonomy.h" class Sequence; + /**************************************************************************************************/ class Classify { public: Classify(string, string, string, int, int, int, int, int); - Classify(){}; + Classify(){ delete phyloTree; } virtual ~Classify(){}; virtual string getTaxonomy(Sequence*) = 0; + //virtual map getConfidenceScores() { return taxConfidenceScore; } + //virtual vector parseTax(string); + virtual string getSimpleTax() { return simpleTax; } protected: map taxonomy; //name maps to taxonomy + //map genusCount; //maps genus to count - in essence a list of how many seqs are in each taxonomy + map::iterator itTax; map::iterator it; Database* database; + PhyloTree* phyloTree; - string taxFile, templateFile; + string taxFile, templateFile, simpleTax; vector names; + //map taxConfidenceScore; void readTaxonomy(string); - + vector parseTax(string); }; /**************************************************************************************************/