batchCorrection: Batch-correction for CyTOF data

View source: R/batchCorrection.R

batchCorrectionR Documentation

Batch-correction for CyTOF data

Description

batchCorrection takes an SCE object returned by prepSCE and performs batch correction using Harmony. Down-sampling is done prior to batch correction for improving speed.

Usage

batchCorrection(sce, maxN = 1e+05, seed = 12345)

Arguments

sce

A SingleCellExperiment object. colData(sce) must contain file_name and batch columns.

maxN

Numeric. Specifies the maximum number of unique cells per batch. For example, if one batch contains five samples, the function randomly takes maxN/5 cells from each of the samples.

seed

Numeric. Sets a random seed.

Value

A SingleCellExperiment-class object.


casanova-lab/iMUBAC documentation built on Sept. 13, 2022, 6:36 p.m.