importImzMl | R Documentation |
This function imports files in imzML file format
into MassSpectrum-class
or
MassPeaks-class
objects.
importImzMl(path, coordinates = NULL, ...)
path |
|
coordinates |
|
... |
arguments to be passed to
|
a list
of MassSpectrum-class
or
MassPeaks-class
objects (depending on the
centroided
argument).
Sebastian Gibb
https://strimmerlab.github.io/software/maldiquant/,
Definition of imzML
format:
https://ms-imaging.org/imzml/
MassSpectrum-class
,
MassPeaks-class
library("MALDIquant")
library("MALDIquantForeign")
## get example directory
exampleDirectory <- system.file("exampledata", package="MALDIquantForeign")
## import
s <- importImzMl(file.path(exampleDirectory, "tiny_continuous.imzML"))
## import only spectra for pixel 1,1 and 2,1
s <- importImzMl(file.path(exampleDirectory, "tiny_continuous.imzML"),
coordinates = cbind(1:2, c(1, 1)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.