get_batch_matrix: Get the batch matrix for fitting batch effect correction.

View source: R/batch-effect-correction.R

get_batch_matrixR Documentation

Get the batch matrix for fitting batch effect correction.

Description

Get the batch matrix for fitting batch effect correction.

Usage

get_batch_matrix(batch = NULL, batch2 = NULL, covariates = NULL)

Arguments

batch

factor or vector indicating batches.

batch2

factor or vector indicating a second series of batches.

covariates

matrix or vector of numeric covariates to be adjusted for.

Details

Inspired by removeBatchEffect.

Value

a matrix for batch.


markgene/yamatClassifier documentation built on Oct. 14, 2024, 2:36 a.m.