extractIntensity {MALDIcellassay}R 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)

[Package MALDIcellassay version 0.4.47 Index]