IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
PredictorMfe2dSeedExtensionRIblast.h
Go to the documentation of this file.
1
2#ifndef INTARNA_PREDICTORMFE2DSEEDEXTENSIONRIBLAST_H_
3#define INTARNA_PREDICTORMFE2DSEEDEXTENSIONRIBLAST_H_
4
7
8namespace IntaRNA {
9
24
25protected:
26
29
30public:
31
32 struct ExtendedSeed {
33 size_t i1;
34 size_t j1;
35 size_t i2;
36 size_t j2;
38 };
39
40 const int parallelDropOutLength = 5;
41 const int thoroughDropOutLength = 16;
42
58
59
64
65
78 virtual
79 void
81 , const IndexRange & r2 = IndexRange(0,RnaSequence::lastPos) );
82
83
84protected:
85
86
89
92
95
98
101
102protected:
103
111 virtual
112 void
113 parallelExtension( ExtendedSeed & seed, const size_t max_extension1, size_t max_extension2 );
114
123 void
124 fillHybridE_left( const size_t j1, const size_t j2 );
125
134 void
135 fillHybridE_right( const size_t i1, const size_t i2 );
136
142 virtual
143 void
144 traceBack( Interaction & interaction );
145
146 void
147 printMatrix( const E2dMatrix & matrix );
148
149};
150
155
156inline
157void
159printMatrix( const E2dMatrix & matrix )
160{
161 for (int i = 0; i < matrix.size1(); i++) {
162 std::cout << "| ";
163 for (int j = 0; j < matrix.size2(); j++) {
164 std::cout << matrix(i, j) << " | ";
165 }
166 std::cout << std::endl;
167 }
168}
169
170} // namespace
171
172#endif /* INTARNA_PREDICTORMFE2DSEEDEXTENSIONRIBLAST_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 PredictorMfe2dSeedExtensionRIblast.h:23
void fillHybridE_right(const size_t i1, const size_t i2)
PredictorMfe2d::E2dMatrix E2dMatrix
matrix type to hold the mfe energies for interaction site starts
Definition PredictorMfe2dSeedExtensionRIblast.h:28
E2dMatrix hybridE_left
energy of all interaction hybrids that start on the left side of the seed
Definition PredictorMfe2dSeedExtensionRIblast.h:97
const int thoroughDropOutLength
Definition PredictorMfe2dSeedExtensionRIblast.h:41
virtual void traceBack(Interaction &interaction)
virtual void predict(const IndexRange &r1=IndexRange(0, RnaSequence::lastPos), const IndexRange &r2=IndexRange(0, RnaSequence::lastPos))
InteractionEnergyIdxOffset energy
access to the interaction energy handler of the super class
Definition Predictor.h:85
PredictorMfe2dSeedExtensionRIblast(const InteractionEnergy &energy, OutputHandler &output, PredictionTracker *predTracker, SeedHandler *seedHandler)
void printMatrix(const E2dMatrix &matrix)
Definition PredictorMfe2dSeedExtensionRIblast.h:159
E2dMatrix hybridE_right
energy of all interaction hybrids that start on the right side of the seed
Definition PredictorMfe2dSeedExtensionRIblast.h:100
OutputHandler & output
access to the output handler of the super class
Definition Predictor.h:88
const int parallelDropOutLength
Definition PredictorMfe2dSeedExtensionRIblast.h:40
virtual void parallelExtension(ExtendedSeed &seed, const size_t max_extension1, size_t max_extension2)
SeedHandlerIdxOffset seedHandler
the seed handler (with idx offset)
Definition PredictorMfe2dSeedExtensionRIblast.h:94
void fillHybridE_left(const size_t j1, const size_t j2)
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
int E_type
type for energy values (energy + accessibility [ED]) (internally)
Definition general.h:78
Definition PredictorMfe2dSeedExtensionRIblast.h:32
E_type energy
Definition PredictorMfe2dSeedExtensionRIblast.h:37
size_t j2
Definition PredictorMfe2dSeedExtensionRIblast.h:36
size_t i2
Definition PredictorMfe2dSeedExtensionRIblast.h:35
size_t j1
Definition PredictorMfe2dSeedExtensionRIblast.h:34
size_t i1
Definition PredictorMfe2dSeedExtensionRIblast.h:33