OpenSwathHelper#

class pyopenms.OpenSwathHelper#

Bases: object

A helper class that is used by several OpenSWATH tools

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

Methods

__init__()

checkSwathMapAndSelectTransitions(exp, ...)

Checks a swath map and selects appropriate transitions.

computePrecursorId(transition_group_id, isotope)

Computes unique precursor identifier

estimateRTRange(exp)

Computes the min and max retention time value

static checkSwathMapAndSelectTransitions(exp: pyopenms.MSExperiment, targeted_exp: pyopenms.TargetedExperiment, min_upper_edge_dist: float) → tuple#

Checks a swath map and selects appropriate transitions. Returns (success, selected_transitions)

static computePrecursorId(transition_group_id: str, isotope: int) → str#

Computes unique precursor identifier

Uses transition_group_id and isotope number to compute a unique precursor id of the form “groupID_Precursor_ix” where x is the isotope number, e.g. the monoisotopic precursor would become “groupID_Precursor_i0”

Parameters:
  • transition_group_id – Unique id of the transition group (peptide/compound)

  • isotope – Precursor isotope number

Returns:

Unique precursor identifier

static estimateRTRange(exp: pyopenms.LightTargetedExperiment) → tuple[float, float]#

Computes the min and max retention time value

Estimate the retention time span of a targeted experiment by returning the min/max values in retention time as a pair

Returns:

A std pair that contains (min,max)