Performs batch effect adjustment using the parametric version of ComBat and additionally returns information necessary for addon batch effect adjustment with ComBat.
combatba(x, batch)
matrix. The covariate matrix. Observations in rows, variables in columns.
factor. Batch variable. Each factor level (or 'category') corresponds to one of the batches. For example, if there are four batches, this variable would have four factor levels and observations with the same factor level would belong to the same batch.
combatba
returns an object of class combat
.
An object of class "combat
" is a list containing the following components:
matrix of adjusted (training) data
vector containing the overall means of the variables. Used in addon adjustment.
vector containing the pooled variances of the variables. Used in addon adjustment.
batch variable
number of batches
Johnson, W. E., Rabinovic, A., Li, C. (2007). Adjusting batch effects in microarray expression data using empirical bayes methods. Biostatistics 8:118-127, <10.1093/biostatistics/kxj037>.
Luo, J., Schumacher, M., Scherer, A., Sanoudou, D., Megherbi, D., Davison, T., Shi, T., Tong, W., Shi, L., Hong, H., Zhao, C., Elloumi, F., Shi, W., Thomas, R., Lin, S., Tillinghast, G., Liu, G., Zhou, Y., Herman, D., Li, Y., Deng, Y., Fang, H., Bushel, P., Woods, M., Zhang, J. (2010). A comparison of batch effect removal methods for enhancement of prediction performance using maqc-ii microarray gene expression data. The Pharmacogenomics Journal 10:278-291, <10.1038/tpj.2010.57>.
# NOT RUN {
data(autism)
combatba(x=X, batch=batch)
# }
Run the code above in your browser using DataLab