ModificationDefinition

class pyopenms.ModificationDefinition

Bases: object

Cython implementation of _ModificationDefinition

Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1ModificationDefinition.html

__init__()
  • Cython signature: void ModificationDefinition()

  • Cython signature: void ModificationDefinition(ModificationDefinition &)

  • Cython signature: void ModificationDefinition(const String & mod)

  • Cython signature: void ModificationDefinition(const String & mod, bool fixed)

  • Cython signature: void ModificationDefinition(const String & mod, bool fixed, unsigned int max_occur)

  • Cython signature: void ModificationDefinition(ResidueModification & mod)

  • Cython signature: void ModificationDefinition(ResidueModification & mod, bool fixed)

  • Cython signature: void ModificationDefinition(ResidueModification & mod, bool fixed, unsigned int max_occur)

Methods

__init__

  • Cython signature: void ModificationDefinition()

getMaxOccurrences

Cython signature: unsigned int getMaxOccurrences() Returns the maximal number of occurrences per peptide

getModification

Cython signature: ResidueModification getModification()

getModificationName

Cython signature: String getModificationName() Returns the name of the modification

isFixedModification

Cython signature: bool isFixedModification() Returns if the modification if fixed true, else false

setFixedModification

Cython signature: void setFixedModification(bool fixed) Sets whether this modification definition is fixed or variable (modification must occur vs.

setMaxOccurrences

Cython signature: void setMaxOccurrences(unsigned int num) Sets the maximal number of occurrences per peptide (unbounded if 0)

setModification

Cython signature: void setModification(const String & modification) Sets the modification, allowed are unique names provided by ModificationsDB

getMaxOccurrences()

Cython signature: unsigned int getMaxOccurrences() Returns the maximal number of occurrences per peptide

getModification()

Cython signature: ResidueModification getModification()

getModificationName()

Cython signature: String getModificationName() Returns the name of the modification

isFixedModification()

Cython signature: bool isFixedModification() Returns if the modification if fixed true, else false

setFixedModification()

Cython signature: void setFixedModification(bool fixed) Sets whether this modification definition is fixed or variable (modification must occur vs. can occur)

setMaxOccurrences()

Cython signature: void setMaxOccurrences(unsigned int num) Sets the maximal number of occurrences per peptide (unbounded if 0)

setModification()

Cython signature: void setModification(const String & modification) Sets the modification, allowed are unique names provided by ModificationsDB