R/preprocessing_filtering_reduction.R
reduce_dim_batch_correction.RdReduce dimension with batch corrections
reduce_dim_batch_correction(scExp, mat, batch_list, n)
| scExp | SingleCellExperiment |
|---|---|
| mat | The normalized count matrix |
| batch_list | List of batches |
| n | Number of PCs to keep |
A list containing the SingleCellExperiment with batch info and the corrected pca