MorphologicalFilter#
- class pyopenms.MorphologicalFilter#
Bases:
ProgressLoggerAn iterator wrapper to access peak intensities instead of the peak itself
- __init__() None#
Methods
__init__()endProgress([bytes_processed])Ends the progress display
filter(spectrum)Applies the morphological filtering operation to an MSSpectrum
filterExperiment(exp)Applies the morphological filtering operation to an MSExperiment
filterSpectrum(spectrum)Alias for filterPeakSpectrum (backward compatibility).
Returns a copy of the default parameters
Returns the type of progress log being used
getName()Returns the name
Returns a copy of the parameters
Increment progress by 1 (according to range begin-end)
setLogType(type)Sets the progress log that should be used.
setName(name)Sets the name
setParameters(param)Sets the parameters
setProgress(value)Sets the current progress
startProgress(begin, end, label)Attributes
- CMD = 0#
- GUI = 1#
- NONE = 2#
- endProgress(bytes_processed: int = 0) None#
Ends the progress display
- filter(spectrum: pyopenms.MSSpectrum) None#
Applies the morphological filtering operation to an MSSpectrum
If the size of the structuring element is given in ‘Thomson’, the number of data points for the structuring element is computed as follows:
- The data points are assumed to be uniformly spaced. We compute the
average spacing from the position of the first and the last peak and the total number of peaks in the input range
- The number of data points in the structuring element is computed
from struc_size and the average spacing, and rounded up to an odd number
- filterExperiment(exp: pyopenms.MSExperiment) None#
Applies the morphological filtering operation to an MSExperiment
The size of the structuring element is computed for each spectrum individually, if it is given in ‘Thomson’ See the filtering method for MSSpectrum for details
- filterSpectrum(spectrum)#
Alias for filterPeakSpectrum (backward compatibility).
- getDefaults() pyopenms.Param#
Returns a copy of the default parameters
- getLogType() pyopenms.ProgressLogger.LogType#
Returns the type of progress log being used
- getName() str#
Returns the name
- getParameters() pyopenms.Param#
Returns a copy of the parameters
- getSubsections() list[str]#
- nextProgress() None#
Increment progress by 1 (according to range begin-end)
- setLogType(type: pyopenms.ProgressLogger.LogType) None#
Sets the progress log that should be used. The default type is NONE!
- setName(name: str) None#
Sets the name
- setParameters(param: pyopenms.Param) None#
Sets the parameters
- setProgress(value: int) None#
Sets the current progress
- startProgress(begin: int, end: int, label: str) None#