This function extracts the box start and end positions for all spectra in an MSnExp object. The first box coordinates are not returned, as they corresond to either the full spectrum (for non-boxcar MS1 spectra) or the first start and last end box positions for a boxcar MS1 spectrum. See the MSnbaseBoxCar vignette for example code.

bc_boxes(x, offset = 0L, fcol = "filterString")

Arguments

x

An MSnExp object

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.

fcol

The name of the feature variable containing the box data. Default is filterString and is expected to be "FTMS + p NSI SIM msx ms [start_1-end_1, start_2-end_2, ..., start_n-end_n]" where start and end are box start and end positions.

Value

A list of data frames of length length(x) with start and end box values.