IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
PredictionTrackerSpotProbAll.h
Go to the documentation of this file.
1
2#ifndef INTARNA_PREDICTIONTRACKERSPOTPROBALL_H_
3#define INTARNA_PREDICTIONTRACKERSPOTPROBALL_H_
4
7
8#include <iostream>
9
10#include <boost/algorithm/string.hpp>
11#include "IntaRNA/Matrix.h"
12
13
14namespace IntaRNA {
15
23{
24
25public:
26
44 , const std::string & streamName
45 , const std::string & NA_string = "NA"
46 , const std::string & sep = ";"
47 );
48
64 , std::ostream * outStream
65 , const std::string & NA_string = "NA"
66 , const std::string & sep = ";"
67 );
68
73
74
85 virtual
86 void
87 updateOptimumCalled( const size_t i1, const size_t j1
88 , const size_t i2, const size_t j2
89 , const E_type energy
90 );
91
92
93protected:
94
97
100
102 std::ostream * outStream;
103
105 const std::string NA_string;
106
108 const std::string sep;
109
112
115
118
119
120
131 static
132 void
133 writeData( std::ostream &out
134 , const Z2dMatrix & pairZ
135 , const Z_type & overallZ
136 , const InteractionEnergy & energy
137 , const std::string & NA_string
138 , const std::string & sep
139 );
140
141
142};
143
145
146} // namespace
147
148#endif /* INTARNA_PREDICTIONTRACKERSPOTPROBALL_H_ */
Definition InteractionEnergy.h:20
Definition Matrix.h:49
Definition PredictionTrackerSpotProbAll.h:23
PredictionTrackerSpotProbAll(const InteractionEnergy &energy, const std::string &streamName, const std::string &NA_string="NA", const std::string &sep=";")
const InteractionEnergy & energy
energy handler used for predictions
Definition PredictionTrackerSpotProbAll.h:96
PredictionTrackerSpotProbAll(const InteractionEnergy &energy, std::ostream *outStream, const std::string &NA_string="NA", const std::string &sep=";")
Z_type overallZ
overall partition function
Definition PredictionTrackerSpotProbAll.h:111
Matrix< Z_type > Z2dMatrix
matrix type to hold the partition function for each index pair
Definition PredictionTrackerSpotProbAll.h:114
const std::string NA_string
the output string representation if a value is not available for output
Definition PredictionTrackerSpotProbAll.h:105
virtual void updateOptimumCalled(const size_t i1, const size_t j1, const size_t i2, const size_t j2, const E_type energy)
Z2dMatrix pairZ
the index-pair-wise minimal energy values
Definition PredictionTrackerSpotProbAll.h:117
std::ostream * outStream
the stream to write the minE-data to
Definition PredictionTrackerSpotProbAll.h:102
static void writeData(std::ostream &out, const Z2dMatrix &pairZ, const Z_type &overallZ, const InteractionEnergy &energy, const std::string &NA_string, const std::string &sep)
const bool deleteStreamsOnDestruction
whether or not the streams are to be deleted on destruction
Definition PredictionTrackerSpotProbAll.h:99
const std::string sep
the output string representation of column separators
Definition PredictionTrackerSpotProbAll.h:108
Definition PredictionTracker.h:15
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