CachedMzMLHandler#

class pyopenms.CachedMzMLHandler#

Bases: ProgressLogger

An class that uses on-disk caching to read and write spectra and chromatograms

__init__() → None#
__init__(arg: pyopenms.CachedMzMLHandler, /) → None

Methods

__init__()

createMemdumpIndex(filename)

Create an index on the location of all the spectra and chromatograms

endProgress([bytes_processed])

Ends the progress display

getChromatogramIndex()

Returns the byte offsets of the chromatograms in the cached file

getLogType()

Returns the type of progress log being used

getSpectraIndex()

Returns the byte offsets of the spectra in the cached file

nextProgress()

Increment progress by 1 (according to range begin-end)

readMemdump(filename)

Read all spectra from a dump from the disk

setLogType(type)

Sets the progress log that should be used.

setProgress(value)

Sets the current progress

startProgress(begin, end, label)

writeMemdump(exp, out)

Write complete spectra as a dump to the disk

writeMetadata(exp, out_meta[, addCacheMetaValue])

Write only the meta data of an MSExperiment

Attributes

CMD = 0#
GUI = 1#
NONE = 2#
createMemdumpIndex(filename: str) → None#

Create an index on the location of all the spectra and chromatograms

endProgress(bytes_processed: int = 0) → None#

Ends the progress display

getChromatogramIndex() → list[int]#

Returns the byte offsets of the chromatograms in the cached file

getLogType() → pyopenms.ProgressLogger.LogType#

Returns the type of progress log being used

getSpectraIndex() → list[int]#

Returns the byte offsets of the spectra in the cached file

nextProgress() → None#

Increment progress by 1 (according to range begin-end)

readMemdump(filename: str) → pyopenms.MSExperiment#

Read all spectra from a dump from the disk

setLogType(type: pyopenms.ProgressLogger.LogType) → None#

Sets the progress log that should be used. The default type is NONE!

setProgress(value: int) → None#

Sets the current progress

startProgress(begin: int, end: int, label: str) → None#
writeMemdump(exp: pyopenms.MSExperiment, out: str) → None#

Write complete spectra as a dump to the disk

writeMetadata(exp: pyopenms.MSExperiment, out_meta: str, addCacheMetaValue: bool = False) → None#

Write only the meta data of an MSExperiment