Tagger#
- class pyopenms.Tagger#
Bases:
object
Cython implementation of _Tagger
Original C++ documentation is available here
Constructor for Tagger
The parameter max_charge_ should be >= min_charge_ Also max_tag_length should be >= min_tag_length
- Parameters:
min_tag_length – The minimal sequence tag length
ppm – The tolerance for matching residue masses to peak delta masses
max_tag_length – The maximal sequence tag length
min_charge – Minimal fragment charge considered for each sequence tag
max_charge – Maximal fragment charge considered for each sequence tag
fixed_mods – A list of modification names. The modified residues replace the unmodified versions
var_mods – A list of modification names. The modified residues are added as additional entries to the list of residues
- __init__()#
Overload:
- __init__(self, in_0: Tagger) None
Overload:
- __init__(self, min_tag_length: int, ppm: float, max_tag_length: int, min_charge: int, max_charge: int, fixed_mods: List[bytes], var_mods: List[bytes]) None
Methods
Overload:
Overload:
setMaxCharge
(self, max_charge)Change the maximal charge considered by the tagger
- getTag()#
Overload:
- getTag(self, mzs: List[float], tags: List[bytes | str]) None
Generate tags from mass vector mzs
The parameter tags is filled with one string per sequence tag It uses the standard residues from ResidueDB including the fixed and variable modifications given to the constructor
- Parameters:
mzs – A vector of mz values, containing the mz values from a centroided fragment spectrum
tags – The vector of tags, that is filled with this function
Overload:
- getTag(self, spec: MSSpectrum, tags: List[bytes | str]) None
Generate tags from an MSSpectrum
The parameter tags is filled with one string per sequence tag It uses the standard residues from ResidueDB including the fixed and variable modifications given to the constructor
- Parameters:
spec – A centroided fragment spectrum
tags – The vector of tags, that is filled with this function
- setMaxCharge(self, max_charge: int) None #
Change the maximal charge considered by the tagger
Allows to change the maximal considered charge e.g. based on a spectra precursor charge without calling the constructor multiple times
- Parameters:
max_charge – The new maximal charge