DigestionEnzyme#

class pyopenms.DigestionEnzyme#

Bases: object

Cython implementation of _DigestionEnzyme

Original C++ documentation is available here

Base class for digestion enzymes

__init__()#

Overload:

__init__(self, in_0: DigestionEnzyme) None

Overload:

__init__(self, name: bytes | str | String, cleavage_regex: bytes | str | String, synonyms: Set[bytes], regex_description: bytes | str | String) None

Methods

__init__

Overload:

addSynonym(self, synonym)

Adds a synonym

getName(self)

Returns the name of the enzyme

getRegEx(self)

Returns the cleavage regex

getRegExDescription(self)

Returns the regex description

getSynonyms(self)

Returns the synonyms

setName(self, name)

Sets the name of the enzyme

setRegEx(self, cleavage_regex)

Sets the cleavage regex

setRegExDescription(self, value)

Sets the regex description

setSynonyms(self, synonyms)

Sets the synonyms

setValueFromFile(self, key, value)

Sets the value of a member variable based on an entry from an input file

addSynonym(self, synonym: bytes | str | String) None#

Adds a synonym

getName(self) bytes | str | String#

Returns the name of the enzyme

getRegEx(self) bytes | str | String#

Returns the cleavage regex

getRegExDescription(self) bytes | str | String#

Returns the regex description

getSynonyms(self) Set[bytes]#

Returns the synonyms

setName(self, name: bytes | str | String) None#

Sets the name of the enzyme

setRegEx(self, cleavage_regex: bytes | str | String) None#

Sets the cleavage regex

setRegExDescription(self, value: bytes | str | String) None#

Sets the regex description

setSynonyms(self, synonyms: Set[bytes]) None#

Sets the synonyms

setValueFromFile(self, key: bytes | str | String, value: bytes | str | String) bool#

Sets the value of a member variable based on an entry from an input file