Description Usage Arguments Value Author(s) Examples
View source: R/methylInheritanceInternalMethods.R
Validation of some parameters needed by the public
runObservation
function.
1 2 3 4 | validateRunObservation(methylKitData, type, outputDir, nbrCoresDiffMeth,
minReads, minMethDiff, qvalue, maxPercReads, destrand,
minCovBasesForTiles, tileSize, stepSize, vSeed, restartCalculation,
saveInfoByGeneration)
|
methylKitData |
a |
type |
One of the "sites","tiles" or "both" strings. Specifies the type of differentially methylated elements should be returned. For retrieving differentially methylated bases type="sites"; for differentially methylated regions type="tiles". Default: "both". |
outputDir |
a string, the name of the directory that will contain the results of the permutation. If the directory does not exist, it will be created. |
nbrCoresDiffMeth |
a positive |
minReads |
a positive |
minMethDiff |
a positive |
qvalue |
a positive |
maxPercReads |
a |
destrand |
a |
minCovBasesForTiles |
a non-negative |
tileSize |
a positive |
stepSize |
a positive |
vSeed |
a |
restartCalculation |
a |
saveInfoByGeneration |
a |
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 19 20 21 | ## Load dataset
data(samplesForTransgenerationalAnalysis)
## The function returns 0 when all paramaters are valid
methylInheritance:::validateRunObservation(
methylKitData = samplesForTransgenerationalAnalysis, type = "sites",
outputDir = "test", nbrCoresDiffMeth = 1, minReads = 10,
minMethDiff = 25, qvalue = 0.01,
maxPercReads = 99.9, destrand = TRUE, minCovBasesForTiles = 10,
tileSize = 1000, stepSize = 500, vSeed = 12, restartCalculation = TRUE,
saveInfoByGeneration = FALSE)
## The function raises an error when at least one paramater is not valid
## Not run: methylInheritance:::validateRunObservation(
methylKitData = samplesForTransgenerationalAnalysis,
type = "tiles", outputDir = "test_02", nbrCoresDiffMeth = 1,
minReads = "HI", minMethDiff = 25, qvalue = 0.01,
maxPercReads = 99.9, destrand = TRUE, minCovBasesForTiles = 10,
tileSize = 1000, stepSize = 500, vSeed = 12, restartCalculation = FALSE,
saveInfoByGeneration = FALSE)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.