Skip to contents

Removes batch effects from the data matrices using the specified batch column in the metadata.

Usage

remove_batch_effect(
  datas,
  metas,
  meta_batch_column,
  meta_batch2_column,
  condition
)

Arguments

datas

A list of matrices.

metas

A list of metadata corresponding to the data matrices.

meta_batch_column

A character string specifying the meta batch column.

meta_batch2_column

A character string specifying the second meta batch column.

condition

A character vector of length 1, specifying the column name of the meta dataframe, that contains the levels that separate the experiment.

Value

A list of matrices with batch effects removed where applicable.