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


Public Member Functions | |
| InteractionEnergyIdxOffset (const InteractionEnergy &energyOriginal, const size_t offset1=0, const size_t offset2=0) | |
| virtual | ~InteractionEnergyIdxOffset () override |
| size_t | getOffset1 () const |
| void | setOffset1 (size_t offset1) |
| size_t | getOffset2 () const |
| void | setOffset2 (size_t offset2) |
| virtual E_type | getE (const size_t i1, const size_t j1, const size_t i2, const size_t j2, const E_type hybridE) const override |
| virtual E_type | getE (const Z_type Z) const override |
| virtual bool | areComplementary (const size_t i1, const size_t i2) const override |
| virtual bool | isGU (const size_t i1, const size_t i2) const override |
| virtual size_t | size1 () const override |
| virtual size_t | size2 () const override |
| virtual E_type | getED1 (const size_t i1, const size_t j1) const override |
| virtual E_type | getED2 (const size_t i2, const size_t j2) const override |
| virtual bool | isAccessible1 (const size_t i) const override |
| virtual bool | isAccessible2 (const size_t i) const override |
| virtual E_type | getE_multi (const size_t i1, const size_t j1, const size_t i2, const size_t j2, const ES_multi_mode ES_mode) const override |
| virtual E_type | getES1 (const size_t i1, const size_t j1) const override |
| virtual E_type | getES2 (const size_t i2, const size_t j2) const override |
| virtual E_type | getE_multiUnpaired (const size_t numUnpaired) const override |
| virtual E_type | getE_multiHelix (const size_t j1, const size_t j2) const override |
| virtual E_type | getE_multiClosing () const override |
| virtual E_type | getE_init () const override |
| virtual E_type | getE_interLeft (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const override |
| virtual E_type | getE_danglingLeft (const size_t i1, const size_t i2) const override |
| virtual E_type | getE_danglingRight (const size_t j1, const size_t j2) const override |
| virtual E_type | getE_endLeft (const size_t i1, const size_t i2) const override |
| virtual E_type | getE_endRight (const size_t j1, const size_t j2) const override |
| virtual Z_type | getPr_danglingLeft (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const override |
| virtual Z_type | getPr_danglingRight (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const override |
| virtual Z_type | getRT () const override |
| virtual Interaction::BasePair | getBasePair (const size_t i1, const size_t i2) const override |
| virtual size_t | getIndex1 (const Interaction::BasePair &bp) const override |
| virtual size_t | getIndex2 (const Interaction::BasePair &bp) const override |
| virtual bool | isValidInternalLoop (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const override |
| virtual E_type | getEall1 () const override |
| virtual E_type | getEall2 () const override |
Public Member Functions inherited from IntaRNA::InteractionEnergy | |
| InteractionEnergy (const Accessibility &accS1, const ReverseAccessibility &accS2, const size_t maxInternalLoopSize1, const size_t maxInternalLoopSize2, const E_type energyAdd, const bool energyWithDangle, const bool internalLoopGU) | |
| virtual | ~InteractionEnergy () |
| virtual EnergyContributions | getE_contributions (const Interaction &interaction) const |
| virtual const Accessibility & | getAccessibility1 () const |
| virtual const ReverseAccessibility & | getAccessibility2 () const |
| const size_t | getMaxInternalLoopSize1 () const |
| const size_t | getMaxInternalLoopSize2 () const |
| virtual Z_type | getBoltzmannWeight (const E_type energy) const |
| virtual Z_type | getBoltzmannWeight (const Z_type energy) const |
| virtual E_type | getEnergyAdd () const |
| bool | isInternalLoopGUallowed () const |
Protected Attributes | |
| const InteractionEnergy & | energyOriginal |
| size_t | offset1 |
| size_t | offset2 |
Protected Attributes inherited from IntaRNA::InteractionEnergy | |
| const Accessibility & | accS1 |
| accessibility values for sequence S1 | |
| const ReverseAccessibility & | accS2 |
| accessibility values for sequence S2 (reversed index order) | |
| const size_t | maxInternalLoopSize1 |
| const size_t | maxInternalLoopSize2 |
| const E_type | energyAdd |
| user defined shift of the energy spectrum | |
| const bool | energyWithDangles |
| whether or not dangling end energy contributions are to be added | |
| const bool | internalLoopGU |
| whether or not GU base pairs allowed in internal loops | |
Additional Inherited Members | |
Public Types inherited from IntaRNA::InteractionEnergy | |
| enum | ES_multi_mode { ES_multi_1only , ES_multi_2only , ES_multi_both } |
Static Protected Member Functions inherited from IntaRNA::InteractionEnergy | |
| static bool | isAllowedLoopRegion (const RnaSequence &seq, const size_t i, const size_t j, const size_t maxInternalLoopSize) |
Wrapper for a given InteractionEnergy object where indices are shifted by a given positive offset (shifted towards infinity). This is useful for local interaction computations.
|
inline |
construction
| energyOriginal | wrapped energy object used for computations |
| offset1 | the index offset for sequence 1 |
| offset2 | the index offset for sequence 2 |
|
inlineoverridevirtual |
|
inlineoverridevirtual |
Checks whether or not two positions (shifted by offset) can form a base pair
| i1 | index in first sequence |
| i2 | index in second sequence |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the base pair encoding for the given indices after shifting by the used offset
| i1 | the index in the first sequence |
| i2 | the index in the (reversed) second sequence |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the overall energy for an interaction from [i1,j1] in the first sequence and [i2,j2] in the second sequence given the hybridization energy contribution.
| i1 | the index of the first sequence interacting with i2 |
| j1 | the index of the first sequence interacting with j2 with i1<=j1 |
| i2 | the index of the second sequence interacting with i1 |
| j2 | the index of the second sequence interacting with j1 with i2<=j2 |
| hybridE | the hybridization energy for the interaction |
Reimplemented from IntaRNA::InteractionEnergy.
Provides the ensemble energy for a given partition function Z.
| Z | the ensemble's partition function to convert |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Computes the dangling end energy penalties for the left side (i1-1 and i2-1) of the interaction closed by the intermolecular base pair (i1,i2).
Note, the indices are shifted by an offset for computation.
| i1 | the index of the first sequence interacting with i2 |
| i2 | the index of the second sequence interacting with i1 |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Computes the dangling end energy penalties for the right side (j1+1 and j2+1) of the interaction closed by the intermolecular base pair (j1,j2).
Note, the indices are shifted by an offset for computation.
| j1 | the index of the first sequence interacting with j2 |
| j2 | the index of the second sequence interacting with j1 |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the penalty for closing an interaction with the given base pair on the "left side" (i1 = 5' end of seq1 of the interaction)
Note, the indices are shifted by an offset for computation.
| i1 | the index of the first sequence interacting with i2 |
| i2 | the index of the second sequence interacting with i1 |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the penalty for closing an interaction with the given base pair on the "right side" (j1 = 3' end of seq1 of the interaction)
Note, the indices are shifted by an offset for computation.
| j1 | the index of the first sequence interacting with j2 |
| j2 | the index of the second sequence interacting with j1 |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the duplex initiation energy.
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Computes the energy estimate for the 'left side' interaction loop region closed by the intermolecular base pairs (i1,i2) and enclosing (j1,j2) where the regions [i1,j1] and [i2,j2] are considered unpaired or E_INF is the internal loop size exceeds the allowed maximum (see constructor).
Note, the indices are shifted by an offset for computation.
Note, the right interaction base pair (j1,j2) is not included in the returned energy value.
| i1 | the index of the first sequence interacting with i2 |
| j1 | the index of the first sequence interacting with j2 with i1<=j1 |
| i2 | the index of the second sequence interacting with i1 |
| j2 | the index of the second sequence interacting with j1 with i2<=j2 |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the energy contribution of an interaction site gap, i.e. the provided regions are without intermolecular base pairs but are considered to be involved in intramolecular base pairs only. The multi-site gap is scored according to a multiloop in a single structure prediction model. The ends of the two regions are supposed to form an intermolecular base pair each, i.e. (i1,i2) and (j1,j2) have to be complementary.
| i1 | the start of the structured region of seq1 |
| j1 | the end of the structured region of seq1 |
| i2 | the start of the structured region of seq2 |
| j2 | the end of the structured region of seq2 |
| ES_mode | defines for which sequence intramolecular structure contributions are to be considered |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the energy contribution/penalty for closing an intermolecular interaction left of a multi-site gap.
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the energy contribution/penalty of the helix repesented by the interaction right of a multi-site gap starting with base pair (j1,j2)
| j1 | the end of the gap in seq1, ie the first base paired in the interaction site to the right of the gap |
| j2 | the end of the gap in seq2, ie the first base paired in the interaction site to the right of the gap |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the energy contribution for a given number of unpaired nucleotides under the assumption that the region is part of an (intermolecular) multiloop.
| numUnpaired | the number of unpaired bases |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the overall ensemble energy for sequence 1 given its accessibility constraints
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the overall ensemble energy for sequence 2 given its accessibility constraints
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the ED penalty for making a region with sequence 1 accessible
Note, the indices are shifted by an offset for computation.
| i1 | the start of the accessible region |
| j1 | the end of the accessible region |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the ED penalty for making a region with (the reversed) sequence 2 accessible
Note, the indices are shifted by an offset for computation.
| i2 | the start of the accessible region |
| j2 | the end of the accessible region |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the ensemble energy (ES) of all intramolecular substructures that can be formed within a given region of sequence 1 under the assumption that the region is part of an (intermolecular) multiloop, i.e. at least one base pair is formed by each substructure.
If no structure can be formed within the region, E_INF is returned.
| i1 | the start of the structured region of seq1 |
| j1 | the end of the structured region of seq1 |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the ensemble energy (ES) of all intramolecular substructures that can be formed within a given region of sequence 2 under the assumption that the region is part of an (intermolecular) multiloop, i.e. at least one base pair is formed by each substructure.
If no structure can be formed within the region, E_INF is returned.
| i2 | the start of the structured region of seq2 |
| j2 | the end of the structured region of seq2 |
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the index within the first sequence of the given base pair shifted by the offset.
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Provides the (reversed) index within the second sequence of the given base pair shifted by the offset.
Reimplemented from IntaRNA::InteractionEnergy.
|
inline |
Access to the currently used index offset for sequence 1
|
inline |
Access to the currently used index offset for sequence 2
|
inlineoverridevirtual |
Computes the probability of the dangling ends for the left side (i1-1 and i2-1) of the interaction closed by the intermolecular base pair (i1,i2) for an interaction of [i1,j1] with [i2,j2].
Note, the indices are shifted by an offset for computation.
| i1 | the index of the first sequence interacting with i2 |
| j1 | the index of the first sequence interacting with j2 with i1<=j1 |
| i2 | the index of the second sequence interacting with i1 |
| j2 | the index of the second sequence interacting with j1 with i2<=j2 |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Computes the probability of the dangling ends for the right side (j1+1 and j2+1) of the interaction closed by the intermolecular base pair (j1,j2) for an interaction of [i1,j1] with [i2,j2].
Note, the indices are shifted by an offset for computation.
| i1 | the index of the first sequence interacting with i2 |
| j1 | the index of the first sequence interacting with j2 with i1<=j1 |
| i2 | the index of the second sequence interacting with i1 |
| j2 | the index of the second sequence interacting with j1 with i2<=j2 |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Access to the normalized temperature for Boltzmann weight computation
Implements IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Whether or not position i is accessible for interaction in sequence 1
Note, the index is shifted by an offset for computation.
| i | the position of interest in sequence 1 |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Whether or not position i is accessible for interaction in sequence 2
Note, the index is shifted by an offset for computation.
| i | the position of interest in sequence 2 |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Checks whether or not two positions can form a GU base pair
| i1 | index in first sequence |
| i2 | index in second sequence |
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Checks whether or not the given indices mark valid internal loop boundaries, i.e.
| i1 | the index of the first sequence interacting with i2 |
| j1 | the index of the first sequence interacting with j2 with i1<=j1 |
| i2 | the index of the second sequence interacting with i1 |
| j2 | the index of the second sequence interacting with j1 with i2<=j2 |
Reimplemented from IntaRNA::InteractionEnergy.
|
inline |
Sets the index offset to be used for sequence 1
| offset1 | the index offset for sequence 1 to be used |
|
inline |
Sets the index offset to be used for sequence 2
| offset2 | the index offset for sequence 2 to be used |
|
inlineoverridevirtual |
Length of sequence 1 excluding the index offset
Reimplemented from IntaRNA::InteractionEnergy.
|
inlineoverridevirtual |
Length of sequence 2 excluding index offset
Reimplemented from IntaRNA::InteractionEnergy.
|
protected |
the wrapped energy computation handler
|
protected |
the index offset in sequence 1
|
protected |
the index offset in sequence 2