Description Usage Arguments Details Value
View source: R/mbecs_corrections.R
This method uses an non-/parametric empirical Bayes framework to correct for BEs. Described by Johnson et al. 2007 this method was initially conceived to work with gene expression data and is part of the sva-package in R.
1 |
input.obj |
phyloseq object or numeric matrix (correct orientation is handeled internally) |
model.vars |
Vector of covariate names. First element relates to batch. |
type |
Which abundance matrix to use, one of 'otu, tss, clr'. DEFAULT is 'clr'. |
The input for this function is supposed to be an MbecData object that contains total sum-scaled and cumulative log-ratio transformed abundance matrices. Output will be a matrix of corrected abundances.
A matrix of batch-effect corrected counts
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.