X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=classify.h;h=7b4c1022fef35aacbc33824d99ede551e55b187c;hp=1a34362ce798072d8554bb22a997b11dc16d223b;hb=1a20e24ee786195ab0e1cccd4f5aede7a88f3f4e;hpb=74844a60d80c6dd06e3fb02ee9b928424f9019b0 diff --git a/classify.h b/classify.h index 1a34362..7b4c102 100644 --- a/classify.h +++ b/classify.h @@ -17,27 +17,24 @@ #include "database.hpp" #include "phylotree.h" - class Sequence; - /**************************************************************************************************/ class Classify { public: - Classify(string, string, string, int, float, float, float, float); - - virtual ~Classify(){ delete phyloTree; delete database; }; + Classify(); + virtual ~Classify(){}; virtual string getTaxonomy(Sequence*) = 0; - //virtual map getConfidenceScores() { return taxConfidenceScore; } - //virtual vector parseTax(string); virtual string getSimpleTax() { return simpleTax; } + virtual bool getFlipped() { return flipped; } + 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: 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; @@ -45,10 +42,14 @@ protected: string taxFile, templateFile, simpleTax; vector names; + int threadID, numLevels, numTaxa; + bool flip, flipped, shortcuts; - void readTaxonomy(string); + int readTaxonomy(string); vector parseTax(string); + double getLogExpSum(vector, int&); MothurOut* m; + }; /**************************************************************************************************/