Learn R Programming

MALDIcellassay (version 0.4.47)

extractIntensity: Extract intensity using peaks as template

Description

Extract intensity using peaks as template

Usage

extractIntensity(mz, peaks, spec, tol)

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.

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

Examples

Run this code
data(Blank2022peaks)
data(Blank2022spec)

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

Run the code above in your browser using DataLab