MSPGenericFile#
- class pyopenms.MSPGenericFile#
Bases:
object
Cython implementation of _MSPGenericFile
- Original C++ documentation is available here
– Inherits from [‘DefaultParamHandler’]
- __init__()#
Overload:
- __init__(self) None
Overload:
- __init__(self, in_0: MSPGenericFile) None
Overload:
- __init__(self, filename: bytes | str | String, library: MSExperiment) None
Methods
Overload:
getDefaultParameters
(self, params)Returns the class' default parameters
getDefaults
(self)Returns the default parameters
getName
(self)Returns the name
getParameters
(self)Returns the parameters
getSubsections
(self)load
(self, filename, library)Load the file's data and metadata, and save it into an MSExperiment
setName
(self, in_0)Sets the name
setParameters
(self, param)Sets the parameters
store
(self, filename, library)Save data and metadata into a file
- getSubsections(self) List[bytes] #
- load(self, filename: bytes | str | String, library: 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