getSyntheticChr: Create a synthetic chromosome with the CTRL genome

Description Usage Arguments Value Author(s) Examples

View source: R/methylInheritanceSimInternalMethods.R

Description

Create a synthetic chromosome with the sampling of a specified number of blocks and a specified number of consecutive CpG.

Usage

1
getSyntheticChr(methInfo, nbBlock, nbCpG)

Arguments

methInfo

is object of class methylBase, the CpG information from controls (CTRL) that will be used to create the sythetic chromosome. The object can also contain information from cases but only the controls will be used.

nbBlock

a positive integer, the number of blocks used for sampling.

nbCpG

a integer, the number of consecutive CpG positions used for sampling from methInfo.

Value

a GRanges object, the synthetic chromosome.

Author(s)

Pascal Belleau

Examples

1
2
3
4
5
6
7
8
9
## Load methyl information
data(samplesForChrSynthetic)

## Ensure results are reproducible
set.seed(32)

## Create synthetic chromosome
methInheritSim:::getSyntheticChr(methInfo = samplesForChrSynthetic, 
nbBlock = 10, nbCpG = 20)

belleau/methylInheritanceSim documentation built on April 1, 2020, 2:43 p.m.