setRegion {DMRScan}R Documentation

Method setRegion

Description

Method setRegion

Update a RegionList object

Usage

setRegion(x, i, ...)

## S4 method for signature 'RegionList'
setRegion(x, i, region)

Arguments

x

A region

i

an index

...

To be pased to Region()

region

An object of type Region to be inseted in RegionList

Value

An updated version of RegionList x, with a new Region at index i

Examples

## A region list with 3 regions
regList <- RegionList(3L)
#Number of probes in first is n = 10
nCpG <- 10
region <- Region(tValues    = rnorm(nCpG),
                 position   = 1:nCpG,
                 chromosome = "3")
## Set first region in regList to region
regList <- setRegion(regList,i = 1, region)


[Package DMRScan version 1.4.6 Index]