|
IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
|
#include <Accessibility.h>


Public Member Functions | |
| Accessibility (const RnaSequence &sequence, const size_t maxLength, const AccessibilityConstraint *const accConstr) | |
| virtual | ~Accessibility () |
| virtual E_type | getED (const size_t from, const size_t to) const =0 |
| virtual const RnaSequence & | getSequence () const |
| virtual size_t | getMaxLength () const |
| virtual const AccessibilityConstraint & | getAccConstraint () const |
| void | writeRNAplfold_Pu_text (std::ostream &out, const Z_type RT) const |
| void | writeRNAplfold_ED_text (std::ostream &out) const |
| virtual void | writeBinary (std::ostream &out) const |
| IndexRangeList | decomposeByMaxED (const size_t maxRangeLength, const size_t winSize, const size_t minRangeLength) const |
| void | decomposeByMaxED (IndexRangeList &ranges, const E_type maxED, const size_t minRangeLength) const |
Static Public Attributes | |
| static const E_type | ED_UPPER_BOUND |
| upper bound for all ED return values | |
Protected Member Functions | |
| void | writeBinary (std::ostream &out, const UpperBandedMatrix< E_type > *matrix) const |
| virtual void | checkIndices (const size_t from, const size_t to) const |
| void | writeRNAplfold_text (std::ostream &out, const Z_type RT, const bool writeProbs) const |
Protected Attributes | |
| const RnaSequence & | seq |
| the RNA sequence the accessibilities correspond to | |
| const size_t | maxLength |
| the maximal length of an unpaired regions to be considered | |
| AccessibilityConstraint | accConstraint |
| accessibility constraint | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const Accessibility &acc) |
Abstract interface that represents accessibility data for a given RNA sequence.
TODO : init function to trigger accessibility computation for a certain region
|
inline |
Construction
| sequence | the sequence the accessibility data belongs to |
| maxLength | the maximal length of accessible regions (>0) to be considered. 0 defaults to the full sequence's length, otherwise is is internally set to min(maxLength,seq.length). |
| accConstr | optional accessibility constraint |
|
inlinevirtual |
destruction
|
inlineprotectedvirtual |
Checks the given indices to be in the range 0 <= from <= to < seq.length and throws a std::runtime_error if the constraint is not met.
| from | the start index of the regions |
| to | the end index of the regions |
| std::runtime_error | in case it does not hold 0 <= from <= to < seq.length |
| IndexRangeList IntaRNA::Accessibility::decomposeByMaxED | ( | const size_t | maxRangeLength, |
| const size_t | winSize, | ||
| const size_t | minRangeLength | ||
| ) | const |
Identifies regions of high accessibility by decomposing the sequence range at positions with lowest accessibility (highest ED value). This is done recursively, i.e. ranges that exceed the maxRegionLength are further decomposed (using their local max ED value) until the resulting subregions are below the given maxRangeLength.
| maxRangeLength | the maximal length of a resulting highly accessible sequence region |
| winSize | the ED window size to be used to identify low accessible regions. The center index of the identified window is used as split point for decomposition. Has to be greater than 0 and smaller than maxRangeLength, i.e in (0,maxRangeLength) |
| minRangeLength | the minimal length of a resulting sequence region |
| void IntaRNA::Accessibility::decomposeByMaxED | ( | IndexRangeList & | ranges, |
| const E_type | maxED, | ||
| const size_t | minRangeLength | ||
| ) | const |
Decomposes a given range list into subranges that contain only positions where the position-wise ED value is below or equal to a given threshold, since any interaction site enclosing this positions has a higher ED.
| ranges | INOUT the list of ranges to decompose |
| maxED | the maximal ED threshold (inclusive) |
| minRangeLength | the minimal length of a resulting sequence region |
|
inlinevirtual |
Access to the globally enforced accessibility constraint. Here '.' denotes unconstrained positions and 'x' positions that have to be unstructured. Regions covering constrained positions will result in ED_UPPER_BOUND accessibility values.
Reimplemented in IntaRNA::ReverseAccessibility.
|
pure virtual |
Returns the accessibility energy value for the given range in the sequence, i.e. the energy difference (ED) to make the region accessible.
| from | the start index of the regions (from <= to) |
| to | the end index of the regions (to < seq.length) |
| std::runtime_error | in case it does not hold 0 <= from <= to < seq.length |
Implemented in IntaRNA::AccessibilityBasePair, IntaRNA::AccessibilityDisabled, IntaRNA::AccessibilityFromStream, IntaRNA::AccessibilityVrna, and IntaRNA::ReverseAccessibility.
|
inlinevirtual |
Access to the maximal length of accessible regions (>0) to be considered.
Reimplemented in IntaRNA::AccessibilityFromStream.
|
inlinevirtual |
Access to the RnaSequence this accessibility values are accounting for.
Reimplemented in IntaRNA::ReverseAccessibility.
|
virtual |
Write a native Boost binary archive of exact ED values, including the extra interval length needed for dangling ends. Works for every subclass. Compression is supplied by the stream (e.g. newOutputStream("file.agz")).
| out | binary output stream |
| std::exception | on invalid ED values or output failure |
Reimplemented in IntaRNA::AccessibilityFromStream, and IntaRNA::AccessibilityVrna.
|
protected |
Write an archive using stored ED rows when available. Non-empty constraints use getED() to preserve any masking applied by the subclass.
|
inline |
Writes the ED values in RNAplfold style to stream.
| out | the output stream to write to |
|
inline |
Writes the ED values as unpaired probabilities in RNAplfold style to stream.
| out | the output stream to write to |
| RT | the scaled temperature value to be used for conversion of ED to Pu : Pu = exp( -ED/RT ) |
|
protected |
Writes the ED values as unpaired probabilities in RNAplfold style to stream.
| out | the output stream to write to |
| RT | the scaled temperature value to be used for conversion of ED to Pu : Pu = exp( -ED/RT ) |
| writeProbs | (true) write unpaired probabilities; (false) write ED |
|
friend |
Prints the accessibility values to stream as upper triangular matrix
| out | the ostream to write to |
| acc | the Accessibility object to add |
|
protected |
accessibility constraint
|
static |
upper bound for all ED return values
|
protected |
the maximal length of an unpaired regions to be considered
|
protected |
the RNA sequence the accessibilities correspond to