IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
VrnaHandler.h
Go to the documentation of this file.
1#ifndef VIENNAHANDLER_H_
2#define VIENNAHANDLER_H_
3
4#include "IntaRNA/general.h"
5#include <mutex>
6#include <string>
7
8extern "C" {
9 #include <ViennaRNA/model.h>
10 #include <ViennaRNA/params.h>
11}
12
13namespace IntaRNA {
14
22
23public:
24
25 static constexpr const char* Turner99 = "Turner99";
26 static constexpr const char* Turner04 = "Turner04";
27 static constexpr const char* Andronescu07 = "Andronescu07";
28
29protected:
30
32 vrna_md_t model;
33
36
37public:
38
53 Z_type temperature = 37.0
54 , const std::string & vrnaParamFile = std::string(Turner04)
55 , const bool noGUclosure = false
56 , const bool noLP = false );
57
61 virtual ~VrnaHandler();
62
77 vrna_md_t
79 const int max_bp_span = -1,
80 const int window_size = -1,
81 const double pfScale = getPfScaleDefault() ) const;
82
87 Z_type
88 getRT() const;
89
94 static
95 Z_type
96 getRT( const Z_type temperature );
97
98
104 static
105 double
107
116 static
117 std::mutex &
119
120
121
122};
123
127
128inline
129Z_type
131getRT() const
132{
133 return RT;
134}
135
137
138} // namespace
139
140#endif /* VIENNAHANDLER_H_ */
Definition VrnaHandler.h:21
static std::mutex & getSetupMutex()
VrnaHandler(Z_type temperature=37.0, const std::string &vrnaParamFile=std::string(Turner04), const bool noGUclosure=false, const bool noLP=false)
static constexpr const char * Turner99
Definition VrnaHandler.h:25
vrna_md_t getModel(const int max_bp_span=-1, const int window_size=-1, const double pfScale=getPfScaleDefault()) const
vrna_md_t model
VRNA parameter model.
Definition VrnaHandler.h:32
static Z_type getRT(const Z_type temperature)
Z_type RT
the RT constant used for the current setup
Definition VrnaHandler.h:35
static constexpr const char * Turner04
Definition VrnaHandler.h:26
static double getPfScaleDefault()
Z_type getRT() const
Definition VrnaHandler.h:131
static constexpr const char * Andronescu07
Definition VrnaHandler.h:27
Definition Accessibility.h:13
double Z_type
type for probabilities, RT and Boltzmann values
Definition general.h:88