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

Public Member Functions | |
| AccessibilityConstraint (const size_t length, const size_t maxBpSpan, const std::string &shapeFile, const std::string &shapeMethod, const std::string &shapeConversion) | |
| AccessibilityConstraint (const AccessibilityConstraint &toCopy, const bool reverseIndices=false) | |
| AccessibilityConstraint (const RnaSequence &seq, const std::string &dotBracket, const size_t maxBpSpan, const std::string &shapeFile, const std::string &shapeMethod, const std::string &shapeConversion) | |
| virtual | ~AccessibilityConstraint () |
| bool | isMarkedBlocked (const size_t i) const |
| bool | isMarkedAccessible (const size_t i) const |
| bool | isMarkedPaired (const size_t i) const |
| bool | isUnconstrained (const size_t i) const |
| bool | isAccessible (const size_t i) const |
| bool | isEmpty () const |
| char | getVrnaDotBracket (const size_t i) const |
| size_t | getMaxBpSpan () const |
| const std::string & | getShapeFile () const |
| const std::string & | getShapeMethod () const |
| const std::string & | getShapeConversion () const |
| AccessibilityConstraint & | operator= (const AccessibilityConstraint &c) |
Static Public Attributes | |
| static const char | dotBracket_unconstrained |
| the marker for unconstrained positions in dot-bracket notation | |
| static const char | dotBracket_blocked |
| the marker for blocked positions in dot-bracket notation | |
| static const char | dotBracket_accessible |
| the marker for accessible positions in dot-bracket notation | |
| static const char | dotBracket_paired |
| the marker for paired positions in dot-bracket notation | |
| static const std::string | dotBracket_constraints |
| collection of all allowed encoding of constraints | |
| static const std::string | dotBracketAlphabet |
| the alphabet to encode accessibility constraints in dot-bracket notation | |
| static const std::string | regionIndexList |
| regular expression that encodes a single region encoding as index list | |
| static const boost::regex | regex |
| the regular expression that marks a non-empty valid constraint encoding | |
| static const boost::regex | regexShapeMethod |
| the regular expression to be matched by shapeMethod encodings | |
| static const boost::regex | regexShapeConversion |
| the regular expression to be matched by shapeConversion encodings | |
Static Protected Member Functions | |
| static void | screenDotBracket (const std::string &dotBracket, const char marker, IndexRangeList &storage) |
Protected Attributes | |
| size_t | length |
| the overall sequence length this constraint is about | |
| size_t | maxBpSpan |
| the maximal base pair span to be used for accessibility computation | |
| std::string | shapeFile |
| filename of SHAPE reactivity data or empty if no SHAPE data to be used | |
| std::string | shapeMethod |
| method for converting SHAPE reactivity data to pseudo energies | |
| std::string | shapeConversion |
| method for conversion of SHAPE reactivity data to paired probabilities | |
| IndexRangeList | blocked |
| sorted list of ranges that are marked as blocked | |
| IndexRangeList | accessible |
| sorted list of ranges that are marked as accessible | |
| IndexRangeList | paired |
| sorted list of ranges that are marked as paired (intramolecular) | |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const AccessibilityConstraint &c) |
Represents the constraints for accessibility computation, ie. sequence regions that are known to be blocked (not available to interaction) or for sure accessible.
These constraints are than incorporated into the computation of the accessibility (ED) values to be used for interaction prediction.
|
inline |
Empty constraint construction
| length | length of the constrained sequence |
| maxBpSpan | the maximal base pair span to be used for accessibility computation; set to 0 for full sequence length |
| shapeFile | if non-empty: name of the SHAPE reactivity data file to be used for accessibility computation |
| shapeMethod | if non-empty: encoding of the method to be used to convert SHAPE reactivity data to pseudo energies |
| shapeConversion | if non-empty: encoding of the method to be used to convert SHAPE reactivity data to pairing probabilities |
|
inline |
Copy construction
| toCopy | the constraint to copy |
| reverseIndices | whether or not to reverse indexing (eg to be used for ReverseAccessibility) |
| IntaRNA::AccessibilityConstraint::AccessibilityConstraint | ( | const RnaSequence & | seq, |
| const std::string & | dotBracket, | ||
| const size_t | maxBpSpan, | ||
| const std::string & | shapeFile, | ||
| const std::string & | shapeMethod, | ||
| const std::string & | shapeConversion | ||
| ) |
Constraint construction based on VRNA-like dot-bracket encoding
| seq | the constrained sequence |
| dotBracket | the constraint encoding in VRNA-like dot-bracket encoding |
| maxBpSpan | the maximal base pair span to be used for accessibility computation; set to 0 for full sequence length |
| shapeFile | if non-empty: name of the SHAPE reactivity data file to be used for accessibility computation |
| shapeMethod | if non-empty: encoding of the method to be used to convert SHAPE reactivity data to pseudo energies |
| shapeConversion | if non-empty: encoding of the method to be used to convert SHAPE reactivity data to pairing probabilities |
|
inlinevirtual |
|
inline |
Provides the maximal base pair span to be considered for accessibility computation.
|
inline |
Get method how to convert SHAPE reactivity data to pairing probabilities.
|
inline |
Get filename from where to read SHAPE reactivity data.
|
inline |
Get method how to convert SHAPE reactivity data to pseudo energies.
|
inline |
Provides the VRNA dot-bracket notation of the constraint for position i
| i | the position of interest |
|
inline |
Checks whether or not a position is available for interaction
| i | the position of interest |
i is available interaction; false otherwise
|
inline |
Checks whether or not any accessibility constraints (base pairs, blocked, accessible, etc.) are given
|
inline |
Checks whether or not a sequence position is marked as accessible or not
| i | the position of interest |
|
inline |
Checks whether or not a sequence position is marked as blocked or not
| i | the position of interest |
|
inline |
Checks whether or not a sequence position is marked as intramolecularly paired or not
| i | the position of interest |
|
inline |
Checks whether or not a sequence position is not constrained
| i | the position of interest |
|
inline |
Assignment of constraints for the same rna sequence.
| c | the interaction to make this a copy of |
|
staticprotected |
screens the given dot-bracket string for consecutive regions of marker characters and pushes the according regions to the storage
| dotBracket | the dot-bracket encoding to screen |
| marker | the marker character to screen for |
| storage | the container to push the identified regions to |
|
friend |
Prints the accessibility constraint in range-based encoding to stream
| out | the ostream to write to |
| c | the AccessibilityConstraint object to add |
|
protected |
sorted list of ranges that are marked as accessible
|
protected |
sorted list of ranges that are marked as blocked
|
static |
the marker for accessible positions in dot-bracket notation
|
static |
the marker for blocked positions in dot-bracket notation
|
static |
collection of all allowed encoding of constraints
|
static |
the marker for paired positions in dot-bracket notation
|
static |
the marker for unconstrained positions in dot-bracket notation
|
static |
the alphabet to encode accessibility constraints in dot-bracket notation
|
protected |
the overall sequence length this constraint is about
|
protected |
the maximal base pair span to be used for accessibility computation
|
protected |
sorted list of ranges that are marked as paired (intramolecular)
|
static |
the regular expression that marks a non-empty valid constraint encoding
|
static |
the regular expression to be matched by shapeConversion encodings
|
static |
the regular expression to be matched by shapeMethod encodings
|
static |
regular expression that encodes a single region encoding as index list
|
protected |
method for conversion of SHAPE reactivity data to paired probabilities
|
protected |
filename of SHAPE reactivity data or empty if no SHAPE data to be used
|
protected |
method for converting SHAPE reactivity data to pseudo energies