Align different batch peaks tables.

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

Xiaotao Shen shenxt1990@outlook.com

Examples

if (FALSE) {
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
}