8 * Created by westcott on 11/3/09.
9 * Copyright 2009 Schloss Lab. All rights reserved.
14 /* This class is a parent to bayesian, knn. */
17 #include "database.hpp"
18 #include "phylotree.h"
24 /**************************************************************************************************/
31 virtual ~Classify(){ delete phyloTree; if (database != NULL) { delete database; } };
32 virtual string getTaxonomy(Sequence*) = 0;
33 //virtual map<string, int> getConfidenceScores() { return taxConfidenceScore; }
34 //virtual vector<string> parseTax(string);
35 virtual string getSimpleTax() { return simpleTax; }
36 virtual void generateDatabaseAndNames(string, string, string, int, float, float, float, float);
40 map<string, string> taxonomy; //name maps to taxonomy
41 //map<string, int> genusCount; //maps genus to count - in essence a list of how many seqs are in each taxonomy
42 map<string, int>::iterator itTax;
43 map<string, string>::iterator it;
47 string taxFile, templateFile, simpleTax;
50 int readTaxonomy(string);
51 vector<string> parseTax(string);
56 /**************************************************************************************************/