]> git.donarmstrong.com Git - mothur.git/blobdiff - classify.h
sffinfo bug with flow grams right index when clipQualRight=0
[mothur.git] / classify.h
index bd9f34bc7eb3f51b6b360ce4b4f18251f194e155..7b4c1022fef35aacbc33824d99ede551e55b187c 100644 (file)
 #include "database.hpp"
 #include "phylotree.h"
 
-
 class Sequence;
 
-
 /**************************************************************************************************/
 
 class Classify {
@@ -30,12 +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<string, string> taxonomy;  //name maps to taxonomy
-       //map<string, int> genusCount;  //maps genus to count - in essence a list of how many seqs are in each taxonomy
        map<string, int>::iterator itTax;
        map<string, string>::iterator it;
        Database* database;
@@ -43,9 +42,12 @@ protected:
        
        string taxFile, templateFile, simpleTax;
        vector<string> names;
+       int threadID, numLevels, numTaxa;
+       bool flip, flipped, shortcuts;
        
        int readTaxonomy(string);
        vector<string> parseTax(string);
+    double getLogExpSum(vector<double>, int&);
        MothurOut* m;
        
 };