subtractPeaks.msimat: Remove peaks from an msimat object within specified mass...

Description Usage Arguments Value See Also

View source: R/subtractPeaks.msimat.R

Description

Remove peaks, e.g. known contaminants, from an msimat object. The peaks are specified by their m/z values, and peak intensities are not taken into account. Mass accuracies (expressed as ppm values) for both the msimat dataset and the removal peaklist must be specified, and will be used to determine the margin of error for excluding a given peak.

Usage

1
2
## S3 method for class 'msimat'
subtractPeaks(input, vec, ppm1, ppm2)

Arguments

input

numeric; msimat object containing peaks to be removed

vec

numeric; List of peaks to be removed from d

ppm1

numeric; Mass accuracy for peaklist v1, in ppm

ppm2

numeric; Mass accuracy for peaklist v2, in ppm

Value

msimat object

See Also

subtractPeaks.numeric

filterPeaks


kbseah/mass2adduct documentation built on June 9, 2021, 9:20 p.m.