readMzXmlFile: Reads mass spectrometry data in mzXML format.

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/readMzXmlFile-functions.R

Description

Reads mass spectrometry data in mzXML format defined in http://tools.proteomecenter.org/mzXMLschema.php.

Usage

1
readMzXmlFile(mzXmlFile, removeMetaData = FALSE, verbose = FALSE)

Arguments

mzXmlFile

character, path to mzXML file which should be read.

removeMetaData

logical, to save memory metadata could be deleted.

verbose

logical, verbose output?

Value

A list of spectra and metadata.

Author(s)

Sebastian Gibb [email protected]

References

Definition of mzXML format: http://tools.proteomecenter.org/mzXMLschema.php

See Also

readMzXmlDir, importMzXml

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
## load library
library("readMzXmlData")

## get examples directory
exampleDirectory <- system.file("Examples", package="readMzXmlData")

## read example spectrum
spec <- readMzXmlFile(file.path(exampleDirectory, "A1-0_A1.mzXML"))

## print metaData
print(spec$metaData)

## plot spectrum
plot(spec$spectrum$mass, spec$spectrum$intensity, type="l")

sgibb/readMzXmlData documentation built on May 29, 2019, 8:04 p.m.