RibonucleotideDB#

class pyopenms.RibonucleotideDB#

Bases: object

Database of ribonucleotides (modified and unmodified). This is a singleton class. The ribonucleotides are read from data/CHEMISTRY/Modomics.tsv and Custom_RNA_modifications.tsv.

__init__(*args, **kwargs)#

Methods

__init__(*args, **kwargs)

getInstance()

Returns the singleton instance

getRibonucleotide(code)

Returns the ribonucleotide with the given code

getRibonucleotideAlternatives(code)

Returns the two alternatives for an ambiguous modification code as a tuple

getRibonucleotidePrefix(seq)

Returns the ribonucleotide matching the longest prefix

static getInstance() → pyopenms.RibonucleotideDB#

Returns the singleton instance

getRibonucleotide(code: str) → pyopenms.Ribonucleotide#

Returns the ribonucleotide with the given code

getRibonucleotideAlternatives(code: str) → tuple#

Returns the two alternatives for an ambiguous modification code as a tuple

getRibonucleotidePrefix(seq: str) → pyopenms.Ribonucleotide#

Returns the ribonucleotide matching the longest prefix