ms1ms2Match: Title When mz and rt are given, find the matched MSMS.

Description Usage Arguments Value Examples

View source: R/ms1ms2Match.R

Description

Title When mz and rt are given, find the matched MSMS.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
ms1ms2Match(
  mz,
  tr,
  ms1DeltaMZ,
  deltaTR,
  mgfMatrix,
  mgfData,
  ms2Mode,
  diaMethod = "NA"
)

Arguments

mz,

m/z

tr,

retention time

ms1DeltaMZ,

the tolerence of m/z

deltaTR,

the tolerence of retention time

mgfMatrix,

a matrix containing the information of mgf

mgfData,

a data containing the information of mgf

ms2Mode,

the mode of MS2 acquisition, ida or dia

diaMethod,

if the ms2Mode is dia, a txt file containing dia method.

Value

matchedMS2

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
load(system.file("extdata/testData", "mgfMatrixTest.rda", package = "MetEx"))
load(system.file("extdata/testData", "mgfDataTest.rda", package = "MetEx"))
matchedMS2 <- ms1ms2Match(mz = 118.0106,
                          tr = 120,
                          ms1DeltaMZ = 0.01,
                          deltaTR = 12,
                          mgfMatrix = mgfMatrixTest,
                          mgfData = mgfDataTest,
                          ms2Mode = "ida",
                          diaMethod = "NA")

zhengfj1994/MeTEA documentation built on June 29, 2021, 5:21 a.m.