Description Usage Arguments Value Examples
View source: R/batch_correction.R
Computes Bhattacharyya distance between all pairs of batches after projecting the samples into PCA space with pcaMethods::pca
1 2 | pca_bhattacharyya_dist(object, batch, all_features = FALSE,
center = TRUE, scale = "uv", nPcs = 3, ...)
|
object |
a MetaboSet object |
batch |
column name of pData givinh the batch labels |
matrix of Bhattacharyya distances between batches
1 2 3 4 5 | # Batch correction
batch_corrected <- normalize_batches(merged_sample, batch = "Batch", group = "QC", ref_label = "QC")
# Evaluate batch correction
pca_bhattacharyya_dist(merged_sample, batch = "Batch")
pca_bhattacharyya_dist(batch_corrected, batch = "Batch")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.