align_batches: Align features between batches

Description Usage Arguments Value

View source: R/batch_correction.R

Description

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.

Usage

1
2
align_batches(object_na, object_fill, batch, mz, rt, mzdiff, rtdiff,
  plot_folder = NULL)

Arguments

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

Value

a MetaboSet object with the aligned features


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