X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=bayesian.h;h=405fee3679df7b94ae8f392f62c27886e0b11e36;hp=70757be9ecf2a4c6791fd0fec7c9f74ab8a13501;hb=a8e2df1b96a57f5f29576b08361b86a96a8eff4f;hpb=cd9dbd8b53bbe32af3e9c6bead4aa6d796a278a5 diff --git a/bayesian.h b/bayesian.h index 70757be..405fee3 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, 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(); };