Description Usage Arguments Value Author(s) Examples
View source: R/methylInheritanceInternalMethods.R
Validation of all parameters needed by the public
runPermutation
function.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | validateRunPermutation(
methylKitData,
type,
outputDir,
runObservedAnalysis,
nbrPermutations,
nbrCores,
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. |
runObservedAnalysis |
a |
nbrPermutations, |
a positive |
nbrCores |
a positive |
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 22 | ## Load dataset
data(samplesForTransgenerationalAnalysis)
## The function returns 0 when all paramaters are valid
methylInheritance:::validateRunPermutation(
methylKitData = samplesForTransgenerationalAnalysis, type = "sites",
outputDir = "test", runObservedAnalysis = TRUE,
nbrPermutations = 10000, nbrCores = 1,
nbrCoresDiffMeth = 1, minReads = 10, minMethDiff = 25, qvalue = 0.01,
maxPercReads = 99.9, destrand = TRUE, minCovBasesForTiles = 10,
tileSize = 1000, stepSize = 500, vSeed = 12, restartCalculation = FALSE,
saveInfoByGeneration = FALSE)
## The function raises an error when at least one paramater is not valid
## Not run: methylInheritance:::validateRunPermutation(
methylKitData = "HI", type = "tiles", outputDir = "test",
runObservedAnalysis = FALSE, nbrPermutations = 10000, nbrCores = 1,
nbrCoresDiffMeth = 1, minReads = 10, 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.