findPatterns: findPatterns

Description Usage Arguments Value

View source: R/Functions_Spectra.R

Description

find mz patterns in a list of spectra

Usage

1
findPatterns(speclist, patterns, ppm = 5, mzdiff = 0)

Arguments

speclist

list of spectra (matrices, all with two columns: mz and intensity)

patterns

a named list of patterns (numeric vectors of mz values to look for)

ppm

min difference between peaks in ppm

mzdiff

min difference between peaks in m/z

Value

a list (same length as speclist) of logical vectors specifying if patterns are matched


mjhelf/MassTools documentation built on Nov. 19, 2021, 2:38 a.m.