SpectrumAlignment#
- class pyopenms.SpectrumAlignment#
Bases:
objectCython implementation of _SpectrumAlignment
- Original C++ documentation is available here
– Inherits from [‘DefaultParamHandler’]
Aligns the peaks of two sorted spectra Method 1: Using a banded (width via ‘tolerance’ parameter) alignment if absolute tolerances are given
Scoring function is the m/z distance between peaks. Intensity does not play a role!
Method 2: If relative tolerance (ppm) is specified a simple matching of peaks is performed: Peaks from s1 (usually the theoretical spectrum) are assigned to the closest peak in s2 if it lies in the tolerance window
note: A peak in s2 can be matched to none, one or multiple peaks in s1. Peaks in s1 may be matched to none or one peak in s2 note: Intensity is ignored
- __init__()#
Overload:
- __init__(self) None
Overload:
- __init__(self, in_0: SpectrumAlignment) None
Methods
getDefaults(self)Returns the default parameters
getName(self)Returns the name
getParameters(self)Returns the parameters
getSubsections(self)setName(self, in_0)Sets the name
setParameters(self, param)Sets the parameters
- getSpectrumAlignment()#
- getSubsections(self) List[bytes]#