ProtXMLFile#

class pyopenms.ProtXMLFile#

Bases: XMLFile

Used to load (storing not supported, yet) ProtXML files

This class is used to load (storing not supported, yet) documents that implement the schema of ProtXML files

A documented schema for this format comes with the TPP and can also be found at OpenMS/OpenMS

OpenMS can only read parts of the protein_summary subtree to extract protein-peptide associations. All other parts are silently ignored

For protein groups, only the “group leader” (which is annotated with a probability and coverage) receives these attributes. All indistinguishable proteins of the same group only have an accession and score of -1

__init__() → None#

Methods

__init__()

getVersion()

Return the version of the schema

load(filename)

Loads the identifications of an ProtXML file without identifier

store(filename, protein_ids, peptide_ids[, ...])

Stores the data in a ProtXML file (not implemented yet)

getVersion() → str#

Return the version of the schema

load(filename: str) → tuple[pyopenms.ProteinIdentification, pyopenms.PeptideIdentification]#

Loads the identifications of an ProtXML file without identifier

The information is read in and the information is stored in the corresponding variables

Raises:

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

Raises:

Exception: ParseError is thrown if an error occurs during parsing

store(filename: str, protein_ids: pyopenms.ProteinIdentification, peptide_ids: pyopenms.PeptideIdentification, document_id: str = '') → None#

Stores the data in a ProtXML file (not implemented yet)

Raises:

Exception: NotImplemented is always thrown; storing ProtXML is not supported