cbcb_combat: A modified version of comBatMod.

View source: R/normalize_batch.R

cbcb_combatR Documentation

A modified version of comBatMod.

Description

This is a hack of Kwame Okrah's combatMod to make it not fail on corner-cases. This was mostly copy/pasted from https://github.com/kokrah/cbcbSEQ/blob/master/R/transform.R

Usage

cbcb_combat(dat, batch, mod, noscale = TRUE, prior.plots = FALSE, ...)

Arguments

dat

Df to modify.

batch

Factor of batches.

mod

Factor of conditions.

noscale

The normal 'scale' option squishes the data too much, so this defaults to TRUE.

prior.plots

Print out prior plots?

...

Extra options are passed to arglist

Value

Df of batch corrected data

See Also

[sva] [sva::ComBat()]

Examples

## Not run: 
 df_new = cbcb_combat(df, batches, model)

## End(Not run)

elsayed-lab/hpgltools documentation built on April 8, 2024, 1:30 a.m.