X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=classify.h;h=7b4c1022fef35aacbc33824d99ede551e55b187c;hp=2e209f562108121e8a95b3c4470252537813baed;hb=615301e57c25e241356a9c2380648d117709458d;hpb=55386dddad84cc1140d736cabaf4dd0ae16f2e01 diff --git a/classify.h b/classify.h index 2e209f5..7b4c102 100644 --- a/classify.h +++ b/classify.h @@ -17,10 +17,8 @@ #include "database.hpp" #include "phylotree.h" - class Sequence; - /**************************************************************************************************/ class Classify { @@ -30,13 +28,13 @@ public: virtual ~Classify(){}; virtual string getTaxonomy(Sequence*) = 0; 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; @@ -44,10 +42,12 @@ protected: string taxFile, templateFile, simpleTax; vector names; - int threadID; + int threadID, numLevels, numTaxa; + bool flip, flipped, shortcuts; int readTaxonomy(string); vector parseTax(string); + double getLogExpSum(vector, int&); MothurOut* m; };