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


Public Types | |
| enum | InStreamType { Pu_RNAplfold_Text , ED_RNAplfold_Text , IntaRNA_Binary } |
Public Member Functions | |
| AccessibilityFromStream (const RnaSequence &sequence, const size_t maxLength, const AccessibilityConstraint *const accConstraint, std::istream &inStream, const InStreamType inStreamType, const Z_type RT) | |
| virtual | ~AccessibilityFromStream () |
| virtual E_type | getED (const size_t from, const size_t to) const |
| virtual size_t | getMaxLength () const |
| void | writeBinary (std::ostream &out) const override |
Public Member Functions inherited from IntaRNA::Accessibility | |
| Accessibility (const RnaSequence &sequence, const size_t maxLength, const AccessibilityConstraint *const accConstr) | |
| virtual | ~Accessibility () |
| virtual const RnaSequence & | getSequence () 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 |
| 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 |
Protected Types | |
| typedef UpperBandedMatrix< E_type > | EdMatrix |
| type for the ED value matrix (upper triangular matrix banded by maxLength) | |
Protected Member Functions | |
| void | parseBinary (std::istream &inStream) |
| void | parsePu_RNAplfold_text (std::istream &inStream, const Z_type RT) |
| void | parseED_RNAplfold_text (std::istream &inStream) |
| void | parseRNAplfold_text (std::istream &inStream, const Z_type RT, const bool parseProbs) |
Protected Member Functions inherited from IntaRNA::Accessibility | |
| 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 | |
| EdMatrix | edValues |
| the ED values for the given sequence | |
| size_t | availMaxLength |
| maximal available window size | |
Protected Attributes inherited from IntaRNA::Accessibility | |
| 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 | |
Additional Inherited Members | |
Static Public Attributes inherited from IntaRNA::Accessibility | |
| static const E_type | ED_UPPER_BOUND |
| upper bound for all ED return values | |
Reads accessibility information from a data stream, e.g. from file or STDIN
|
protected |
type for the ED value matrix (upper triangular matrix banded by maxLength)
| IntaRNA::AccessibilityFromStream::AccessibilityFromStream | ( | const RnaSequence & | sequence, |
| const size_t | maxLength, | ||
| const AccessibilityConstraint *const | accConstraint, | ||
| std::istream & | inStream, | ||
| const InStreamType | inStreamType, | ||
| const Z_type | RT | ||
| ) |
construction
| sequence | the sequence the accessibility data is about |
| 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). |
| accConstraint | if not NULL, accessibility constraint that enforces some regions to be unstructured both in sequence and interaction |
| inStream | the input stream to read the accessibility data from |
| inStreamType | inStream data type to be expected |
| RT | the RT constant to be used to transform the probabilities to ED values |
|
virtual |
destruction
|
inlinevirtual |
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 |
Implements IntaRNA::Accessibility.
|
inlinevirtual |
Access to the maximal length of accessible regions (>0) to be considered.
Here, it returns the minimum of the originally targeted interaction range and the from the data parsed maximal window size.
Reimplemented from IntaRNA::Accessibility.
|
protected |
Load and validate a decompressed IntaRNA binary accessibility archive.
|
inlineprotected |
Parses ED values from a VRNA unpaired probability file styled stream
| inStream | the stream to read the ED values from |
|
inlineprotected |
Parses a VRNA unpaired probability file and fills the ED data
| inStream | the stream to read the probabilities from |
| RT | the RT constant to be used to transform the probabilities to ED values |
|
protected |
Parses ED values from a VRNA unpaired probability file styled stream
| inStream | the stream to read the ED values from |
| RT | the RT constant to be used to transform the probabilities to ED values |
| parseProbs | whether or not to expect unpaired probabilities (true) or ED values within the file |
|
inlineoverridevirtual |
Write the stored ED matrix directly, without copying rows or calling getED() for unconstrained data. Constraints retain the generic getED() path. Subclasses changing getED() semantics must also override this method.
| out | binary output stream; compression is supplied by the stream |
Reimplemented from IntaRNA::Accessibility.
|
protected |
maximal available window size
|
protected |
the ED values for the given sequence