Dulce_MS2SpectraExtract: MS/MS Spectra Extraction

View source: R/AnnotateMS2.r

Dulce_MS2SpectraExtractR Documentation

MS/MS Spectra Extraction

Description

This function looks into an MSnBase object and extracts all MS/MS spectra related to MS1 features defined in the "annotations" object. It uses the featureSpectra() function.

Usage

Dulce_MS2SpectraExtract(data, features, annotations)

Arguments

data

MSnBase original data object. It must have msLevel=2 spectra.

features

XCMSnExp object with msLevel=1 and featured defined.

annotations

features annotated data.frame with mz values column.

Value

This function returns a MSpectra object with all msLevel=2 spectra associated with the features annotated data.frame.


margotbligh/Dulce documentation built on May 15, 2022, 10:51 a.m.