Region {DMRScan}R Documentation

Shorthand for initializing region

Description

Shorthand for initializing region

Usage

Region(tValues, position, chromosome, pVal, id)

Arguments

tValues

A vector of test statistics

position

A vector of position for each test statistc

chromosome

An character describing the chromosome (1-22, X,Y)

pVal

The P value of a region, set to numeric() if not given.

id

The names of each probe in the region

Value

An object of type Region

An object of type Region

Examples

#Number of probes is n = 10
nCpG <- 10
region <- Region(tValues    = rnorm(nCpG),
                 position   = 1:nCpG,
                 chromosome = "3",
                 id         = paste("CpG",1:nCpG,sep="_"),
                 pVal       = runif(1)) 

[Package DMRScan version 1.4.6 Index]