exportMsd,MassSpectrum-method | R Documentation |
This function exports
AbstractMassObject-class
objects (e.g.
MassSpectrum-class
,
MassPeaks-class
)
into mMass MSD files.
## S4 method for signature 'MassSpectrum'
exportMsd(x, file, force=FALSE, peaks, ...)
## S4 method for signature 'list'
exportMsd(x, path, force=FALSE, peaks, ...)
x |
a |
file |
|
force |
|
peaks |
a |
path |
|
... |
arguments to be passed to |
Sebastian Gibb
https://strimmerlab.github.io/software/maldiquant/,
mMass homepage: http://mmass.org/
MassPeaks-class
,
MassSpectrum-class
## Not run:
library("MALDIquant")
library("MALDIquantForeign")
s <- list(createMassSpectrum(mass=1:5, intensity=1:5),
createMassSpectrum(mass=1:5, intensity=1:5))
p <- list(createMassPeaks(mass=4:5, intensity=4:5, snr=1:2),
createMassPeaks(mass=4:5, intensity=4:5, snr=1:2))
## export a single spectrum
exportMsd(s[[1]], file="spectrum.msd")
## export a single spectrum with corresponding peaks
exportMsd(s[[1]], file="spectrum.msd", peaks=p[[1]])
## export a list of spectra with corresponding peaks
exportMsd(s, path="spectra", peaks=p, force=TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.