View source: R/construct_funcs.R
msiDataset | R Documentation |
msiDataset
returns a msi.dataset-class object. It
contains information about the matched peaks intensities, the geometrical
dimensions of the mass spectral image, and the common m/z values.
msiDataset(values, mz, rsize, csize, verbose = TRUE)
values |
numeric matrix containing the peaks intensities. Rows represent pixels and columns represent peaks. |
mz |
array of m/z peaks values. |
rsize |
geometric shape (number of rows) of image. |
csize |
geometric shape (number of columns) of image. |
verbose |
boolean (default = TRUE). Additional output. |
Function used to construct the main object msi.dataset-class
.
This object contains all the information about peaks intensities (intensity
matrix), the geometrical shape of the image (rows, columns), and the vector
of the common m/z values, generated during the peak matching process.
msi.dataset-class object.
Paolo Inglese p.inglese14@imperial.ac.uk
## Load package
library("SPUTNIK")
## Create the msi.dataset-class object
sz <- c(5, 4)
numIons <- 20
x <- matrix(rnorm(prod(sz) * numIons), prod(sz), numIons)
mz <- sort(sample(100, numIons))
msiX <- msiDataset(x, mz, sz[1], sz[2])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.