rtmsPeakList {rtms}R Documentation

Create a list of RTMS m/z peak objects

Description

Generates a list of objects of class rtmsPeak which can be used to extract a sample or sample set from other RTMS objects.

Usage

rtmsPeakList(values, peakWidth = 0.1, windowWidth = NULL)

Arguments

values

The m/z values that the peaks is intended to measure

peakWidth

The width of each peak centered on values. If a single numeric value, the lower bound of each peak will lie peakWidth/2 below the given m/z value ,and the upper bound will lie peakWidth/2 above it. If a vectorof two numeric values, the first value specifies how far below each given m/z value the lower bounds lie, and the second value specifies how far above each value the upper bounds lie.

windowWidth

The width of each optional wider window around the m/z values used to show the peaks in context. Operates by the same principles as peakWidth with a single value split evenly between lower and upper bounds, and two values specifying how far below and above the m/z values each bound lies.

Value

A list of objects of class rtmsPeak

Examples

peaks <- rtmsPeakList(c(1516.83,1530.84),peakWidth=0.2,windowWidth = c(5,10))
names(peaks) <- c("Product","Substrate")

[Package rtms version 0.2.0 Index]