Reduce dimension with batch corrections

reduce_dim_batch_correction(scExp, mat, batch_list, n)

Arguments

scExp

SingleCellExperiment

mat

The normalized count matrix

batch_list

List of batches

n

Number of PCs to keep

Value

A list containing the SingleCellExperiment with batch info and the corrected pca