pre_process_methylation: Preprocess the Beta value matrix

Description Usage Arguments Value Examples

View source: R/pre_process_methylation.R

Description

This process is optional for the pipeline. This function pre-process the Beta matrix and transform the Beta value into M value.

Usage

1
pre_process_methylation(met,Mvalue,constant_offset,remove_na,remove_percentage)

Arguments

met

methylation matrix for CpGs. Rows are the CpG names, columns are samples.

Mvalue

Boolean value, TRUE for the M transformation.

constant_offset

the constant offset used in the M transformation formula.

remove_na

Boolean value, if TRUE ,CpGs with NA values will be removed.

remove_percentage

If precentage of NA value exceed the threshold(percentage), the whole CpG probe will be removed. Otherwise, the NA values are replaced with rowmeans.

Value

Object of class matrix.

Examples

1
2
demo_set<-create_demo()
pre_process_methylation(demo_set,Mvalue=FALSE)

EnMCB documentation built on Dec. 22, 2020, 2 a.m.