correct_data_alt: Alternate correction

View source: R/02_batch_correct.R

correct_data_altR Documentation

Alternate correction

Description

This function allows running ComBat with a custom covar mod matrix. A model could look like stats::model.matrix(~df$covar+df$label)

Usage

correct_data_alt(df, mod, markers = NULL, parametric = TRUE)

Arguments

df

tibble with expression values

mod

Covariate model to use in ComBat.

markers

Markers to normalize. If NULL, markers will be found using the get_markers function.

parametric

Default: TRUE. If TRUE, the parametric version of ComBat is used. If FALSE, the non-parametric version is used.

Examples

## Not run: 
corrected <- uncorrected %>%
  correct_data(mod = stats::model.matrix(~df$covar+df$label))
  
## End(Not run)

biosurf/cyCombine documentation built on May 23, 2024, 4:07 a.m.