X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bayesian.h;h=fa6590ab98a393d5d4907102db4401704071e5f9;hb=3102812d94898439646131cecdb64fc542913c87;hp=0020962f4276c9deb2129a27b2d69974783aab82;hpb=a5afca18544555fba2d9c3670ad1f8574916b0a0;p=mothur.git diff --git a/bayesian.h b/bayesian.h index 0020962..fa6590a 100644 --- a/bayesian.h +++ b/bayesian.h @@ -18,30 +18,23 @@ class Bayesian : public Classify { public: - Bayesian(string, string, string, int, int, bool); - ~Bayesian() {}; + Bayesian(string, string, string, int, int, int); + ~Bayesian(); string getTaxonomy(Sequence*); - //map getConfidenceScores() { return taxConfidenceScore; } private: - //map > taxonomyProbability; //probability of a word being in a given taxonomy. - //taxonomyProbability[bacteria;][0] = probabtility that a sequence within bacteria; would contain kmer 0; - //taxonomyProbability[bacteria;][1] = probabtility that a sequence within bacteria; would contain kmer 1... - vector< vector > wordGenusProb; //vector of maps from genus to probability //wordGenusProb[0][392] = probability that a sequence within genus that's index in the tree is 392 would contain kmer 0; vector genusTotals; vector genusNodes; //indexes in phyloTree where genus' are located - int kmerSize, numKmers, confidenceThreshold; - bool probs; + int kmerSize, numKmers, confidenceThreshold, iters; string bootstrapResults(vector, int, int); int getMostProbableTaxonomy(vector); - void readProbFile(ifstream&, ifstream&); - //map parseTaxMap(string); + void readProbFile(ifstream&, ifstream&, string, string); };