Description Usage Arguments Value Author(s) Examples
View source: R/rjmcmcMethodsIntern.R
Validation of all parameters needed by the public
rjmcmc
function.
1 2 | validateRJMCMCParameters(reads, seqName, nbrIterations, kMax, lambda,
minInterval, maxInterval, minReads, adaptIterationsToReads, vSeed)
|
reads |
a |
seqName |
a |
nbrIterations |
a positive |
kMax |
a positive |
lambda |
a positive |
minInterval |
a |
maxInterval |
a |
minReads |
a positive |
adaptIterationsToReads |
a |
vSeed |
a |
0
indicating that all parameters validations have been
successful.
Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | reads <- GRanges(seqnames = Rle(c("chr1"), c(10)),
ranges = IRanges(101:110, end = 111:120, names = head(letters, 10)),
strand = Rle(strand(c("-", "+", "-", "+", "-")), c(1, 2, 2, 3, 2)))
## The function returns 0 when all paramaters are valid
RJMCMCNucleosomes:::validateRJMCMCParameters(reads = reads,
seqName = "chr1", nbrIterations = 2, kMax = 10, lambda = 1, minReads = 1,
minInterval = 100, maxInterval = 200, adaptIterationsToReads = TRUE,
vSeed = 100)
## The function raises an error when at least one paramater is not valid
## Not run: RJMCMCNucleosomes:::validateRJMCMCParameters(
reads = NA, seqName = "chr1",
nbrIterations = 2, kMax = 10, lambda = 1, minReads = 1, minInterval = 100,
maxInterval = 200, adaptIterationsToReads = TRUE, vSeed = -1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.