filtermass {MGMS2}R Documentation

filtermass

Description

Internal function. This function removes peaks with their mass values (m/z values) outside a given mass range. This function is used in process_monospectra.

Usage

filtermass(spectra, mass.range)

Arguments

spectra

Mass Spectra (A MALDIquant MassSpectrum (S4) object). An output of importMzXml.

mass.range

Mass (m/z) range (a vector). For exmaple, c(1000,2200).

Value

A list of filtered mass spectra (MALDIquant MassSpectrum (S4) objects) which contains mass, intensity, and metaData.


[Package MGMS2 version 1.0.2 Index]