refMethod: Reference-based approach for batch adjustment

View source: R/refMethod.R

refMethodR Documentation

Reference-based approach for batch adjustment

Description

Batch adjustment by considering a measure relative to a reference sample

Usage

refMethod(Y, R1, R2)

Arguments

Y

data run in first or second batch, samples are rows and genes are columns. If correcting one batch only R1 is needed and would correspond to reference run in the same batch as Y, if calibrating one batch to the other Y represents the data from batch 2 and R1 would be reference run in batch 1 and R2 would be reference from batch 2

R1

reference data run in the first batch

R2

reference data run in the second batch

Value

The Y data adjusted calibrated to batch 1 (if two batches are presented) or the data with reference sample expression removed if only one data is provided

Author(s)

Aline Talhouk

Examples

set.seed(12)
A <- matrix(rnorm(120), ncol = 10)
B <- matrix(rnorm(80), ncol = 10)
C <- matrix(rnorm(50), ncol = 10)
refMethod(A, B, C)

TalhoukLab/nanostringr documentation built on Aug. 24, 2023, 7:49 p.m.