createSpectraFromSrmOrMrmMzML: Create Spectra object from mzML files (SRM or MRM technology)

View source: R/SpectraFromMzML.R

createSpectraFromSrmOrMrmMzMLR Documentation

Create Spectra object from mzML files (SRM or MRM technology)

Description

The function createSpectraFromSrmOrMrmMzML creates a (single) Spectra object from all mzML files found in path.

Usage

createSpectraFromSrmOrMrmMzML(path = ".")

Arguments

path

character, path to mzML files

Details

Depending on the technology the quantitative information will be stored in different lists within the mzML files. In case of selected reaction monitoring (SRM)- or multiple reaction monitoring (MRM)-derived files, the intensities and m/z values are stored in chromatogram entries within chromatogramList. The mzML files will be loaded via MSnbase::readSRMData and stored within a MChromatogram object.

The entries in the returned Spectra object are separable by Spectra$dataOrigin.

Value

Spectra object

Author(s)

Thomas Naake

Examples

path <- system.file("srm", package = "MsQualityUtils")
createSpectraFromSrmOrMrmMzML(path = path)

tnaake/MsQualityUtils documentation built on Feb. 3, 2023, 6:32 a.m.