Skip to contents

Combines two massSight objects, resulting in a single MergedMSObject.

Usage

auto_combine(
  ms1,
  ms2,
  rt_lower = -0.5,
  rt_upper = 0.5,
  mz_lower = -15,
  mz_upper = 15,
  minimum_intensity = 1000,
  iso_method = "manual",
  eps = 0.1,
  rt_iso_threshold = 0.5,
  mz_iso_threshold = 5,
  threshold = "manual",
  match_method = "unsupervised",
  smooth_method = "loess",
  multipliers = c(6, 6, 6),
  weights = c(1, 1, 1),
  keep_features = c(F, F)
)

Arguments

ms1

A massSight object representing the results of a preprocessed LC-MS experiment.

ms2

A massSight object representing the results of a second preprocessed LC-MS experiment.

rt_lower

A numeric indicating the lower bound of the RT range to be considered for aligning two metabolites.

rt_upper

A numeric indicating the upper bound of the RT range to be considered for aligning two metabolites.

mz_lower

A numeric indicating the lower bound of the m/z range to be considered for aligning two metabolites.

mz_upper

A numeric indicating the upper bound of the m/z range to be considered for aligning two metabolites.

minimum_intensity

A numeric indicating the minimum intensity to be considered for alignment.

rt_iso_threshold

A numeric indicating the simplification parameter for RT.

mz_iso_threshold

A numeric indicating the simplification parameter for m/z.

match_method

A character indicating the initial matching method to be used to detect inter-batch variability. Options are "unsupervised" and "supervised".

smooth_method

A character indicating the smoothing method to be used. Options are "lowess", "spline", and "gaussian".

multipliers

A numeric vector indicating the multipliers to be used for the alignment.

weights

A numeric vector indicating the weights to be used for the alignment.

keep_features

A logical vector indicating whether or not to keep features that are not matched.

Value

A data frame containing the combined data.