MSPFile#

class pyopenms.MSPFile#

Bases: DefaultParamHandler

File adapter for MSP files (NIST spectra library)

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

Methods

__init__()

getDefaults()

Returns the default parameters

getName()

Returns the name

getParameters()

Returns the parameters

getSubsections()

load(filename, ids, exp)

Overloaded function.

setName(name)

Sets the name

setParameters(param)

Sets the parameters

store(filename, exp)

Stores a map in a MSPFile file

getDefaults() → pyopenms.Param#

Returns the default parameters

getName() → str#

Returns the name

getParameters() → pyopenms.Param#

Returns the parameters

getSubsections() → list[str]#
load(filename: str, ids: pyopenms.PeptideIdentificationList, exp: pyopenms.MSExperiment) → None#
load(filename: str, annot_exp: pyopenms.AnnotatedMSRun) → None

Overloaded function.

  1. load(filename: str, ids: pyopenms.PeptideIdentificationList, exp: pyopenms.MSExperiment) -> None

Loads a map from a MSPFile file

Parameters:
  • exp – PeakMap which contains the spectra after reading

  • filename – The filename of the experiment

  • ids – Output parameter which contains the peptide identifications from the spectra annotations

  1. load(filename: str, annot_exp: pyopenms.AnnotatedMSRun) -> None

Loads a map from a MSPFile file

Parameters:
  • filename – The filename of the experiment

  • annot_exp – AnnotatedMSRun which contains the spectra and the peptide identifications from the spectra annotations after reading

setName(name: str) → None#

Sets the name

setParameters(param: pyopenms.Param) → None#

Sets the parameters

store(filename: str, exp: pyopenms.AnnotatedMSRun) → None#

Stores a map in a MSPFile file