Ribonucleotide#
- class pyopenms.Ribonucleotide#
Bases:
object
Cython implementation of _Ribonucleotide
Original C++ documentation is available here
- __init__()#
Overload:
- __init__(self) None
Overload:
- __init__(self, in_0: Ribonucleotide) None
Overload:
- __init__(self, name: bytes | str | String, code: bytes | str | String, new_code: bytes | str | String, html_code: bytes | str | String, formula: EmpiricalFormula, origin: bytes, mono_mass: float, avg_mass: float, term_spec: int, baseloss_formula: EmpiricalFormula) None
Methods
Overload:
getAvgMass
(self)Returns average mass of the ribonucleotide
getBaselossFormula
(self)Returns sum formula after loss of the nucleobase
getCode
(self)Returns the short name
getFormula
(self)Returns the empirical formula of the residue
getHTMLCode
(self)Returns the HTML (RNAMods) code
getMonoMass
(self)Returns monoisotopic mass of the ribonucleotide
getName
(self)Returns the name of the ribonucleotide
getNewCode
(self)Returns the new code
getOrigin
(self)Returns the code of the unmodified base (e.g., "A", "C", ...)
getTermSpecificity
(self)Returns the terminal specificity
isModified
(self)True if the ribonucleotide is a modified one
setAvgMass
(self, avg_mass)Sets average mass of the ribonucleotide
setBaselossFormula
(self, formula)Sets sum formula after loss of the nucleobase
setCode
(self, code)Sets the short name
setFormula
(self, formula)Sets empirical formula of the ribonucleotide (must be full, with N and C-terminus)
setHTMLCode
(self, html_code)Sets the HTML (RNAMods) code
setMonoMass
(self, mono_mass)Sets monoisotopic mass of the ribonucleotide
setName
(self, name)Sets the name of the ribonucleotide
setNewCode
(self, code)Sets the new code
setOrigin
(self, origin)Sets the code of the unmodified base (e.g., "A", "C", ...)
setTermSpecificity
(self, term_spec)Sets the terminal specificity
- getAvgMass(self) float #
Returns average mass of the ribonucleotide
- getBaselossFormula(self) EmpiricalFormula #
Returns sum formula after loss of the nucleobase
- getFormula(self) EmpiricalFormula #
Returns the empirical formula of the residue
- getMonoMass(self) float #
Returns monoisotopic mass of the ribonucleotide
- getOrigin(self) bytes #
Returns the code of the unmodified base (e.g., “A”, “C”, …)
- getTermSpecificity(self) int #
Returns the terminal specificity
- isModified(self) bool #
True if the ribonucleotide is a modified one
- setAvgMass(self, avg_mass: float) None #
Sets average mass of the ribonucleotide
- setBaselossFormula(self, formula: EmpiricalFormula) None #
Sets sum formula after loss of the nucleobase
- setFormula(self, formula: EmpiricalFormula) None #
Sets empirical formula of the ribonucleotide (must be full, with N and C-terminus)
- setMonoMass(self, mono_mass: float) None #
Sets monoisotopic mass of the ribonucleotide
- setOrigin(self, origin: bytes) None #
Sets the code of the unmodified base (e.g., “A”, “C”, …)
- setTermSpecificity(self, term_spec: int) None #
Sets the terminal specificity