MSDataCachedConsumer#

class pyopenms.MSDataCachedConsumer#

Bases: object

Cython implementation of _MSDataCachedConsumer

Original C++ documentation is available here

Transforming and cached writing consumer of MS data

Is able to transform a spectrum on the fly while it is read using a function pointer that can be set on the object. The spectra is then cached to disk using the functions provided in CachedMzMLHandler.

__init__()#

Overload:

__init__(self, filename: bytes | str | String) None

Overload:

__init__(self, filename: bytes | str | String, clear: bool) None

Methods

__init__

Overload:

consumeChromatogram(self, c)

Write a chromatogram to the output file

consumeSpectrum(self, s)

Write a spectrum to the output file

setExpectedSize(self, expectedSpectra, ...)

setExperimentalSettings(self, exp)

consumeChromatogram(self, c: MSChromatogram) None#

Write a chromatogram to the output file

May delete data from chromatogram (if clearData is set)

consumeSpectrum(self, s: MSSpectrum) None#

Write a spectrum to the output file

May delete data from spectrum (if clearData is set)

setExpectedSize(self, expectedSpectra: int, expectedChromatograms: int) None#
setExperimentalSettings(self, exp: ExperimentalSettings) None#