grabMzxmlBPC: Grab the BPC or TIC from a file

View source: R/grabMzxmlFunctions.R

grabMzxmlBPCR Documentation

Grab the BPC or TIC from a file

Description

The base peak intensity and total ion current are actually written into the mzXML files and aren't encoded, making retrieval of BPC and TIC information blazingly fast if parsed correctly.

Usage

grabMzxmlBPC(xml_data, TIC = FALSE, rtrange)

Arguments

xml_data

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

TIC

Boolean. If TRUE, the TIC is extracted rather than the BPC.

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.

Value

A 'data.table' with columns for retention time (rt), and intensity (int).


RaMS documentation built on Dec. 28, 2022, 2:26 a.m.