CalibrationData#

class pyopenms.CalibrationData#

Bases: object

A helper class, holding all calibration points

__init__() → None#
__init__(arg: pyopenms.CalibrationData, /) → None

Methods

__init__()

clear()

Remove all calibration points

empty()

Returns True if there are no peaks

getError(i)

Retrieve the error for i'th calibrant in either ppm or Th (depending on usePPM())

getGroup(i)

Retrieve the group of the i'th calibration point

getIntensity(i)

Retrieve the intensity of the i'th calibration point

getMZ(i)

Retrieve the observed m/z of the i'th calibration point

getMetaValues()

getNrOfGroups()

Number of peak groups (can be 0)

getRT(i)

Retrieve the observed RT of the i'th calibration point

getRefMZ(i)

Retrieve the theoretical m/z of the i'th calibration point

getWeight(i)

Retrieve the weight of the i'th calibration point

insertCalibrationPoint(rt, mz_obs, ...[, group])

median(rt_left, rt_right)

Compute the median in the given RT range for every peak group

setUsePPM(usePPM)

size()

Number of calibration points

sortByRT()

Sort calibration points by RT, to allow for valid RT chunking

usePPM()

Current error unit (ppm or Th)

clear() → None#

Remove all calibration points

empty() → bool#

Returns True if there are no peaks

getError(i: int) → float#

Retrieve the error for i’th calibrant in either ppm or Th (depending on usePPM())

getGroup(i: int) → int#

Retrieve the group of the i’th calibration point

getIntensity(i: int) → float#

Retrieve the intensity of the i’th calibration point

getMZ(i: int) → float#

Retrieve the observed m/z of the i’th calibration point

static getMetaValues() → list[str]#
getNrOfGroups() → int#

Number of peak groups (can be 0)

getRT(i: int) → float#

Retrieve the observed RT of the i’th calibration point

getRefMZ(i: int) → float#

Retrieve the theoretical m/z of the i’th calibration point

getWeight(i: int) → float#

Retrieve the weight of the i’th calibration point

insertCalibrationPoint(rt: float, mz_obs: float, intensity: float, mz_ref: float, weight: float, group: int = -1) → None#
median(rt_left: float, rt_right: float) → pyopenms.CalibrationData#

Compute the median in the given RT range for every peak group

setUsePPM(usePPM: bool) → None#
size() → int#

Number of calibration points

sortByRT() → None#

Sort calibration points by RT, to allow for valid RT chunking

usePPM() → bool#

Current error unit (ppm or Th)