BatchEffect_Combat: BatchEffect_Combat function

View source: R/BatchEffect_Combat.R

BatchEffect_CombatR Documentation

BatchEffect_Combat function

Description

Function to do a batch correction using combat on the beta set from the epigenetic set.

Usage

BatchEffect_Combat(x, batch, RiskFactors, M = FALSE, save = TRUE)

Arguments

x

Epigenetic set object.

batch

Non-biological factor for which the beta set needs to be corrected.

RiskFactors

Risk factors for which the Combat algorithm needs to correct

M

If TRUE, the combat will run using the M values instead of the beta values.

save

If TRUE, the new bset will be saved into the minfi_sets directory.

Value

Updated Epigenetic set object.


GregoireCoppens/LICMEpigenetics documentation built on April 24, 2023, 10:02 a.m.