PrecursorCorrection#

class pyopenms.PrecursorCorrection#

Bases: object

This class provides methods for precursor correction

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

Methods

__init__()

correctToHighestIntensityMS1Peak(exp, ...)

correctToNearestFeature(features, exp[, ...])

correctToNearestMS1Peak(exp, mz_tolerance, ppm)

getPrecursors(exp)

writeHist(out_csv, delta_mzs, mzs, rts)

static correctToHighestIntensityMS1Peak(exp: pyopenms.MSExperiment, mz_tolerance: float, ppm: bool) → tuple#
static correctToNearestFeature(features: pyopenms.FeatureMap, exp: pyopenms.MSExperiment, rt_tolerance_s: float = 0.0, mz_tolerance: float = 0.0, ppm: bool = True, believe_charge: bool = False, keep_original: bool = False, all_matching_features: bool = False, max_trace: int = 2, debug_level: int = 0) → set[int]#
static correctToNearestMS1Peak(exp: pyopenms.MSExperiment, mz_tolerance: float, ppm: bool) → tuple#
static getPrecursors(exp: pyopenms.MSExperiment) → tuple#
static writeHist(out_csv: str, delta_mzs: collections.abc.Sequence[float], mzs: collections.abc.Sequence[float], rts: collections.abc.Sequence[float]) → None#