X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=bayesian.h;fp=bayesian.h;h=0000000000000000000000000000000000000000;hb=4a877efa127e56e81a21f53cfdbbfd3bfbe8c4ff;hp=7c884337495dbb1e0213d1171a54ca20e0eb932c;hpb=a6cf29fa4dac0909c7582cb1094151d34093ee76;p=mothur.git diff --git a/bayesian.h b/bayesian.h deleted file mode 100644 index 7c88433..0000000 --- a/bayesian.h +++ /dev/null @@ -1,50 +0,0 @@ -#ifndef BAYESIAN_H -#define BAYESIAN_H - -/* - * bayesian.h - * Mothur - * - * Created by westcott on 11/3/09. - * Copyright 2009 Schloss Lab. All rights reserved. - * - */ - -#include "mothur.h" -#include "classify.h" - -/**************************************************************************************************/ - -class Bayesian : public Classify { - -public: - 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; - - 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(); - -}; - -/**************************************************************************************************/ - -#endif -