ComBat_data: Batch Correction using ComBat

Description Usage Arguments Value

View source: R/ComBat_data.R

Description

Corrects the gene expression data for a particular batch using ComBat algorithm

Usage

1
ComBat_data(expr, batch.info, batch = "Batch", NameString = "", cond = "")

Arguments

expr

gene expression data to be corrected for batch effects. Rows should be genes and columns should be samples.

batch.info

A data frame containing batch information corresponding to the gene expression dataset,the first column should be sample names and the second column should contain the batch the sample belongs to.

batch

The title of the batch for which you want to evaluate and do the correction. Default = "Batch"

NameString

String that will be added to the names of all output files. Default=NA.

cond

The column name in the batch.info data which denotes biological condition, if there are any to be considered for batch correction.If cond="", there is no biological condition to be considered for ComBat.

Value

Returns a matrix containing the batch corrected values for gene expression.


jankinsan/BatchEC documentation built on Sept. 9, 2021, 8:12 p.m.