OMSSACSVFile#

class pyopenms.OMSSACSVFile#

Bases: object

File adapter for OMSSACSV files

The files contain the results of the OMSSA algorithm in a comma separated manner. This file adapter is able to load the data from such a file into the structures of OpenMS

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

Methods

__init__()

load(filename)

Loads an OMSSA CSV file

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

Loads an OMSSA CSV file

Parameters:

filename – The name of the file to read from

Returns:

Tuple of (protein_identification, id_data): the protein ProteinIdentification data and the peptide ids of the file

Raises:

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

Raises:

Exception: ParseError is thrown if an error occurs during parsing