Learn R Programming

nanostringr (version 0.6.0)

refMethod: Reference-based approach for batch adjustment

Description

Batch adjustment by considering a measure relative to a reference sample

Usage

refMethod(Y, R1, R2)

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

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

Author

Aline Talhouk

Examples

Run this code
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)

Run the code above in your browser using DataLab