SpectrumAlignmentScore#
- class pyopenms.SpectrumAlignmentScore#
Bases:
objectSimilarity 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__() None#
- __init__(arg: pyopenms.SpectrumAlignmentScore, /) None
Methods
__init__()Returns a copy of the default parameters
getName()Returns the name
Returns a copy of the parameters
setName(name)Sets the name
setParameters(param)Sets the 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]#
- setName(name: str) None#
Sets the name
- setParameters(param: pyopenms.Param) None#
Sets the parameters