AnnotatedMSRun#

class pyopenms.AnnotatedMSRun#

Bases: object

Class for storing MS run data with peptide and protein identifications

This class stores an MSExperiment (containing spectra) along with peptide and protein identifications. Each spectrum in the MSExperiment is associated with a single PeptideIdentification object. Object gets typically not manually created but generated by the IDMapper class.

Usage:

run = AnnotatedMSRun()
exp = MSExperiment()
MzMLFile().load(path_to_file, exp)
run.setMSExperiment(exp)
run.setPeptideIdentifications(my_peptide_ids)
__init__() → None#
__init__(arg: pyopenms.AnnotatedMSRun, /) → None

Methods

getMSExperiment() → pyopenms.MSExperiment#
getPeptideIdentifications() → pyopenms.PeptideIdentificationList#
getProteinIdentifications() → list[pyopenms.ProteinIdentification]#
setMSExperiment(experiment: pyopenms.MSExperiment) → None#
setMSExperiment(experiment: pyopenms.MSExperiment) → None
setPeptideIdentifications(ids: pyopenms.PeptideIdentificationList) → None#
setPeptideIdentifications(ids: pyopenms.PeptideIdentificationList) → None
setProteinIdentifications(ids: collections.abc.Sequence[pyopenms.ProteinIdentification]) → None#
setProteinIdentifications(ids: collections.abc.Sequence[pyopenms.ProteinIdentification]) → None