bc_groups: Define boxcar groups

Description Usage Arguments Value Author(s)

View source: R/boxcar.R

Description

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.

Usage

1
bc_groups(x, bc_groups = "bc_groups", fcol = "filterString")

Arguments

x

An MSnExp object containing a set of boxcar spectra.

bc_groups

character(1) indicating the feature variable in which to store the BoxCar groups. Default is bc_groups.

fcol

character(1) indicating the name of the feature variable containing the box data. Default is filterString. See the bc_boxes() function for details.

Value

A numeric of length length(x) with the boxcar groups.

Author(s)

Laurent Gatto


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