Description Usage Arguments Value Author(s) Examples
View source: R/methylInheritanceSimInternalMethods.R
For each control and case, generate the proportion of C/T at each of the synthetic CHR.
1 2 | getSim(nbCtrl, nbCase, generation, stateInfo, stateDiff, stateInherite,
diffValue, propDiff, propDiffsd, propInheritance, propHetero)
|
nbCtrl |
a positive |
nbCase |
a positive |
generation |
a positive |
stateInfo |
a |
stateDiff |
a |
stateInherite |
a |
diffValue |
a non-negative |
propDiff |
a |
propDiffsd |
a non-negative |
propInheritance |
a non-negative |
propHetero |
a non-negative |
a GRangesList
, the object contains information about the
simulation. The file have four metadata related to the real dataset:
meanDiff, the means of the shifted distribution.
meanCTRL, the means of the control distribution.
partitionCase, the number of cases simulated using the shifted distribution.
partitionCtrl, the number of cases simulated using the control distribution and a metadata for each cases and controls the proportion of C/T.
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 | ## Fix seed to have reproducible results
set.seed(312)
## Load dataset
data("samplesForChrSynthetic")
## Generate a stateInfo object using samples
stateInformation <- methInheritSim:::getSyntheticChr(methInfo =
samplesForChrSynthetic, nbBlock = 1, nbCpG = 3)
## Generate a stateDiff and stateInherite objects with length corresponding
## to nbBlock * nbCpG from stateInformation
stateDiff <- c(1, 0, 1)
stateInherite <- c(1, 0, 0)
## Create a simulation using stateInformation, stateDiff and stateInherite
methInheritSim:::getSim(nbCtrl = 3, nbCase = 2, generation = 3,
stateInfo = stateInformation, stateDiff = stateDiff,
stateInherite = stateInherite, diffValue = 10,
propDiff = 0.8, propDiffsd = 0.2, propInheritance = 0.8,
propHetero = 0.1)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.