X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bayesian.h;h=1cf5145132eab009b9d807f69de655fc26d59a40;hb=8c8acb6218f58f662466e4111ab8aa4da0caf93c;hp=cbe949ff311edc776d507530fcc5b5a3f327b73e;hpb=63e089e0b3aad1741bab60119ed7ccc784dce347;p=mothur.git diff --git a/bayesian.h b/bayesian.h index cbe949f..1cf5145 100644 --- a/bayesian.h +++ b/bayesian.h @@ -18,13 +18,24 @@ class Bayesian : public Classify { public: - Bayesian(string, string, string, int, int, int, int, int); - ~Bayesian() {}; + Bayesian(string, string, string, int, int, int, int); + ~Bayesian(); string getTaxonomy(Sequence*); - private: + 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, iters; + + string bootstrapResults(vector, int, int); + int getMostProbableTaxonomy(vector); + void readProbFile(ifstream&, ifstream&, string, string); + bool checkReleaseDate(ifstream&, ifstream&, ifstream&, ifstream&); };