IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
PredictorMfeEns2dHeuristicSeedExtension.h
Go to the documentation of this file.
1
2#ifndef INTARNA_PREDICTORMFEENS2DHEURISTICSEEDEXTENSION_H_
3#define INTARNA_PREDICTORMFEENS2DHEURISTICSEEDEXTENSION_H_
4
7
8namespace IntaRNA {
9
23
24public:
25
26
42
43
48
49
62 virtual
63 void
65 , const IndexRange & r2 = IndexRange(0,RnaSequence::lastPos) );
66
67
68protected:
69
70
73
76
79
83
87
90
92 size_t j1opt, j2opt;
93
94protected:
95
105 virtual
106 void
107 updateOptRightZ( const size_t i1, const size_t j1
108 , const size_t i2, const size_t j2
109 , const E_type hybridE );
110
119 virtual
120 void
121 fillHybridZ_right( const size_t i1, const size_t i2
122 , const size_t si1, const size_t si2
123 );
124
133 virtual
134 void
135 fillHybridZ_left( const size_t j1, const size_t j2 );
136
137};
138
142
143inline
144void
146updateOptRightZ( const size_t i1, const size_t j1
147 , const size_t i2, const size_t j2
148 , const E_type hybridE )
149{
150 // store boundaries and energy of the optimal right extension
151 E_type fullE = energy.getE( i1, j1, i2, j2, hybridE );
152 if (fullE < E_right_opt
153 && (!output.getOutputConstraint().noGUend || !energy.isGU(j1,j2)))
154 {
155 E_right_opt = fullE;
156 j1opt = j1;
157 j2opt = j2;
158 }
159}
160
162
163} // namespace
164
165#endif /* INTARNA_PREDICTORMFEENS2DHEURISTICSEEDEXTENSION_H_ */
Definition IndexRange.h:20
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
Definition InteractionEnergyIdxOffset.h:862
virtual bool isGU(const size_t i1, const size_t i2) const
Definition InteractionEnergyIdxOffset.h:634
Definition InteractionEnergy.h:20
const bool noGUend
whether or not inter-molecular UG base pairs are allowed at interaction ends
Definition OutputConstraint.h:54
Definition OutputHandler.h:20
const OutputConstraint & getOutputConstraint() const
Definition OutputHandler.h:167
Definition PredictionTracker.h:15
Definition PredictorMfeEns2dHeuristicSeedExtension.h:22
PredictorMfeEns2dHeuristicSeedExtension(const InteractionEnergy &energy, OutputHandler &output, PredictionTracker *predTracker, SeedHandler *seedHandler)
virtual void fillHybridZ_left(const size_t j1, const size_t j2)
virtual void predict(const IndexRange &r1=IndexRange(0, RnaSequence::lastPos), const IndexRange &r2=IndexRange(0, RnaSequence::lastPos))
size_t j1opt
boundaries of the right extension with the optimal energy
Definition PredictorMfeEns2dHeuristicSeedExtension.h:92
size_t j2opt
Definition PredictorMfeEns2dHeuristicSeedExtension.h:92
Z_type E_right_opt
optimal energy of the right extension
Definition PredictorMfeEns2dHeuristicSeedExtension.h:89
virtual void updateOptRightZ(const size_t i1, const size_t j1, const size_t i2, const size_t j2, const E_type hybridE)
Definition PredictorMfeEns2dHeuristicSeedExtension.h:146
virtual void fillHybridZ_right(const size_t i1, const size_t i2, const size_t si1, const size_t si2)
SeedHandlerIdxOffset seedHandler
the seed handler (with idx offset)
Definition PredictorMfeEns2dSeedExtension.h:87
Definition PredictorMfeEns2dSeedExtension.h:23
Z2dMatrix hybridZ_right
partition function of all interaction hybrids that start on the right side of the seed excluding E_in...
Definition PredictorMfeEns2dSeedExtension.h:90
Z2dMatrix hybridZ_left
partition function of all interaction hybrids that start on the left side of the seed including E_ini...
Definition PredictorMfeEns2dSeedExtension.h:84
InteractionEnergyIdxOffset energy
access to the interaction energy handler of the super class
Definition Predictor.h:85
OutputHandler & output
access to the output handler of the super class
Definition Predictor.h:88
SeedHandlerIdxOffset seedHandler
the seed handler (with idx offset)
Definition PredictorMfeEns2dSeedExtension.h:87
PredictionTracker * predTracker
access to the prediction tracker of the super class
Definition Predictor.h:91
static const size_t lastPos
Definition RnaSequence.h:57
Definition SeedHandler.h:17
Definition Accessibility.h:13
int E_type
type for energy values (energy + accessibility [ED]) (internally)
Definition general.h:78
double Z_type
type for probabilities, RT and Boltzmann values
Definition general.h:88
const E_type E_INF
Definition general.h:79