mzMatch: mz match withing a vector of mz values

View source: R/internal.R

mzMatchR Documentation

mz match withing a vector of mz values

Description

This function searches marches between a given mz and a vector of mz values with certain mass tolerance and returns the index of the matched values. It is used by identification functions to find candidates of each class of lipid based on full MS information.

Usage

mzMatch(mz, mzvector, ppm)

Arguments

mz

mz value to be matched

mzvector

vector of mz values

ppm

mass error tolerance

Value

Numeric vector indicating the index of matched mz values and ppms for each one of those matches (match1, ppm1, match2, ppm2, etc.)

Author(s)

M Isabel Alcoriza-Balaguer <maialba@alumni.uv.es>


LipidMS documentation built on March 18, 2022, 7:14 p.m.