align_batches: Align features between batches

View source: R/batch_correction.R

align_batchesR Documentation

Align features between batches

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

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/notame documentation built on Sept. 14, 2024, 11:09 p.m.