Takes an MS experiment with boxcar spectra and sets any peak outside of the boxes (+/- an optional offset) to zero. If the spectrum is a fill, non-boxcar spectrum, it is left as is. See the MSnbaseBoxCar vignette for example code.

bc_zero_out_box(x, offset = 0L)

Arguments

x

x An MSnExp object containing a set of boxcar spectra.

offset

numeric(1) defining the offset to remove/add to the start/end of the box. Default is 0, i.e. to leave them as is.

Value

An object of class Spectra with processed spectra.