getB: Extract methylation Beta values.

Description Usage Arguments Value Author(s) Examples

View source: R/utils.R

Description

Extract Methylation Beta value, Beta = Meth / (Meth + Unmeth + offset)

Usage

1
getB(mdat,type="Illumina",offset=100)

Arguments

mdat

An object of class methDataSet or MethylSet.

type

type="Illumina" sets offset=100 as per Genome Studio software.

offset

Regularization factor in calculating beta ratio, 100 in default

Value

Methylation Beta value = Meth / (Meth + Unmeth + offset). Meth is methylated intensity matrix, Unmeth is unmethylated intensity matrix.

Author(s)

Zongli Xu

Examples

1
2
3
4
5
6
if (require(minfiData)){
path <- file.path(find.package("minfiData"),"extdata")
rgSet <- readidat(path = path,recursive = TRUE)
mdat=getmeth(rgSet)
beta=getB(mdat,"Illumina")
}

ENmix documentation built on April 2, 2021, 6 p.m.