MzXMLFile#

class pyopenms.MzXMLFile#

Bases: XMLFile

File adapter for MzXML files

Provides methods to load and store MzXML files. MzXML is an older format; for new projects consider using MzML instead.

Usage:

exp = MSExperiment()
MzXMLFile().load("test.mzXML", exp)
__init__() → None#
__init__(arg: pyopenms.MzXMLFile, /) → None

Methods

__init__()

endProgress([bytes_processed])

Ends the progress display

getLogType()

Returns the type of progress log being used

getOptions()

Returns the options for loading/storing

getVersion()

Return the version of the schema

load(filename, exp)

Load an mzXML 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 options for loading/storing

setProgress(value)

Sets the current progress

startProgress(begin, end, label)

store(filename, exp)

Store an MSExperiment to an mzXML file

transform(filename, consumer[, skip_full_count])

Overloaded function.

endProgress(bytes_processed: int = 0) → None#

Ends the progress display

getLogType() → pyopenms.ProgressLogger.LogType#

Returns the type of progress log being used

getOptions() → pyopenms.PeakFileOptions#

Returns the options for loading/storing

getVersion() → str#

Return the version of the schema

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

Load an mzXML 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.PeakFileOptions) → None#

Sets options for loading/storing

setProgress(value: int) → None#

Sets the current progress

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

Store an MSExperiment to an mzXML file

transform(filename: str, consumer: object, skip_full_count: bool = False) → None#
transform(filename: str, consumer: object, exp: pyopenms.MSExperiment, skip_full_count: bool = False) → None

Overloaded function.

  1. transform(filename: str, consumer: object, skip_full_count: bool = False) -> None

Transform an mzXML file using a consumer object (streaming processing). The GIL is released while parsing and taken for each consumer call, so other Python threads run meanwhile; they must not use this object until it returns.

  1. transform(filename: str, consumer: object, exp: pyopenms.MSExperiment, skip_full_count: bool = False) -> None

Transform an mzXML file using a consumer object, also collecting the spectra into exp. The consumer sees each spectrum before it is appended, so modifications it makes are kept. The GIL is released while parsing and taken for each consumer call, so other Python threads run meanwhile; they must not use this object or exp until it returns.