mz_rt_match: mz_rt_match

Description Usage Arguments Value Author(s) Examples

View source: R/mz_rt_match.R

Description

Match peaks according to m/z and RT.

Usage

1
2
3
4
5
6
7
mz_rt_match(
  data1,
  data2,
  mz.tol,
  rt.tol = 30,
  rt.error.type = c("relative", "abs")
)

Arguments

data1

First data for matching, first column must be mz and seconod column must be rt.

data2

Second data for matching, first column must be mz and seconod column must be rt.

mz.tol

mz tol for ms1 and ms2 data matching.

rt.tol

RT tol for ms1 and ms2 data matching.

rt.error.type

RT error is calculated with relative or absolute.

Value

Return a result which give the matching result of data1 and database.

Author(s)

Xiaotao Shen shenxt1990@outlook.com

Examples

1
2
3
data1 <- data.frame(mz = 1:10, rt = 1:10)
data2 <- data.frame(mz = 1:10, rt = 1:10)
mz_rt_match(data1, data2, mz.tol = 10)

tidymass/tinytools documentation built on Jan. 2, 2022, 5:18 p.m.