MSImagingExperiment#
- class pyopenms.MSImagingExperiment(*args, **kwargs)#
Bases:
objectIn-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.
__init__(self) -> None__init__(self, exp: pyopenms._pyopenms_experiment.MSExperiment) -> None
Wrap an MSExperiment with an empty geometry.
__init__(self, arg: pyopenms._pyopenms_experiment.MSImagingExperiment, /) -> None
Attributes
Returns a copy of the imaging geometry
Returns a copy of the owned MSExperiment
Returns a copy of the spectrum at pixel (x, y)
Replaces the owned MSExperiment without touching the geometry.
Replaces the spectrum at pixel (x, y)
- 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#