Description Usage Arguments Value Author(s) Examples
View source: R/rjmcmcMethodsIntern.R
Validation of all parameters needed by the public
plotNucleosomes
function.
1 2 | validatePlotNucleosomesParameters(nucleosomePositions, reads, seqName, xlab,
ylab, names)
|
nucleosomePositions |
a |
reads |
a |
seqName |
a |
xlab |
a |
ylab |
a |
names |
a |
0
indicating that all parameters validations have been
successful.
Astrid Deschenes, Pascal Belleau
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## Load GRanges dataset
data(reads_demo_01)
## Load RJMCMC result
data(RJMCMC_result)
## The function returns 0 when all parameters are valid
RJMCMCNucleosomes:::validatePlotNucleosomesParameters(nucleosomePositions =
RJMCMC_result$mu, reads = reads_demo_01, seqName = "chr_SYNTHETIC",
xlab = "position", ylab = "coverage", names = c("test"))
## The function raises an error when at least one paramater is not valid
#\dontrun{RJMCMCNucleosomes:::validatePlotNucleosomesParameters(
#nucleosomePositions = c("hi"), reads = reads,
#xlab = "position", ylab = "coverage", names = c("test"))}
#\dontrun{RJMCMCNucleosomes:::validatePlotNucleosomesParameters(
#nucleosomePositions = RJMCMC_result$mu, reads = reads_demo_01,
#seqName = "chr_SYNTHETIC", xlab = "position", ylab = "coverage",
#names = c("test_one", "test_false"))}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.