View source: R/02_batch_correct.R
correct_data_alt | R Documentation |
This function allows running ComBat with a custom covar mod matrix.
A model could look like stats::model.matrix(~df$covar+df$label)
correct_data_alt(df, mod, markers = NULL, parametric = TRUE)
df |
tibble with expression values |
mod |
Covariate model to use in ComBat. |
markers |
Markers to normalize. If NULL, markers will be found using the |
parametric |
Default: TRUE. If TRUE, the parametric version of ComBat is used. If FALSE, the non-parametric version is used. |
## Not run:
corrected <- uncorrected %>%
correct_data(mod = stats::model.matrix(~df$covar+df$label))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.