| lengthWord_probabilities | R Documentation |
Probability of occurrence of the observed word of size m in a sequence at several positions
lengthWord_probabilities(m, sequence, pos, x, output_file = NULL, plot = FALSE)
m |
An integer, the length word |
sequence |
A vector of characters |
pos |
A vector of integer positions |
x |
An object of class |
output_file |
(Optional) A file containing the vector of probabilities (e.g,"C:/.../PROB.txt") |
plot |
|
A dataframe of probability by position
Victor Mataigne, Alexandre Seiller
BaVe2018drimmR \insertRefVer08drimmR
fitdmm, getTransitionMatrix, word_probability
data(lambda, package = "drimmR")
length(lambda) <- 1000
dmm <- fitdmm(lambda, 1, 1, c('a','c','g','t'), init.estim = "freq", fit.method="sum")
m <- 2
lengthWord_probabilities(m, lambda, c(1,length(lambda)-m), dmm, plot=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.