exportMzMl,MassSpectrum-method {MALDIquantForeign} | R Documentation |
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 |
file |
|
force |
|
path |
|
... |
arguments to be passed to internal functions. |
Author(s)
Sebastian Gibb
References
https://strimmerlab.github.io/software/maldiquant/,
HUPO Proteomics Standards Inititative mzML 1.1.0 Specification:
https://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)
[Package MALDIquantForeign version 0.14.1 Index]