Featurelist: Generate a 'data.frame' with feature information from list of...

Description Usage Arguments Details Value Examples

Description

featureList generates a data.frame that contains feature ID, precurosur m/z and retention time for all features contained in a list of MS2spectrum objects as produced by extractMS2spectra and mergeSpecList. featureList is used internally by writeFeaturelist.

Usage

1
featureList(featlist)

Arguments

featlist

A list of MS2spectrum objects as produced by extractMS2spectra and mergeSpecList

Details

Although originally designed for lists of MS2spectrum objects, the function also works with lists of pseudospectrum objects. In this case, NA is given for precursor m/z.

Value

A data.frame that contains feature ID, precurosur m/z (if available) and retention time

Examples

1
2
3
4
5
load(file = system.file("extdata",
    "featlist.RData",
    package = "CluMSIDdata"))

pre_anno <- featureList(featlist)

CluMSID documentation built on Nov. 8, 2020, 7:46 p.m.