bc_zero_out_box: Set peaks outside of boxes to zero

Description Usage Arguments Value Author(s)

View source: R/boxcar.R

Description

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.

Usage

1

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.

Author(s)

Laurent Gatto


lgatto/MSnbaseBoxCar documentation built on May 14, 2020, 9:12 p.m.