Peak1D#
- class pyopenms.Peak1D#
Bases:
objectA 1-dimensional raw data point or peak. This data structure is intended for continuous data or peak data. If you want to annotate single peaks with meta data, use RichPeak1D instead.
- __init__() None#
- __init__(arg0: float, arg1: float, /) None
- __init__(arg: pyopenms.Peak1D, /) None
Methods
__init__()Returns the intensity (height) of the peak
getMZ()Returns the m/z (mass-to-charge) value of the peak
getPos()Returns the position (alias for getMZ)
setIntensity(intensity)Sets the intensity (height) of the peak
setMZ(mz)Sets the m/z (mass-to-charge) value of the peak
setPos(pos)Sets the position (alias for setMZ)
to_tuple()Return peak as (mz, intensity) tuple.
Attributes
- getIntensity() float#
Returns the intensity (height) of the peak
- getMZ() float#
Returns the m/z (mass-to-charge) value of the peak
- getPos() float#
Returns the position (alias for getMZ)
- property intensity: float#
The intensity (height) of the peak
- property mz: float#
The m/z (mass-to-charge) value of the peak
- setIntensity(intensity: float) None#
Sets the intensity (height) of the peak
- setMZ(mz: float) None#
Sets the m/z (mass-to-charge) value of the peak
- setPos(pos: float) None#
Sets the position (alias for setMZ)
- to_tuple() tuple#
Return peak as (mz, intensity) tuple.