RNaseDigestion#

class pyopenms.RNaseDigestion#

Bases: EnzymaticDigestion

Class for the enzymatic digestion of RNA

Usage:

from pyopenms import *
oligo = NASequence.fromString("pAUGUCGCAG");

dig = RNaseDigestion()
dig.setEnzyme("RNase_T1")

result = []
dig.digest(oligo, result)
for fragment in result:
  print (fragment)
__init__() → None#
__init__(arg: pyopenms.RNaseDigestion, /) → None

Methods

__init__()

countInternalCleavageSites(sequence)

Returns the number of internal cleavage sites for this sequence.

digest(rna[, min_length, max_length])

Digest an RNA sequence and return the fragments

digestProducts(rna[, min_length, max_length])

Return RNA digestion products with their zero-based parent coordinates.

digestUnmodified(sequence[, min_length, ...])

Digest unmodified sequence, returns (products, num_discarded)

digestWithCleavageSensitiveMods(rna, ...[, ...])

Return coordinate-bearing products while enumerating cleavage-blocking modifications within the budget.

getEnzymeName()

Returns the enzyme for the digestion

getFragmentPositions(rna[, min_length, ...])

Return zero-based (start, length) coordinates for digestion products.

getMissedCleavages()

Returns the max.

getSpecificity()

Returns the specificity for the digestion

getSpecificityByName(name)

Returns the specificity by name.

inferCleavageSensitiveMods(...)

Infer variable modifications that block the configured RNase.

isValidProduct(protein, pep_pos, pep_length, ...)

Boolean operator returns true if the peptide fragment starting at position pos with length length within the sequence sequence generated by the current enzyme

setEnzyme(enzyme)

Overloaded function.

setMissedCleavages(missed_cleavages)

Sets the max.

setSpecificity(spec)

Sets the specificity for the digestion (default is SPEC_FULL)

Attributes

SIZE_OF_SPECIFICITY = 10#
SPEC_FULL = 2#
SPEC_NOCTERM = 8#
SPEC_NONE = 0#
SPEC_NONTERM = 9#
SPEC_SEMI = 1#
SPEC_UNKNOWN = 3#
countInternalCleavageSites(sequence: str) → int#

Returns the number of internal cleavage sites for this sequence.

digest(rna: pyopenms.NASequence, min_length: int = 0, max_length: int = 0) → list[pyopenms.NASequence]#

Digest an RNA sequence and return the fragments

digestProducts(rna: pyopenms.NASequence, min_length: int = 0, max_length: int = 0) → list[pyopenms.RNaseDigestionProduct]#

Return RNA digestion products with their zero-based parent coordinates.

digestUnmodified(sequence: str, min_length: int = 1, max_length: int = 0) → tuple#

Digest unmodified sequence, returns (products, num_discarded)

digestWithCleavageSensitiveMods(rna: pyopenms.NASequence, cleavage_sensitive_mods: pyopenms.RNaseCleavageSensitiveModGroups, max_sensitive_mods_per_fragment: int, min_length: int = 0, max_length: int = 0) → list[pyopenms.RNaseDigestionProduct]#

Return coordinate-bearing products while enumerating cleavage-blocking modifications within the budget.

getEnzymeName() → str#

Returns the enzyme for the digestion

getFragmentPositions(rna: pyopenms.NASequence, min_length: int = 0, max_length: int = 0) → list[tuple[int, int]]#

Return zero-based (start, length) coordinates for digestion products.

getMissedCleavages() → int#

Returns the max. number of allowed missed cleavages for the digestion

getSpecificity() → pyopenms.EnzymaticDigestion.Specificity#

Returns the specificity for the digestion

static getSpecificityByName(name: str) → pyopenms.EnzymaticDigestion.Specificity#

Returns the specificity by name. Returns SPEC_UNKNOWN if name is not valid

inferCleavageSensitiveMods(variable_modifications: collections.abc.Iterable) → pyopenms.RNaseCleavageSensitiveModGroups#

Infer variable modifications that block the configured RNase. Each definition must match a registered RibonucleotideDB entry; equivalent copies are resolved to that stable entry. Unknown codes or edited definitions raise ValueError.

isValidProduct(protein: str, pep_pos: int, pep_length: int, ignore_missed_cleavages: bool) → bool#

Boolean operator returns true if the peptide fragment starting at position pos with length length within the sequence sequence generated by the current enzyme

Checks if peptide is a valid digestion product of the enzyme, taking into account specificity and the MC flag provided here

Parameters:
  • protein – Protein sequence

  • pep_pos – Starting index of potential peptide

  • pep_length – Length of potential peptide

  • ignore_missed_cleavages – Do not compare MC’s of potential peptide to the maximum allowed MC’s

Returns:

True if peptide has correct n/c terminals (according to enzyme, specificity and missed cleavages)

setEnzyme(enzyme: pyopenms.DigestionEnzyme) → None#
setEnzyme(name: str) → None

Overloaded function.

  1. setEnzyme(enzyme: pyopenms.DigestionEnzyme) -> None

Sets the enzyme for the digestion. The enzyme must come from RNaseDB, since RNaseDigestion stores it by reference and requires an RNase

  1. setEnzyme(name: str) -> None

Sets the enzyme for the digestion (by name)

setMissedCleavages(missed_cleavages: int) → None#

Sets the max. number of allowed missed cleavages for the digestion (default is 0). This setting is ignored when log model is used

setSpecificity(spec: pyopenms.EnzymaticDigestion.Specificity) → None#

Sets the specificity for the digestion (default is SPEC_FULL)