RNaseDigestion
- class pyopenms.RNaseDigestion
Bases:
objectCython implementation of _RNaseDigestion
- Documentation is available at http://www.openms.de/current_doxygen/html/classOpenMS_1_1RNaseDigestion.html
– Inherits from [‘EnzymaticDigestion’]
- 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__()
Cython signature: void RNaseDigestion()
Cython signature: void RNaseDigestion(RNaseDigestion &)
Methods
Cython signature: void RNaseDigestion()
Cython signature: void digest(NASequence & rna, libcpp_vector[NASequence] & output)
Cython signature: size_t digestUnmodified(StringView sequence, libcpp_vector[StringView] & output, size_t min_length, size_t max_length)
Cython signature: String getEnzymeName() Returns the enzyme for the digestion
Cython signature: size_t getMissedCleavages() Returns the number of missed cleavages for the digestion
Cython signature: Specificity getSpecificity() Returns the specificity for the digestion
Cython signature: Specificity getSpecificityByName(String name) Returns the specificity by name.
Cython signature: bool isValidProduct(String sequence, int pos, int length, bool ignore_missed_cleavages)
Cython signature: void setEnzyme(String name)
Cython signature: void setMissedCleavages(size_t missed_cleavages) Sets the number of missed cleavages for the digestion (default is 0).
Cython signature: void setSpecificity(Specificity spec) Sets the specificity for the digestion (default is SPEC_FULL)
- digest()
Cython signature: void digest(NASequence & rna, libcpp_vector[NASequence] & output)
Cython signature: void digest(NASequence & rna, libcpp_vector[NASequence] & output, size_t min_length, size_t max_length)
- Parameters
rna – Sequence to digest
output – Digestion productsq
min_length – Minimal length of reported products
max_length – Maximal length of reported products (0 = no restriction)
- Returns
Number of discarded digestion products (which are not matching length restrictions) - Cython signature: void digest(IdentificationData & id_data) - Cython signature: void digest(IdentificationData & id_data, size_t min_length, size_t max_length)
- Parameters
id_data – IdentificationData object which includes sequences to digest
min_length – Minimal length of reported products
max_length – Maximal length of reported products (0 = no restriction)
- Returns
Number of discarded digestion products (which are not matching length restrictions)
- digestUnmodified()
Cython signature: size_t digestUnmodified(StringView sequence, libcpp_vector[StringView] & output, size_t min_length, size_t max_length)
- Parameters
sequence – Sequence to digest
output – Digestion products
min_length – Minimal length of reported products
max_length – Maximal length of reported products (0 = no restriction)
- Returns
Number of discarded digestion products (which are not matching length restrictions)
- getEnzymeName()
Cython signature: String getEnzymeName() Returns the enzyme for the digestion
- getMissedCleavages()
Cython signature: size_t getMissedCleavages() Returns the number of missed cleavages for the digestion
- getSpecificity()
Cython signature: Specificity getSpecificity() Returns the specificity for the digestion
- getSpecificityByName()
Cython signature: Specificity getSpecificityByName(String name) Returns the specificity by name. Returns SPEC_UNKNOWN if name is not valid
- isValidProduct()
Cython signature: bool isValidProduct(String sequence, int pos, int length, bool ignore_missed_cleavages)
- 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()
Cython signature: void setEnzyme(String name) Sets the enzyme for the digestion (by name)
Cython signature: void setEnzyme(DigestionEnzyme * enzyme) Sets the enzyme for the digestion
- setMissedCleavages()
Cython signature: void setMissedCleavages(size_t missed_cleavages) Sets the number of missed cleavages for the digestion (default is 0). This setting is ignored when log model is used
- setSpecificity()
Cython signature: void setSpecificity(Specificity spec) Sets the specificity for the digestion (default is SPEC_FULL)