nbh
that receives a vector of integers and compute optimal HMM parameters via EM algorithm.## S3 method for class 'integer':
nbh(x, K, NBM_NIT_MAX = 250,
NBM_TOL = 0.01, NBH_NIT_MAX = 250,
NBH_TOL = 0.001, runViterbi = FALSE, ...)
nbm_em
).nbh_em
).nbh_init
.nbh_init
.nbh_init
.nbh_em
(e.g., posteriors of background and enriched state in a two-state HMM).nbh_em
.nbh_em
.nbh_vit
).nbh_init
). Given the optimized paramters for K-NBM, step (2) drops the independence assumption by introducing the transition probibility between hidden variables, which is initlaized as the mixing proportions of NBM (See nbh_init
). Given the optimized HMM paramters, step (3) derives the maximum liklihood hidden state sequence using Viterbi algorithm. Step (3) is run only when runViterbi is TRUE.Bishop, Christopher. Pattern recognition and machine learning. Number 605-631 in Information Science and Statisitcs. Springer Science, 2006.
Capp'e, O. (2001). H2M : A set of MATLAB/OCTAVE functions for the EM estimation of mixtures and hidden Markov models. (
mainSeekSingleChrom, nbh, nbh.GRanges
if(interactive()) ?nbh # see nbh for example of nbh running on integer object
Run the code above in your browser using DataLab