X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classify.h;h=e92569d6f27defcf14b0e6d2527bf9d743bd0988;hb=fca3f55d5ded10c3dc77856f3cc4a1c53b02bb6f;hp=03142353feb8af7b8488007e5367144602a45acf;hpb=7b3c9ca940891c1b20b3b7ec13e05d7e7b316b63;p=mothur.git diff --git a/classify.h b/classify.h index 0314235..e92569d 100644 --- a/classify.h +++ b/classify.h @@ -11,11 +11,11 @@ */ -/* This class is a parent to phylotyp, bayesian, knn. */ +/* This class is a parent to bayesian, knn. */ #include "mothur.h" #include "database.hpp" -#include "doTaxonomy.h" +#include "phylotree.h" class Sequence; @@ -26,14 +26,12 @@ class Sequence; class Classify { public: - Classify(string, string, string, int, int, int, int, int); - Classify(){ delete phyloTree; } - + Classify(); virtual ~Classify(){}; virtual string getTaxonomy(Sequence*) = 0; - //virtual map getConfidenceScores() { return taxConfidenceScore; } - //virtual vector parseTax(string); virtual string getSimpleTax() { return simpleTax; } + virtual void generateDatabaseAndNames(string, string, string, int, float, float, float, float); + virtual void setDistName(string s) {} //for knn, so if distance method is selected with knn you can create the smallest distance file in the right place. protected: @@ -46,10 +44,11 @@ protected: string taxFile, templateFile, simpleTax; vector names; - //map taxConfidenceScore; - void readTaxonomy(string); + int readTaxonomy(string); vector parseTax(string); + MothurOut* m; + }; /**************************************************************************************************/