ModificationDefinition#
- class pyopenms.ModificationDefinition#
Bases:
objectRepresentation of modification definition
- __init__() None#
- __init__(arg: pyopenms.ModificationDefinition, /) None
- __init__(mod: str, fixed: bool = True, max_occur: int = 0) None
- __init__(mod: pyopenms.ResidueModification, fixed: bool = True, max_occur: int = 0) None
Methods
__init__()Returns the maximal number of occurrences per peptide
Returns the name of the modification
Returns if the modification if fixed true, else false
setFixedModification(fixed)Sets whether this modification definition is fixed or variable (modification must occur vs.
setMaxOccurrences(num)Sets the maximal number of occurrences per peptide (unbounded if 0)
setModification(modification)Sets the modification, allowed are unique names provided by ModificationsDB
- getMaxOccurrences() int#
Returns the maximal number of occurrences per peptide
- getModification() pyopenms.ResidueModification#
- getModificationName() str#
Returns the name of the modification
- isFixedModification() bool#
Returns if the modification if fixed true, else false
- setFixedModification(fixed: bool) None#
Sets whether this modification definition is fixed or variable (modification must occur vs. can occur)
- setMaxOccurrences(num: int) None#
Sets the maximal number of occurrences per peptide (unbounded if 0)
- setModification(modification: str) None#
Sets the modification, allowed are unique names provided by ModificationsDB