Learn R Programming

drimmR (version 1.0.3)

simulate.dmm: Simulate a sequence under a drifting Markov model

Description

Simulate a sequence under a k-th order DMM.

Usage

# S3 method for dmm
simulate(x, output_file = NULL, model_size = NULL, ncpu = 2)

Value

the vector of simulated sequence

Arguments

x

An object of class dmm

output_file

(Optional) File containing the simulated sequence (e.g, "C:/.../SIM.txt")

model_size

Size of the model

ncpu

Default=2. Represents the number of cores used to parallelized computation. If ncpu=-1, then it uses all available cores.

Author

Annthomy Gilles, Alexandre Seiller

References

BaVe2018drimmR Ver08drimmR

See Also

fitdmm, getTransitionMatrix, getStationaryLaw

Examples

Run this code
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)

Run the code above in your browser using DataLab