IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
PredictorMfe2dSeedExtension.h
Go to the documentation of this file.
1
2#ifndef INTARNA_PREDICTORMFE2DSEEDEXTENSION_H_
3#define INTARNA_PREDICTORMFE2DSEEDEXTENSION_H_
4
7
8namespace IntaRNA {
9
26
27protected:
28
31
32public:
33
34
50
51
56
57
70 virtual
71 void
73 , const IndexRange & r2 = IndexRange(0,RnaSequence::lastPos) );
74
75
76protected:
77
78
81
84
87
90
93
94protected:
95
104 void
105 fillHybridE_left( const size_t j1, const size_t j2 );
106
115 void
116 fillHybridE_right( const size_t i1, const size_t i2 );
117
123 virtual
124 void
125 traceBack( Interaction & interaction );
126
127 void
128 printMatrix( const E2dMatrix & matrix );
129
130};
131
135
136
137inline
138void
140printMatrix( const E2dMatrix & matrix )
141{
142 for (int i = 0; i < matrix.size1(); i++) {
143 std::cout << "| ";
144 for (int j = 0; j < matrix.size2(); j++) {
145 std::cout << matrix(i, j) << " | ";
146 }
147 std::cout << std::endl;
148 }
149}
150
151} // namespace
152
153#endif /* INTARNA_PREDICTORMFE2DSEEDEXTENSION_H_ */
Definition IndexRange.h:20
Definition InteractionEnergy.h:20
Definition Interaction.h:28
std::size_t size2() const noexcept
Definition Matrix.h:164
std::size_t size1() const noexcept
Definition Matrix.h:159
Definition OutputHandler.h:20
Definition PredictionTracker.h:15
Definition PredictorMfe2dSeedExtension.h:25
void printMatrix(const E2dMatrix &matrix)
Definition PredictorMfe2dSeedExtension.h:140
E2dMatrix hybridE_left
energy of all interaction hybrids that start on the left side of the seed
Definition PredictorMfe2dSeedExtension.h:89
InteractionEnergyIdxOffset energy
access to the interaction energy handler of the super class
Definition Predictor.h:85
virtual void predict(const IndexRange &r1=IndexRange(0, RnaSequence::lastPos), const IndexRange &r2=IndexRange(0, RnaSequence::lastPos))
SeedHandlerIdxOffset seedHandler
the seed handler (with idx offset)
Definition PredictorMfe2dSeedExtension.h:86
OutputHandler & output
access to the output handler of the super class
Definition Predictor.h:88
virtual void traceBack(Interaction &interaction)
void fillHybridE_right(const size_t i1, const size_t i2)
void fillHybridE_left(const size_t j1, const size_t j2)
PredictorMfe2d::E2dMatrix E2dMatrix
matrix type to hold the mfe energies for interaction site starts
Definition PredictorMfe2dSeedExtension.h:30
PredictorMfe2dSeedExtension(const InteractionEnergy &energy, OutputHandler &output, PredictionTracker *predTracker, SeedHandler *seedHandler)
E2dMatrix hybridE_right
energy of all interaction hybrids that start on the right side of the seed
Definition PredictorMfe2dSeedExtension.h:92
Definition PredictorMfe2d.h:19
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
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 SeedHandlerIdxOffset.h:23
Definition SeedHandler.h:17
Definition Accessibility.h:13