getMzShift: Get mass shift for target mz

View source: R/getMzShift.R

getMzShiftR Documentation

Get mass shift for target mz

Description

Get mass shift for target mz

Usage

getMzShift(peaks, targetMz, tol, tolppm = FALSE, verbose = TRUE)

Arguments

peaks

List of MALDIquant::MassPeak

targetMz

Numeric, target mass

tol

Numeric, tolerance around targetMz

tolppm

Logical, tolerance supplied in ppm

verbose

Logical, print logs to the console.

Value

List with two entries: MzShift The mass shift for each spectrum specIdx The index of the spectra with a match for targetMz

Examples

data(Blank2022peaks)
getMzShift(Blank2022peaks, targetMz = 760.585, tol = 0.1, tolppm = FALSE)

MALDIcellassay documentation built on Sept. 11, 2024, 8:29 p.m.