grabMzmlMS3 {RaMS}R Documentation

Extract the MS3 data from an mzML nodeset

Description

Extract the MS3 data from an mzML nodeset

Usage

grabMzmlMS3(xml_data, rtrange, file_metadata, incl_polarity)

Arguments

xml_data

An 'xml2' nodeset, usually created by applying 'read_xml' to an mzML file.

rtrange

A vector of length 2 containing an upper and lower bound on retention times of interest. Providing a range here can speed up load times (although not enormously, as the entire file must still be read) and reduce the final object's size.

file_metadata

Information about the file used to decode the binary arrays containing m/z and intensity information.

incl_polarity

Boolean determining whether the polarity of the scan should be returned as a column in the table (positive mode = 1, negative mode = -1)

Value

A 'data.table' with columns for retention time (rt), MS1 precursor m/z (prepremz), MS2 precursor m/z (premz), fragment m/z (fragmz), collision energy (voltage), and intensity (int).


[Package RaMS version 1.4.0 Index]