Learn R Programming

Cardinal (version 1.4.0)

imageData-methods: Retrieve Image Data from iSets

Description

These generic functions image data (typically spectra) stored in an object derived from iSet.

Usage

imageData(object) imageData(object) <- value iData(object) iData(object) <- value
spectra(object, ...) spectra(object) <- value
peaks(object, ...) peaks(object) <- value
mzData(object) mzData(object) <- value
peakData(object) peakData(object) <- value

Arguments

object
An object, possible derived from iSet.
value
Value to be assigned to the corresponding object.
...
Additional arguments (ignored).

Value

imageData returns an object containing both image data and metadata, usually an object derived from ImageData. iData returns only the image data in a matrix-like object with the rows corresponding to features and the columns corresponding to pixels. spectra is an alias for iData for use with MSImageSet objects. mzData and peakData are used for retrieving both peak data and metadata from peak-picked objects. peaks retrieves peak cubes from peak-picked objects.

See Also

iSet, SImageSet, MSImageSet