SplineInterpolatedPeaks#

class pyopenms.SplineInterpolatedPeaks#

Bases: object

Data structure for spline interpolation of MS1 spectra and chromatograms

The data structure consists of a set of splines, each interpolating the MS1 spectrum (or chromatogram) in a certain m/z (or RT) range. Between these splines no raw data points exist and the intensity is identical to zero.

A spline on non-equi-distant input data is not well supported in regions without data points. Hence, a spline tends to swing wildly in these regions and cannot be used for reliable interpolation. We assume that in m/z (or RT) regions without data points, the spectrum (or chromatogram) is identical to zero.

See also: SplinePackage, MSSpectrum, MSChromatogram

__init__(arg0: collections.abc.Sequence[float], arg1: collections.abc.Sequence[float], /) → None#
__init__(arg: pyopenms.MSSpectrum, /) → None
__init__(arg: pyopenms.MSChromatogram, /) → None

Methods

__init__(arg0, arg1, /)

getNavigator([scaling])

Returns a Navigator over the splines; it keeps this object alive.

getPosMax()

getPosMin()

size()

class Navigator#

Bases: object

Iterator-like access to the splines of a SplineInterpolatedPeaks

Obtained from SplineInterpolatedPeaks.getNavigator(). It refers to the splines of that object, which is kept alive as long as the navigator exists.

eval(pos: float) → float#

Returns the spline-interpolated intensity at position pos (m/z or RT); 0 between splines

getNextPos(pos: float) → float#

Returns the next sensible position after pos, i.e. pos plus the scaled average data point spacing of the current spline, or the start of the next spline

getNavigator(scaling: float = 0.7) → pyopenms.SplineInterpolatedPeaks.Navigator#

Returns a Navigator over the splines; it keeps this object alive. Raises if there are no splines

getPosMax() → float#
getPosMin() → float#
size() → int#