exportMzMl,MassSpectrum-method | R Documentation |
This function exports
MassSpectrum-class
objects into mzML files.
## S4 method for signature 'MassSpectrum'
exportMzMl(x, file, force=FALSE, ...)
## S4 method for signature 'list'
exportMzMl(x, path, force=FALSE, ...)
x |
a |
file |
|
force |
|
path |
|
... |
arguments to be passed to internal functions. |
Sebastian Gibb
https://strimmerlab.github.io/software/maldiquant/,
HUPO Proteomics Standards Inititative mzML 1.1.0 Specification:
https://www.psidev.info/mzML
MassSpectrum-class
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.