align_batch: align_batch

View source: R/align_batch.R

align_batchR Documentation

align_batch

Description

Align different batch peaks tables.

Usage

align_batch(
  x,
  y,
  combine.mz.tol = 25,
  combine.rt.tol = 30,
  use.int.tol = FALSE,
  return_index = FALSE
)

Arguments

x

A mass_dataset object

y

A mass_dataset object

combine.mz.tol

m/z tolerance for batch alignment, default is 25 ppm.

combine.rt.tol

RT tolerance for batch alignment, default is 30 seconds.

use.int.tol

Whether use intensity match for batch alignment.

return_index

return index or new object.

Value

A index table or a new mass_dataset object.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

## Not run: 
data(object1, package = "demodata")
data(object2, package = "demodata")

object1
object2

x = object1
y = object2

match_result =
  align_batch(x = object1, y = object2, return_index = TRUE)

head(match_result)

new_object =
  align_batch(x = object1, y = object2, return_index = FALSE)

new_object

## End(Not run)

tidymass/masscleaner documentation built on Sept. 4, 2023, 3:21 a.m.