MzQuantMLFile#

class pyopenms.MzQuantMLFile#

Bases: object

Cython implementation of _MzQuantMLFile

Original C++ documentation is available here

__init__()#

Overload:

__init__(self) None

Overload:

__init__(self, in_0: MzQuantMLFile) None

Methods

__init__

Overload:

isSemanticallyValid(self, filename, errors, ...)

Checks if a file is valid with respect to the mapping file and the controlled vocabulary

load(self, filename, msq)

Loads a map from a MzQuantML file

store(self, filename, msq)

Stores a map in a MzQuantML file

isSemanticallyValid(self, filename: bytes | str | String, errors: List[bytes], warnings: List[bytes]) bool#

Checks if a file is valid with respect to the mapping file and the controlled vocabulary

Parameters:
  • filename – File name of the file to be checked

  • errors – Errors during the validation are returned in this output parameter

  • warnings – Warnings during the validation are returned in this output parameter

Raises:

Exception: UnableToCreateFile is thrown if the file could not be created

load(self, filename: bytes | str | String, msq: MSQuantifications) None#

Loads a map from a MzQuantML file

Raises:

Exception: FileNotFound is thrown if the file could not be opened

Raises:

Exception: ParseError is thrown if an error occurs during parsing

store(self, filename: bytes | str | String, msq: MSQuantifications) None#

Stores a map in a MzQuantML file

Raises:

Exception: UnableToCreateFile is thrown if the file could not be created