Learn R Programming

RMassBank (version 2.0.0)

filterLowaccResults: Filter peaks with low accuracy

Description

Filters a peak table (with annotated formulas) for accuracy. Low-accuracy peaks are removed.

Usage

filterLowaccResults(peaks, mode="fine", filterSettings  = getOption("RMassBank")$filterSettings)

Arguments

peaks
A data frame with at least the columns mzFound and dppm.
mode
coarse or fine, see below.
filterSettings
Settings for filtering. For details, see documentation of analyzeMsMs

Value

A list(TRUE = goodPeakDataframe, FALSE = badPeakDataframe) is returned: A data frame with all peaks which are "good" is in return[["TRUE"]].

Details

In the coarse mode, mass tolerance is set to 10 ppm (above m/z 120) and 15 ppm (below m/z 120). This is useful for formula assignment before recalibration, where a wide window is desirable to accomodate the high mass deviations at low m/z values, so we get a nice recalibration curve.

In the fine run, the mass tolerance is set to 5 ppm over the whole mass range. This should be applied after recalibration.

See Also

analyzeMsMs, filterPeakSatellites

Examples

Run this code

# from analyzeMsMs:
## Not run: childPeaksFilt <- filterLowaccResults(childPeaksInt, filterMode)


Run the code above in your browser using DataLab