SpectrumAlignmentScore#
- class pyopenms.SpectrumAlignmentScore#
Bases:
object
Cython implementation of _SpectrumAlignmentScore
- Original C++ documentation is available here
– Inherits from [‘DefaultParamHandler’]
Similarity score via spectra alignment
This class implements a simple scoring based on the alignment of spectra. This alignment is implemented in the SpectrumAlignment class and performs a dynamic programming alignment of the peaks, minimizing the distances between the aligned peaks and maximizing the number of peak pairs
The scoring is done via the simple formula score = sum / (sqrt(sum1 * sum2)). sum is the product of the intensities of the aligned peaks, with the given exponent (default is 2) sum1 and sum2 are the sum of the intensities squared for each peak of both spectra respectively
- __init__()#
Overload:
- __init__(self) None
Similarity score via spectra alignment
This class implements a simple scoring based on the alignment of spectra. This alignment is implemented in the SpectrumAlignment class and performs a dynamic programming alignment of the peaks, minimizing the distances between the aligned peaks and maximizing the number of peak pairs
The scoring is done via the simple formula score = sum / (sqrt(sum1 * sum2)). sum is the product of the intensities of the aligned peaks, with the given exponent (default is 2) sum1 and sum2 are the sum of the intensities squared for each peak of both spectra respectively
Overload:
- __init__(self, in_0: SpectrumAlignmentScore) None
Methods
Overload:
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
- getSubsections(self) List[bytes] #