ThermoRawFile#

class pyopenms.ThermoRawFile#

Bases: object

Load Thermo RAW spectra and metadata for mzML export

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

Methods

__init__()

endProgress([bytes_processed])

Ends the progress display

getLogType()

Returns the type of progress log being used

getOptions()

Returns a copy of the current loading options

load(filename, experiment)

Loads a Thermo RAW file into an MSExperiment

nextProgress()

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

setLogType(type)

Sets the progress log that should be used.

setOptions(options)

Sets the loading options

setProgress(value)

Sets the current progress

startProgress(begin, end, label)

transform(filename, consumer)

Streams a Thermo RAW file into a consumer, one spectrum at a time.

endProgress(bytes_processed: int = 0) → None#

Ends the progress display

getLogType() → pyopenms.ProgressLogger.LogType#

Returns the type of progress log being used

getOptions() → pyopenms.ThermoRawFileOptions#

Returns a copy of the current loading options

load(filename: str, experiment: pyopenms.MSExperiment) → None#

Loads a Thermo RAW file into an MSExperiment

nextProgress() → None#

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

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

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

setOptions(options: pyopenms.ThermoRawFileOptions) → None#

Sets the loading options

setProgress(value: int) → None#

Sets the current progress

startProgress(begin: int, end: int, label: str) → None#
transform(filename: str, consumer: object) → None#

Streams a Thermo RAW file into a consumer, one spectrum at a time.

The consumer is a Python object with the methods setExpectedSize(nr_spectra, nr_chromatograms), setExperimentalSettings(settings), consumeSpectrum(spectrum) and consumeChromatogram(chromatogram) (as for MzMLFile.transform). The spectra are the ones load() would return with the same options.