View source: R/normalize_batch.R
cbcb_combat | R Documentation |
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
cbcb_combat(dat, batch, mod, noscale = TRUE, prior.plots = FALSE, ...)
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 |
Df of batch corrected data
[sva] [sva::ComBat()]
## Not run:
df_new = cbcb_combat(df, batches, model)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.