bapred: Batch Effect Removal and Addon Normalization (in Phenotype Prediction using Gene Data)

Various tools dealing with batch effects, in particular enabling the removal of discrepancies between training and test sets in prediction scenarios. Moreover, addon quantile normalization and addon RMA normalization (Kostka & Spang, 2008) is implemented to enable integrating the quantile normalization step into prediction rules. The following batch effect removal methods are implemented: FAbatch, ComBat, (f)SVA, mean-centering, standardization, Ratio-A and Ratio-G. For each of these we provide an additional function which enables a posteriori ('addon') batch effect removal in independent batches ('test data'). Here, the (already batch effect adjusted) training data is not altered. For evaluating the success of batch effect adjustment several metrics are provided. Moreover, the package implements a plot for the visualization of batch effects using principal component analysis. The main functions of the package for batch effect adjustment are ba() and baaddon() which enable batch effect removal and addon batch effect removal, respectively, with one of the seven methods mentioned above. Another important function here is bametric() which is a wrapper function for all implemented methods for evaluating the success of batch effect removal. For (addon) quantile normalization and (addon) RMA normalization the functions qunormtrain(), qunormaddon(), rmatrain() and rmaaddon() can be used.

Install the latest version of this package by entering the following in R:
AuthorRoman Hornung, David Causeur
Date of publication2016-06-03 19:12:25
MaintainerRoman Hornung <>

View on CRAN

Man pages

autism: Autism dataset

avedist: Average minimal distance between batches

ba: Batch effect adjustment using a method of choice

baaddon: Addon batch effect adjustment

bametric: Diverse metrics for quality of (adjusted) batch data

bapred-internal: Internal bapred functions

bapred-package: The bapred package

batch: batch variable of dataset 'autism'

combatba: Batch effect adjustment using ComBat

combatbaaddon: Addon batch effect adjustment using ComBat

corba: Mean correlation before and after batch effect adjustment

diffexprm: Measure for performance of differential expression analysis...

fabatch: Batch effect adjustment using FAbatch

fabatchaddon: Addon batch effect adjustment using FAbatch

kldist: Kullback-Leibler divergence between density of within and...

meancenter: Batch effect adjustment by mean-centering

meancenteraddon: Addon batch effect adjustment for mean-centering

noba: No batch effect adjustment

nobaaddon: No addon batch effect adjustment

pcplot: Visualization of batch effects using Principal Component...

pvcam: Proportion of variation induced by class signal estimated by...

qunormaddon: Addon quantile normalization using "documentation by value"...

qunormtrain: Quantile normalization with "documentation by value" (Kostka...

ratioa: Batch effect adjustment using Ratio-A

ratioaaddon: Addon batch effect adjustment for Ratio-A

ratiog: Batch effect adjustment using Ratio-G

ratiogaddon: Addon batch effect adjustment for Ratio-G

rmaaddon: Addon RMA normalization using "documentation by value"...

rmatrain: RMA normalization with "documentation by value" (Kostka &...

sepscore: Separation score as described in Hornung et al. (2016)

skewdiv: Skewness divergence score

standardize: Batch effect adjustment by standardization

standardizeaddon: Addon batch effect adjustment for standardization

svaba: Batch effect adjustment using SVA

svabaaddon: Addon batch effect adjustment using frozen SVA

X: Covariate matrix of dataset 'autism'

y: Target variable of dataset 'autism'


aprior Man page
autism Man page
avedist Man page
avedistTwo Man page
ba Man page
baaddon Man page
bametric Man page
bapred Man page
bapred-package Man page
batch Man page
bivprob Man page
bprior Man page Man page
combatba Man page
combatbaaddon Man page
corba Man page
design.mat Man page
diffexprm Man page
diffexprmAfterBR Man page
Dt Man page
emfahighdim Man page
extractAffybatch Man page
fabatch Man page
fabatchaddon Man page
fuzzywilcox Man page
it.sol Man page
kldist Man page
kldistTwo Man page
list.batch Man page
meancenter Man page
meancenteraddon Man page
mypvcaBatchAssess Man page
nbfactors Man page
noba Man page
nobaaddon Man page
normalizeAffyBatchqntval Man page
normalizeqntadd Man page
normalizeqntadd2 Man page
normalizeqntval Man page
pcplot Man page
plotcomp Man page
postmean Man page
postvar Man page
print.combat Man page
print.fabatch Man page
print.meancenter Man page
print.noba Man page
print.qunormtrain Man page
print.ratioa Man page
print.ratiog Man page
print.rmatrain Man page
print.standardize Man page
print.svatrain Man page
pvcam Man page
qunormaddon Man page
qunormtrain Man page
ratioa Man page
ratioaaddon Man page
ratiog Man page
ratiogaddon Man page
rmaaddon Man page
rmatrain Man page
sepscore Man page
sepscoreTwo Man page
skewdiv Man page
skewdivTwo Man page
standardize Man page
standardizeaddon Man page
summarizeadd2 Man page
summarizeval2 Man page
svaba Man page
svabaaddon Man page
VarInflation Man page
X Man page
y Man page


R/postvar.R R/normalizeqntval.R R/normalizeAffyBatchqntval.R R/fabatchaddon.R R/meancenteraddon.R R/rmatrain.R R/it.sol.R R/mypvcaBatchAssess.R R/print.ratioa.R R/print.noba.R R/svaba.R R/combatba.R R/qunormaddon.R R/ratioaaddon.R R/skewdiv.R R/aprior.R R/VarInflation.R R/print.combat.R R/bametric.R R/plotcomp.R R/svabaaddon.R R/print.fabatch.R R/meancenter.R R/normalizeqntadd.R R/print.meancenter.R R/print.svatrain.R R/rmaaddon.R R/qunormtrain.R R/diffexprmAfterBR.R R/design.mat.R R/summarizeadd2.R R/noba.R R/baaddon.R R/bprior.R R/pcplot.R R/pvcam.R R/standardize.R R/Dt.R R/sepscoreTwo.R R/postmean.R R/ R/skewdivTwo.R R/diffexprm.R R/print.standardize.R R/bivprob.R R/emfahighdim.R R/kldistTwo.R R/ratiogaddon.R R/combatbaaddon.R R/corba.R R/ratiog.R R/nobaaddon.R R/ratioa.R R/kldist.R R/print.qunormtrain.R R/sepscore.R R/avedistTwo.R R/nbfactors.R R/standardizeaddon.R R/ba.R R/print.rmatrain.R R/extractAffybatch.R R/list.batch.R R/fuzzywilcox.R R/ba-internal.R R/avedist.R R/print.ratiog.R R/normalizeqntadd2.R R/summarizeval2.R R/fabatch.R
man/pcplot.Rd man/skewdiv.Rd man/bapred-package.Rd man/diffexprm.Rd man/pvcam.Rd man/corba.Rd man/svaba.Rd man/nobaaddon.Rd man/standardizeaddon.Rd man/y.Rd man/batch.Rd man/qunormaddon.Rd man/ratioa.Rd man/rmaaddon.Rd man/kldist.Rd man/sepscore.Rd man/baaddon.Rd man/avedist.Rd man/ba.Rd man/fabatch.Rd man/bametric.Rd man/combatba.Rd man/meancenter.Rd man/noba.Rd man/bapred-internal.Rd man/ratioaaddon.Rd man/ratiogaddon.Rd man/meancenteraddon.Rd man/autism.Rd man/combatbaaddon.Rd man/X.Rd man/rmatrain.Rd man/fabatchaddon.Rd man/ratiog.Rd man/svabaaddon.Rd man/qunormtrain.Rd man/standardize.Rd

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.