Subset data based on specified range of mass values

mass_filter(ftmsObj)

Arguments

ftmsObj

an object of class 'peakData' or 'compoundData', typically a result of as.peakData or mapPeaksToCompounds.

Value

an object of class 'massFilt'

Details

Use this in conjunction with applyFilt to retain peaks which have a mass between min_mass and max_mass (inclusive) and filter all other peaks from the data.

Author

Lisa Bramer

Examples

data("examplePeakData")
filter_obj <- mass_filter(examplePeakData)
peakDataFiltered <- applyFilt(filter_obj, examplePeakData, min_mass=200, max_mass=900)