| simulate.dmm | R Documentation |
Simulate one or several sequences under a k-th order DMM
(method of simulate).
## S3 method for class 'dmm'
simulate(
object,
nsim = 1,
seed = NULL,
output_file = NULL,
model_size = NULL,
...
)
object |
An object of class |
nsim |
Default=1. Number of sequences to simulate |
seed |
(Optional) Seed of the random number generator (passed to |
output_file |
(Optional) File containing the simulated sequence(s) in FASTA format (e.g, "C:/.../SIM.txt") |
model_size |
Default= |
... |
Not used |
The order first states are drawn according to the initial law object$init;
then each state is drawn conditionally on the order previous states.
The former call simulate(x, output_file, model_size), with positional arguments, still works
but is deprecated: name the arguments output_file and model_size.
The vector of the simulated sequence, or a list of nsim vectors if nsim > 1
Annthomy Gilles, Alexandre Seiller
BaVe2018drimmR \insertRefVer08drimmR
fitdmm, getTransitionMatrix, getStationaryLaw
data(lambda, package = "drimmR")
dmm <- fitdmm(lambda, 1, 1, c('a','c','g','t'), init.estim = "freq", fit.method="sum")
simulate(dmm, model_size = 100, seed = 1)
simulate(dmm, nsim = 2, model_size = 50)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.