Description Usage Arguments Value Author(s) Examples
View source: R/methylInheritanceSimInternalMethods.R
Validation of all parameters needed by the public
runSim
function. Only double parameters are validated.
1 2 | validateRunSimDoubleParameters(vpDiff, vpDiffsd, vDiff, vInheritance,
propInherite, rateDiff, minRate, propHetero, maxPercReads)
|
vpDiff |
a |
vpDiffsd |
a non-negative |
vDiff |
a positive |
vInheritance |
a positive |
propInherite |
a non-negative |
rateDiff |
a positive |
minRate |
a non-negative |
propHetero |
a positive |
maxPercReads |
a |
0
indicating that the function has been successful.
Pascal Belleau, Astrid Deschenes
1 2 3 4 | ## The function returns 0 when all paramaters are valid
methInheritSim:::validateRunSimDoubleParameters(vpDiff =0.2,
vpDiffsd = 0.3, vDiff = 0.4, vInheritance = 0.2, propInherite = 0.5,
rateDiff = 0.2, minRate = 0.1, propHetero = 0.2, maxPercReads = 99.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.