Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

exportMzMl-methods

Export to mzML files


Description

This function exports MassSpectrum-class objects into mzML files.

Usage

## S4 method for signature 'MassSpectrum'
exportMzMl(x, file, force=FALSE, ...)

## S4 method for signature 'list'
exportMzMl(x, path, force=FALSE, ...)

Arguments

x

a MassSpectrum-class object or a list of MassSpectrum-class objects.

file

character, file name.

force

logical, If TRUE the file would be overwritten or path would be created.

path

character, path to directory in which the list of MassSpectrum-class would be exported. If path is a single filename all spectra will be exported to a single mzML file.

...

arguments to be passed to internal functions.

Author(s)

Sebastian Gibb

References

http://strimmerlab.org/software/maldiquant/,
HUPO Proteomics Standards Inititative mzML 1.1.0 Specification: http://www.psidev.info/mzml

See Also

Examples

## Not run: 
library("MALDIquant")
library("MALDIquantForeign")

s <- list(createMassSpectrum(mass=1:5, intensity=1:5),
          createMassSpectrum(mass=1:5, intensity=1:5))

## export a single spectrum
exportMzMl(s[[1]], file="spectrum.mzML")

## export a list of spectra
exportMzMl(s, path="spectra.mzML")

## End(Not run)

MALDIquantForeign

Import/Export Routines for 'MALDIquant'

v0.12
GPL (>= 3)
Authors
Sebastian Gibb [aut, cre] (<https://orcid.org/0000-0001-7406-4443>), Pietro Franceschi [ctb]
Initial release
2019-01-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.