validatePlotNucleosomesParameters {RJMCMCNucleosomes} | R Documentation |
plotNucleosomes
functionValidation of all parameters needed by the public
plotNucleosomes
function.
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
## 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"))}