Description Usage Arguments Value Author(s) Examples
View source: R/rjmcmcMethodsIntern.R
Validation of all parameters needed by the public
postMerge function.
| 1 2 | validatePrepMergeParameters(reads, seqName, resultRJMCMC, extendingSize,
  chrLength)
 | 
| reads | a  | 
| seqName | 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_01)
## Load dataset containing nucleosome information
file_002 <- dir(system.file("extdata", package = "RJMCMCNucleosomes"),
pattern = "RJMCMC_seg_02.RDS", full.names = TRUE)
nucleosome_info <- readRDS(file_002)
## The function returns 0 when all parameters are valid
RJMCMCNucleosomes:::validatePrepMergeParameters(reads = reads_demo_01,
seqName = "chr_SYNTHETIC", resultRJMCMC = nucleosome_info,
extendingSize = 74, chrLength = 10000000)
## The function raises an error when at least one paramater is not valid
## Not run: RJMCMCNucleosomes:::validatePrepMergeParameters(
reads = c(72400, 72431, 72428, 72429, 72426),
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.