Description Usage Arguments Value Author(s) Examples
View source: R/methylInheritanceSimInternalMethods.R
Validation of all parameters needed by the public
runSim
function.
1 2 3 4 5 | validateRunSimParameters(vpDiff, vpDiffsd, vDiff, vInheritance, propInherite,
rateDiff, minRate, propHetero, maxPercReads, nbSynCHR, nbSimulation, nbBlock,
nbCpG, vNbSample, nbGeneration, minReads, meanCov, nbCores, vSeed, keepDiff,
saveGRanges, saveMethylKit, runAnalysis, outputDir, fileID, methData, context,
assembly)
|
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 |
nbSynCHR |
a positive |
nbSimulation |
a positive |
nbBlock |
a positive |
nbCpG |
a positive |
vNbSample |
a |
nbGeneration |
a positive |
minReads |
a positive |
meanCov |
a positive |
nbCores |
a positive |
vSeed |
a |
keepDiff |
|
saveGRanges |
a |
saveMethylKit |
a |
runAnalysis |
a
|
outputDir |
a string of |
fileID |
a string of
|
methData |
an object of class |
context |
a string of |
assembly |
a string of |
0
indicating that the function has been successful.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Load dataset
data("samplesForChrSynthetic")
## The function returns 0 when all paramaters are valid
methInheritSim:::validateRunSimParameters(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,
nbSynCHR = 1, nbSimulation = 2, nbBlock = 10, nbCpG = 4, vNbSample = 10,
nbGeneration = 3, minReads = 10, meanCov = 80,
nbCores = 1, vSeed = -1, keepDiff = FALSE, saveGRanges = TRUE,
saveMethylKit = FALSE, runAnalysis = FALSE, outputDir = "test",
fileID = "test", methData = samplesForChrSynthetic,
context = "CpG", assembly = "Rnor_5.0")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.