refMethod: Reference-based approach for batch adjustment

Description Usage Arguments Value Author(s) Examples

View source: R/refMethod.R

Description

Batch adjustment by considering a measure relative to a reference sample

Usage

1
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

1
2
3
4
5
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)

nanostringr documentation built on Feb. 6, 2021, 5:05 p.m.