exportImzMl,MassSpectrum-method {MALDIquantForeign} | R Documentation |
Export to imzML files
Description
This function exports
MassSpectrum-class
objects into imzML files.
Usage
## S4 method for signature 'MassSpectrum'
exportImzMl(x, file, force=FALSE, processed=TRUE,
coordinates=NULL, pixelSize=c(100, 100), ...)
## S4 method for signature 'list'
exportImzMl(x, path, force=FALSE, processed=TRUE,
coordinates=NULL, pixelSize=c(100, 100), ...)
Arguments
x |
a |
file |
|
force |
|
processed |
|
coordinates |
|
pixelSize |
|
path |
|
... |
arguments to be passed to internal functions. |
Author(s)
Sebastian Gibb
References
https://strimmerlab.github.io/software/maldiquant/
Schramm T, Hester A, Klinkert I, Both J-P, Heeren RMA, Brunelle A,
Laprevote O, Desbenoit N, Robbe M-F, Stoeckli M, Spengler B, Roempp A
(2012)
imzML - A common data format for the flexible exchange and processing of mass
spectrometry imaging data.
Journal of Proteomics 75 (16):5106-5110.
doi:10.1016/j.jprot.2012.07.026
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 list of spectra
exportImzMl(s, path="processed.imzML", coordinates=cbind(x=1:2, y=c(1, 1)))
## End(Not run)