dobc: Batch correction

Description Usage Arguments Value Examples

View source: R/batch_correction.R

Description

"Basic" batch correction by median? from BatchCorrMetabolomics::doBC

Usage

1
dobc(object, batch, ref, ref_label, ...)

Arguments

object

a MetaboSet object

batch

the column name for batch labels

ref

the column name for reference sample labels

ref_label

the label for reference samples

...

other parameters pased to doBC

Value

a MetaboSet object with the corrected abundances

Examples

1
2
3
4
batch_corrected <- dobc(merged_sample, batch = "Batch", ref = "QC", ref_label = "QC")
# Evaluate batch correction
pca_bhattacharyya_dist(merged_sample, batch = "Batch")
pca_bhattacharyya_dist(batch_corrected, batch = "Batch")

antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.