X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=classify.h;h=4e0354782e5063e2a52268e88a1412b40db3c28e;hb=dc383fb61b6d165a8d36e6108df8bc7129243ae6;hp=a2401dde6c10feaa4f83c6f3f7a65b8ff885dafd;hpb=6f4b9401f7deb8aaf0d87659298308f4138cc3b0;p=mothur.git diff --git a/classify.h b/classify.h index a2401dd..4e03547 100644 --- a/classify.h +++ b/classify.h @@ -27,13 +27,12 @@ class Classify { public: Classify(); - - virtual ~Classify(){ delete phyloTree; if (database != NULL) { delete database; } }; + 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: @@ -46,6 +45,8 @@ protected: string taxFile, templateFile, simpleTax; vector names; + int threadID; + bool flip, flipped; int readTaxonomy(string); vector parseTax(string);