X-Git-Url: https://git.donarmstrong.com/?p=mothur.git;a=blobdiff_plain;f=bayesian.h;h=405fee3679df7b94ae8f392f62c27886e0b11e36;hp=9b93c839c9e5a4a749bf190c1bd95200fc82f272;hb=615301e57c25e241356a9c2380648d117709458d;hpb=7b3c9ca940891c1b20b3b7ec13e05d7e7b316b63 diff --git a/bayesian.h b/bayesian.h index 9b93c83..405fee3 100644 --- a/bayesian.h +++ b/bayesian.h @@ -18,29 +18,29 @@ class Bayesian : public Classify { public: - Bayesian(string, string, string, int, int); - ~Bayesian() {}; + Bayesian(string, string, string, int, int, int, int, bool, bool); + ~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; + //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; + vector WordPairDiffArr; + + 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); + bool checkReleaseDate(ifstream&, ifstream&, ifstream&, ifstream&); + bool isReversed(vector&); + vector createWordIndexArr(Sequence*); + int generateWordPairDiffArr(); };