Changes parameters for Hidden Semi-Markov Model to add k-mer
add_k_mer_state(kMer, pipar, tpmpar, od, params, pState, nState, pTrans, d)
character
vector representing k-mer aminoacid sequence.
Probabilities of initial state in Markov Model.
Matrix with transition probabilities between states.
Matrix of response probabilities. Eg. od[1,2] is a probability of signal 2 in state 1.
Matrix of probability distribution for duration. Eg. params[10,2] is probability of duration of time 10 in state 2.
number denoting hidden state right before k-mer.
number denoting hidden state right after k-mer.
Probability of change from pState to k-mer hidden state.
Duration of the state.
A list of length four:
pipar a vector of new probabilities of initial state in Markov Model,
tpmpar a matrix with new transition probabilities between states,
od matrix of new response probabilities,
params matrix of new probability distributions for duration.