View source: R/functions-xcmsRaw.R
specPeaks | R Documentation |
Given a spectrum, identify and list significant peaks as determined by several criteria.
specPeaks(spec, sn = 20, mzgap = 0.2)
spec |
matrix with named columns |
sn |
minimum signal to noise ratio |
mzgap |
minimal distance between adjacent peaks, with smaller peaks being excluded |
Peaks must meet two criteria to be considered peaks: 1) Their s/n ratio must exceed a certain threshold. 2) They must not be within a given distance of any greater intensity peaks.
A matrix with columns:
mz |
m/z at maximum peak intensity |
intensity |
maximum intensity of the peak |
fwhm |
full width at half max of the peak |
Colin A. Smith, csmith@scripps.edu
getSpec
,
specNoise
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.