MetaboTargetedTargetDecoy#

class pyopenms.MetaboTargetedTargetDecoy#

Bases: object

Resolve overlapping fragments and missing decoys for experimental specific decoy generation in targeted/pseudo targeted metabolomics

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

Methods

__init__()

constructTargetDecoyMassMapping(t_exp)

Constructs a mass mapping of targets and decoys using the unique m_id identifier

generateMissingDecoysByMassShift(t_exp, ...)

Generate a decoy for targets where fragmentation tree re-rooting was not possible, by adding a specifiable mass to the target fragments

resolveOverlappingTargetDecoyMassesByDecoyMassShift(...)

Resolves overlapping target and decoy transition masses by adding a specifiable mass (e.g. CH2) to the overlapping decoy fragment.

static constructTargetDecoyMassMapping(t_exp: pyopenms.TargetedExperiment) → list[pyopenms.MetaboTargetedTargetDecoy_MetaboTargetDecoyMassMapping]#

Constructs a mass mapping of targets and decoys using the unique m_id identifier

Parameters:

t_exp – TransitionExperiment holds compound and transition information used for the mapping

static generateMissingDecoysByMassShift(t_exp: pyopenms.TargetedExperiment, mappings: collections.abc.Sequence[pyopenms.MetaboTargetedTargetDecoy_MetaboTargetDecoyMassMapping], mass_to_add: float) → list[pyopenms.MetaboTargetedTargetDecoy_MetaboTargetDecoyMassMapping]#

Generate a decoy for targets where fragmentation tree re-rooting was not possible, by adding a specifiable mass to the target fragments

Parameters:
  • t_exp – TransitionExperiment holds compound and transition information

  • mappings – Map of identifier to target and decoy masses

  • mass_to_add – Mass to add to the target fragments (e.g. CH2)

Returns:

Updated mappings

In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as mappings is also updated in place with the returned contents.

static resolveOverlappingTargetDecoyMassesByDecoyMassShift(t_exp: pyopenms.TargetedExperiment, mappings: collections.abc.Sequence[pyopenms.MetaboTargetedTargetDecoy_MetaboTargetDecoyMassMapping], mass_to_add: float, mz_tol: float, mz_tol_unit: str) → list[pyopenms.MetaboTargetedTargetDecoy_MetaboTargetDecoyMassMapping]#

Resolves overlapping target and decoy transition masses by adding a specifiable mass (e.g. CH2) to the overlapping decoy fragment

Parameters:
  • t_exp – TransitionExperiment holds compound and transition information

  • mappings – Map of identifier to target and decoy masses

  • mass_to_add – (e.g. CH2)

  • mz_tol – m/z tolerance for target and decoy transition masses to be considered overlapping

  • mz_tol_unit – m/z tolerance unit (“ppm” or “Da”)

Returns:

Updated mappings

In/out compatibility (pyOpenMS 3.5 behaviour): a Python list passed as mappings is also updated in place with the returned contents.