distributions {drimmR} | R Documentation |
Distributions for a range of positions between <start> and <end>
Description
Distributions for a range of positions between <start> and <end>
Usage
distributions(
x,
start = 1,
end = NULL,
step = NULL,
output_file = NULL,
plot = FALSE,
ncpu = 2
)
Arguments
x |
An object of class |
start |
Start position : a positive integer giving the start position along the sequence from which the distributions of the DMM should be computed |
end |
End position : a positive integer giving the end position along the sequence until which the distributions of the DMM should be computed |
step |
A step (integer) |
output_file |
(Optional) A file containing matrix of distributions (e.g, "C:/.../DIST.txt") |
plot |
|
ncpu |
Default=2. Represents the number of cores used to parallelized computation. If ncpu=-1, then it uses all available cores. |
Value
A matrix with positions and distributions of states
Author(s)
Alexandre Seiller
References
Barbu VS, Vergne N (2018). “Reliability and survival analysis for drifting Markov models: modelling and estimation.” Methodology and Computing in Applied Probability, 1–33. doi: 10.1007/s11009-018-9682-8, https://doi.org/10.1007/s11009-018-9682-8. Vergne N (2008). “Drifting Markov models with polynomial drift and applications to DNA sequences.” Statistical Applications in Genetics Molecular Biology , 7(1) . doi: 10.2202/1544-6115.1326, https://doi.org/10.2202/1544-6115.1326.
See Also
fitdmm, getDistribution, getStationaryLaw
Examples
data(lambda, package = "drimmR")
dmm <- fitdmm(lambda, 1, 1, c('a','c','g','t'), init.estim = "freq", fit.method="sum")
distributions(dmm,start=1,end=1000,step=100, plot=TRUE)