Description Usage Arguments Value Author(s) Examples
Validation of all parameters needed by the public
postMerge
function.
1 2 | validatePrepMergeParameters(startPosForwardReads, startPosReverseReads,
resultRJMCMC, extendingSize, chrLength)
|
startPosForwardReads |
a |
startPosReverseReads |
a |
resultRJMCMC |
an object of |
extendingSize |
a positive |
chrLength |
a positive |
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 17 18 | ## Load dataset containing forward and reverse reads
data(reads_demo)
## Load dataset containing nucleosome information
file_002 <- dir(system.file("extdata", package = "RJMCMC"),
pattern = "yeastRes_Chr1_Seg_002.rds", full.names = TRUE)
nucleosome_info <- readRDS(file_002)
## The function returns 0 when all parameters are valid
RJMCMC:::validatePrepMergeParameters(startPosForwardReads =
reads_demo$readsForward, startPosReverseReads = reads_demo$readsReverse,
resultRJMCMC = nucleosome_info, extendingSize = 74, chrLength = 10000000)
## The function raises an error when at least one paramater is not valid
## Not run: RJMCMC:::validatePrepMergeParameters(startPosForwardReads = c(72400,
72431, 72428, 72429, 72426), startPosReverseReads = c(72522, 72531, 72528,
72559, 72546), resultRJMCMC = NA, extendingSize = 74, chrLength = 10000000)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.