extractIntensity: Extract intensity using peaks as template

View source: R/extractIntensity.R

extractIntensityR Documentation

Extract intensity using peaks as template

Description

Extract intensity using peaks as template

Usage

extractIntensity(mz, peaks, spec, tol)

Arguments

mz

numeric, mz values to be extracted from the peaks/spectra

peaks

MALDIquant::MassPeaks list

spec

MALDIquant::MassSpectrum list

tol

numeric, tolerance in Da

Value

MALDIquant::MassPeaks list with extracted intensities from spec at m/z of peaks = pseudo peaks. Useful in combination with sdMassSpectrum to get standard deviation of peaks as intensity matrix.

Examples

data(Blank2022peaks)
data(Blank2022spec)

int <- extractIntensity(mz = c(409, 423, 440), 
                        peaks = Blank2022peaks, 
                        spec = Blank2022spec, 
                        tol = 0.2)
head(int)

CeMOS-Mannheim/MALDIcellassay documentation built on Jan. 24, 2025, 11:17 p.m.