View source: R/batch_correction.R
align_batches | R Documentation |
Aligns features with m/z or retention time shift between batches using alignBatches from batchCorr package. See more details in the help file and the original paper.
align_batches(
object_na,
object_fill,
batch,
mz,
rt,
mzdiff,
rtdiff,
plot_folder = NULL
)
object_na |
a MetaboSet object with missing values as NA |
object_fill |
a similar MetaboSet object with imputed values (used to compute distances between features, can contain missing values as well) |
batch |
character, column name of pData with batch labels |
mz , rt |
column names of m/z and retention time columns in fData |
mzdiff , rtdiff |
the windows for m/z and retention time for aligning features |
plot_folder |
path to the location where the plots should be saved, if NULL, no plots are saved |
a MetaboSet object with the aligned features
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.