NLargest#
- class pyopenms.NLargest#
Bases:
DefaultParamHandlerNLargest removes all but the n largest peaks
- __init__() None#
- __init__(arg: int, /) None
- __init__(arg: pyopenms.NLargest, /) None
Methods
__init__()filterPeakMap(exp)Keep only n-largest peaks in each spectrum of a peak map
filterPeakSpectrum(spectrum)Keep only n-largest peaks in spectrum
filterSpectrum(spectrum)Alias for filterPeakSpectrum (backward compatibility).
Returns the default parameters
getName()Returns the name
Returns the parameters
setName(name)Sets the name
setParameters(param)Sets the parameters
- filterPeakMap(exp: pyopenms.MSExperiment) None#
Keep only n-largest peaks in each spectrum of a peak map
- filterPeakSpectrum(spectrum: pyopenms.MSSpectrum) None#
Keep only n-largest peaks in spectrum
- filterSpectrum(spectrum)#
Alias for filterPeakSpectrum (backward compatibility).
- getDefaults() pyopenms.Param#
Returns the default parameters
- getName() str#
Returns the name
- getParameters() pyopenms.Param#
Returns the parameters
- getSubsections() list[str]#
- setName(name: str) None#
Sets the name
- setParameters(param: pyopenms.Param) None#
Sets the parameters