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)
x | x An |
---|---|
offset |
|
An object of class Spectra
with processed spectra.