X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bayesian.h;h=7c884337495dbb1e0213d1171a54ca20e0eb932c;hb=5a4ac4f954c4b4445bcee272f1f8220ddcc9c1e4;hp=70757be9ecf2a4c6791fd0fec7c9f74ab8a13501;hpb=cd9dbd8b53bbe32af3e9c6bead4aa6d796a278a5;p=mothur.git diff --git a/bayesian.h b/bayesian.h index 70757be..7c88433 100644 --- a/bayesian.h +++ b/bayesian.h @@ -18,23 +18,29 @@ class Bayesian : public Classify { public: - Bayesian(string, string, string, int, int, int); - ~Bayesian() {}; + Bayesian(string, string, string, int, int, int, int, bool); + ~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; + //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 + vector WordPairDiffArr; + 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&); + bool isReversed(vector&); + vector createWordIndexArr(Sequence*); + int generateWordPairDiffArr(); };