|
| | InteractionEnergyIdxOffset (const InteractionEnergy &energyOriginal, const size_t offset1=0, const size_t offset2=0) |
| |
| virtual | ~InteractionEnergyIdxOffset () |
| |
| 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 |
| |
| virtual E_type | getE (const Z_type Z) const |
| |
| virtual bool | areComplementary (const size_t i1, const size_t i2) const |
| |
| virtual bool | isGU (const size_t i1, const size_t i2) const |
| |
| virtual size_t | size1 () const |
| |
| virtual size_t | size2 () const |
| |
| virtual E_type | getED1 (const size_t i1, const size_t j1) const |
| |
| virtual E_type | getED2 (const size_t i2, const size_t j2) const |
| |
| virtual bool | isAccessible1 (const size_t i) const |
| |
| virtual bool | isAccessible2 (const size_t i) const |
| |
| 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 |
| |
| virtual E_type | getES1 (const size_t i1, const size_t j1) const |
| |
| virtual E_type | getES2 (const size_t i2, const size_t j2) const |
| |
| virtual E_type | getE_multiUnpaired (const size_t numUnpaired) const |
| |
| virtual E_type | getE_multiHelix (const size_t j1, const size_t j2) const |
| |
| virtual E_type | getE_multiClosing () const |
| |
| virtual E_type | getE_init () const |
| |
| virtual E_type | getE_interLeft (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const |
| |
| virtual E_type | getE_danglingLeft (const size_t i1, const size_t i2) const |
| |
| virtual E_type | getE_danglingRight (const size_t j1, const size_t j2) const |
| |
| virtual E_type | getE_endLeft (const size_t i1, const size_t i2) const |
| |
| virtual E_type | getE_endRight (const size_t j1, const size_t j2) const |
| |
| virtual Z_type | getPr_danglingLeft (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const |
| |
| virtual Z_type | getPr_danglingRight (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const |
| |
| virtual Z_type | getRT () const |
| |
| virtual Interaction::BasePair | getBasePair (const size_t i1, const size_t i2) const |
| |
| virtual size_t | getIndex1 (const Interaction::BasePair &bp) const |
| |
| virtual size_t | getIndex2 (const Interaction::BasePair &bp) const |
| |
| virtual bool | isValidInternalLoop (const size_t i1, const size_t j1, const size_t i2, const size_t j2) const |
| |
| virtual E_type | getEall1 () const |
| |
| virtual E_type | getEall2 () const |
| |
| | 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 |
| |
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.
- Author
- Martin Mann
| E_type IntaRNA::InteractionEnergyIdxOffset::getE_interLeft |
( |
const size_t |
i1, |
|
|
const size_t |
j1, |
|
|
const size_t |
i2, |
|
|
const size_t |
j2 |
|
) |
| const |
|
inlinevirtual |
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.
- Parameters
-
| 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 |
- Returns
- the energy for the loop or E_INF if the allowed loop size is exceeded or no valid internal loop boundaries
Implements IntaRNA::InteractionEnergy.
| E_type IntaRNA::InteractionEnergyIdxOffset::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 |
|
inlinevirtual |
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.
- Parameters
-
| 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 |
- Returns
- the energy contribution of a multi-site interaction gap
Reimplemented from IntaRNA::InteractionEnergy.
| E_type IntaRNA::InteractionEnergyIdxOffset::getES1 |
( |
const size_t |
i1, |
|
|
const size_t |
j1 |
|
) |
| const |
|
inlinevirtual |
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.
- Parameters
-
| i1 | the start of the structured region of seq1 |
| j1 | the end of the structured region of seq1 |
- Returns
- the ES value for [i1,j1] or E_INF if no intramolecular structure can be formed
Implements IntaRNA::InteractionEnergy.
| E_type IntaRNA::InteractionEnergyIdxOffset::getES2 |
( |
const size_t |
i2, |
|
|
const size_t |
j2 |
|
) |
| const |
|
inlinevirtual |
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.
- Parameters
-
| i2 | the start of the structured region of seq2 |
| j2 | the end of the structured region of seq2 |
- Returns
- the ES value for [i2,j2] or E_INF if no intramolecular structure can be formed
Implements IntaRNA::InteractionEnergy.
| Z_type IntaRNA::InteractionEnergyIdxOffset::getPr_danglingLeft |
( |
const size_t |
i1, |
|
|
const size_t |
j1, |
|
|
const size_t |
i2, |
|
|
const size_t |
j2 |
|
) |
| const |
|
inlinevirtual |
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.
- Parameters
-
| 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 |
- Returns
- the dangling end probability for the left side of the interaction
Reimplemented from IntaRNA::InteractionEnergy.
| Z_type IntaRNA::InteractionEnergyIdxOffset::getPr_danglingRight |
( |
const size_t |
i1, |
|
|
const size_t |
j1, |
|
|
const size_t |
i2, |
|
|
const size_t |
j2 |
|
) |
| const |
|
inlinevirtual |
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.
- Parameters
-
| 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 |
- Returns
- the dangling end probability for the right side of the interaction
Reimplemented from IntaRNA::InteractionEnergy.