MSPGenericFile#

class pyopenms.MSPGenericFile#

Bases: object

MSP spectral library file reader/writer

__init__() → None#
__init__(filename: str, library: pyopenms.MSExperiment) → None
__init__(arg: pyopenms.MSPGenericFile, /) → None

Methods

__init__()

getDefaultParameters()

Gets the class' default parameters

getDefaults()

Returns a copy of the default parameters

getName()

Returns the name

getParameters()

Returns a copy of the parameters

getSubsections()

load(filename, library)

Load the file's data and metadata, and save it into an MSExperiment

setName(name)

Sets the name

setParameters(param)

Sets the parameters

store(filename, library)

Save data and metadata into a file

getDefaultParameters() → pyopenms.Param#

Gets the class’ default parameters

getDefaults() → pyopenms.Param#

Returns a copy of the default parameters

getName() → str#

Returns the name

getParameters() → pyopenms.Param#

Returns a copy of the parameters

getSubsections() → list[str]#
load(filename: str, library: pyopenms.MSExperiment) → None#

Load the file’s data and metadata, and save it into an MSExperiment

Parameters:
  • filename – Path to the MSP input file

  • library – The variable into which the extracted information will be saved

Raises:

Exception: FileNotFound If the file could not be found

setName(name: str) → None#

Sets the name

setParameters(param: pyopenms.Param) → None#

Sets the parameters

store(filename: str, library: pyopenms.MSExperiment) → None#

Save data and metadata into a file

Parameters:
  • filename – Path to the MSP input file

  • library – The variable from which extracted information will be saved

Raises:

Exception: FileNotWritable If the file is not writable