MSImagingExperiment#

class pyopenms.MSImagingExperiment(*args, **kwargs)#

Bases: object

In-memory model for a 2D imaging mass spectrometry dataset.

Owns an MSExperiment (spectra) and an MSImagingGeometry (pixel grid + pixel -> spectrum index mapping). Provides pixel-based spectrum access and a simple sum-based ion image extraction.

__init__(self) → None#
__init__(self, exp: pyopenms._pyopenms_experiment.MSExperiment) → None
__init__(self, arg: pyopenms._pyopenms_experiment.MSImagingExperiment, /) → None

Overloaded function.

  1. __init__(self) -> None

  2. __init__(self, exp: pyopenms._pyopenms_experiment.MSExperiment) -> None

Wrap an MSExperiment with an empty geometry.

  1. __init__(self, arg: pyopenms._pyopenms_experiment.MSImagingExperiment, /) -> None

Attributes

extractIonImage

getGeometry

Returns a copy of the imaging geometry

getMSExperiment

Returns a copy of the owned MSExperiment

getNumberOfPixels

getNumberOfSpectra

getRegionSpectrumIndices

getSpectrum

Returns a copy of the spectrum at pixel (x, y)

hasPixel

setGeometry

setMSExperiment

Replaces the owned MSExperiment without touching the geometry.

setSpectrum

Replaces the spectrum at pixel (x, y)

validate

extractIonImage#
getGeometry#

Returns a copy of the imaging geometry

getMSExperiment#

Returns a copy of the owned MSExperiment

getNumberOfPixels#
getNumberOfSpectra#
getRegionSpectrumIndices#
getSpectrum#

Returns a copy of the spectrum at pixel (x, y)

hasPixel#
setGeometry#
setMSExperiment#

Replaces the owned MSExperiment without touching the geometry.

setSpectrum#

Replaces the spectrum at pixel (x, y)

validate#