This function takes an MSnExp
as input and defines the boxcar
groups, i.e. the set of boxcar spectra that match the same full
MS1 spectrum. Grouping for full (non-boxcar) spectra are set the
NA
. Note that the presence of full (non-boxcar) spectra is
required to define the groups, and it is assumed that boxcar
spectra following a full MS1 spectrum below to the same group. The
output of this function is best used to create a new feature
variable column used when merging boxcar spectra. See the
MSnbaseBoxCar vignette for example code.
bc_groups(x, bc_groups = "bc_groups", fcol = "filterString")
x | An |
---|---|
bc_groups |
|
fcol |
|
A numeric
of length length(x)
with the boxcar groups.