rtmsPeak {rtms} | R Documentation |
Create an RTMS m/z Peak Object
Description
Generates an object of class rtmsPeak
which contains the m/z values
bounding a spectrometric peak to be measured. A peak object specifies not
only the m/z value at the cetner of the peak, but the upper and lower bounds
within which the peak is to be quantified; it also may optionally include
wider upper and lower bounds used to plot the peak in a wider context of the
spectrum.
Usage
rtmsPeak(
value,
peakWidth = 0.1,
windowWidth = NULL,
bounds = NULL,
window = NULL
)
Arguments
value |
The m/z value that the peak is intended to measure |
peakWidth |
The width of the peak centered on |
windowWidth |
The width of the optional wider window around |
bounds |
If not null, a two-value numeric vector specifying the lower
and upper m/z bounds of the measured peak. One of |
window |
If not null, a two-value numeric vector specifying the lower
and upper m/z bounds of the wider context window of the peak. If |
Value
An object of class rtmsPeak
, used by RTMS functions to extract
and measure peaks from mass spectra.
Examples
peaks <- rtmsPeak(1516.83,peakWidth=0.2,windowWidth = c(5,10))