ModifiedSincSmoother#

class pyopenms.ModifiedSincSmoother#

Bases: ProgressLogger

Modified sinc smoother for profile data. Two variants: MS (better stopband, larger kernel) and MS1 (smaller kernel). Based on Schmid, Rath & Diebold, ACS Meas. Sci. Au 2022. DefaultParamHandler ProgressLogger

__init__() → None#
__init__(isMS1: bool, degree: int, m: int) → None

Overloaded function.

  1. __init__() -> None

  2. __init__(isMS1: bool, degree: int, m: int) -> None

Create smoother. isMS1: true for MS1 variant (smaller kernel), false for MS variant.

Methods

__init__()

Overloaded function.

bandwidthToM(isMS1, degree, bandwidth)

Convert frequency bandwidth to kernel half-width m

endProgress([bytes_processed])

Ends the progress display

filter(spectrum)

Overloaded function.

filterExperiment(map)

Smooth all spectra and chromatograms in a PeakMap

getDefaults()

Returns a copy of the default parameters

getLogType()

Returns the type of progress log being used

getName()

Returns the name

getParameters()

Returns a copy of the parameters

getSubsections()

nextProgress()

Increment progress by 1 (according to range begin-end)

noiseGainToM(isMS1, degree, noiseGain)

Convert noise gain to kernel half-width m

savitzkyGolayBandwidth(degree, m)

Compute equivalent Savitzky-Golay bandwidth

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

smooth(data)

Smooth a vector of intensity values, returns smoothed vector

startProgress(begin, end, label)

Attributes

CMD = 0#
GUI = 1#
NONE = 2#
static bandwidthToM(isMS1: bool, degree: int, bandwidth: float) → int#

Convert frequency bandwidth to kernel half-width m

endProgress(bytes_processed: int = 0) → None#

Ends the progress display

filter(spectrum: pyopenms.MSSpectrum) → None#
filter(chromatogram: pyopenms.MSChromatogram) → None
filter(mobilogram: pyopenms.Mobilogram) → None

Overloaded function.

  1. filter(spectrum: pyopenms.MSSpectrum) -> None

Smooth an MSSpectrum in-place

  1. filter(chromatogram: pyopenms.MSChromatogram) -> None

Smooth an MSChromatogram in-place

  1. filter(mobilogram: pyopenms.Mobilogram) -> None

Smooth a Mobilogram in-place

filterExperiment(map: pyopenms.MSExperiment) → None#

Smooth all spectra and chromatograms in a PeakMap

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)

static noiseGainToM(isMS1: bool, degree: int, noiseGain: float) → int#

Convert noise gain to kernel half-width m

static savitzkyGolayBandwidth(degree: int, m: int) → float#

Compute equivalent Savitzky-Golay bandwidth

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

smooth(data: collections.abc.Sequence[float]) → list[float]#

Smooth a vector of intensity values, returns smoothed vector

startProgress(begin: int, end: int, label: str) → None#