View source: R/extractIntensity.R
extractIntensity | R Documentation |
Extract intensity using peaks as template
extractIntensity(mz, peaks, spec, tol)
mz |
numeric, mz values to be extracted from the peaks/spectra |
peaks |
MALDIquant::MassPeaks list |
spec |
MALDIquant::MassSpectrum list |
tol |
numeric, tolerance in Da |
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.
data(Blank2022peaks)
data(Blank2022spec)
int <- extractIntensity(mz = c(409, 423, 440),
peaks = Blank2022peaks,
spec = Blank2022spec,
tol = 0.2)
head(int)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.