Description Usage Arguments Value Author(s) Examples
View source: R/methylInheritanceSimInternalMethods.R
Simulate a multigeneration methylation case versus control experiment with inheritance relation using a real control dataset.
1 2 3 4 5 | runOnEachSynCHR(methData, nbSynCHR, nbSimulation, nbBlock, nbCpG, nbGeneration,
vNbSample, vpDiff, vpDiffsd, vDiff, vInheritance, rateDiff, minRate,
propInherite, propHetero, keepDiff, outputDir, fileID, minReads, maxPercReads,
meanCov, context, assembly, saveGRanges, saveMethylKit, runAnalysis, nbCores,
vSeed)
|
methData |
an object of class |
nbSynCHR |
a positive |
nbSimulation |
a positive |
nbBlock |
a positive |
nbCpG |
a positive |
nbGeneration |
a positive |
vNbSample |
a |
vpDiff |
a |
vpDiffsd |
a |
vDiff |
a |
vInheritance |
a |
rateDiff |
a positive |
minRate |
a non-negative |
propInherite |
a non-negative |
propHetero |
a non-negative |
keepDiff |
a |
outputDir |
a string of |
fileID |
a string of
|
minReads |
a positive |
maxPercReads |
a |
meanCov |
a positive |
context |
a string of |
assembly |
a string of |
saveGRanges |
a |
saveMethylKit |
a |
runAnalysis |
a
|
nbCores |
a positive |
vSeed |
a |
0
indicating that the function have been
successful.
Pascal Belleau, Astrid Deschenes
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | ## Load dataset containing methyl information
data(samplesForChrSynthetic)
## Set the output directory where files will be created
temp_dir <- "test_runOnEachSynCHR"
## Create directory
if(!dir.exists(temp_dir)) {
dir.create(temp_dir, showWarnings = TRUE)
}
## Create 2 simulated dataset (nbSimulation = 2)
## over 3 generations (nbGenration = 3) with
## 6 cases and 6 controls (nNbsample = 6) using only one set
## of parameters (vpDiff = 0.9, vpDiffsd = 0.1, vDiff = 0.8)
methInheritSim:::runOnEachSynCHR(methData = samplesForChrSynthetic,
nbSynCHR = 1, nbSimulation = 2, nbBlock = 10, nbCpG = 20,
nbGeneration = 3, vNbSample = c(6), vpDiff = c(0.9), vpDiffsd = c(0.1),
vDiff = c(0.8), vInheritance = c(0.5), propInherite = 0.3,
rateDiff = 0.3, minRate = 0.2, propHetero = 0.5, keepDiff = FALSE,
outputDir = temp_dir, fileID = "F1", minReads = 10,
maxPercReads = 99.9, meanCov = 80, context = "CpG", assembly="Rnor_5.0",
saveGRanges = FALSE, saveMethylKit = FALSE,
runAnalysis = FALSE, nbCores = 1, vSeed = 32)
## Delete the output directory and its content
if (dir.exists(temp_dir)) {
unlink(temp_dir, recursive = TRUE, force = FALSE)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.