IntaRNA 3.4.1
RNA-RNA interaction prediction | C++ API
Loading...
Searching...
No Matches
AccessibilityBasePair.h
Go to the documentation of this file.
1
2#ifndef INTARNA_ACCESSIBILITYBASEPAIR_H_
3#define INTARNA_ACCESSIBILITYBASEPAIR_H_
4
5#include "IntaRNA/general.h"
10
11
12namespace IntaRNA {
13
26
27public:
28 /***
29 * Constructor of AccessibilityBasePair
30 * @param seq The sequence the accessibility data belongs to
31 * @param maxLength the maximal length of accessible regions (>0) to be
32 * considered. 0 defaults to the full sequence's length, otherwise
33 * is is internally set to min(maxLength,seq.length).
34 * @param accConstr optional accessibility constraint
35 * @param basePairEnergy The energy value of the base pairs
36 * @param RT The temperature energy constant
37 * @param minLoopLength the minimum loop length
38 */
40 const RnaSequence& seq,
41 const size_t maxLength,
42 const AccessibilityConstraint * const accConstr,
43 const E_type basePairEnergy = Ekcal_2_E(-1.0),
44 const Z_type RT = 1,
45 const size_t minLoopLength = 3);
46
47 /***
48 * Destructor of AccessibilityBasePair
49 */
51
52 /***
53 * Returns the accessibility energy value between the indices (from, to)
54 * in the given sequence.
55 * @param from The start index of the region
56 * @param to The end index of the region
57 *
58 * @return The ED Value
59 *
60 * @throw std::runtime_error in case it does not hold 0 <= from <= to < seq.length
61 */
62 virtual E_type getED( const size_t from, const size_t to ) const;
63
64protected:
65
69 const Z_type RT;
73 const size_t minLoopLength;
74
75 /***
76 * Results of getED lookup table
77 */
79
80};
81
82} // namespace IntaRNA
83
84#endif /* INTARNA_ACCESSIBILITYBASEPAIR_H_ */
Definition AccessibilityBasePair.h:25
const size_t minLoopLength
minimum length of loops
Definition AccessibilityBasePair.h:73
NussinovHandler::E2dMatrix logPu
Definition AccessibilityBasePair.h:78
AccessibilityBasePair(const RnaSequence &seq, const size_t maxLength, const AccessibilityConstraint *const accConstr, const E_type basePairEnergy=Ekcal_2_E(-1.0), const Z_type RT=1, const size_t minLoopLength=3)
virtual E_type getED(const size_t from, const size_t to) const
const E_type basePairEnergy
energy of an individual base pair
Definition AccessibilityBasePair.h:67
const Z_type RT
temperature constant for normalization
Definition AccessibilityBasePair.h:69
const Z_type basePairWeight
Boltzmann Energy weight.
Definition AccessibilityBasePair.h:71
Definition AccessibilityConstraint.h:26
Definition Accessibility.h:25
const RnaSequence & seq
the RNA sequence the accessibilities correspond to
Definition Accessibility.h:179
const size_t maxLength
the maximal length of an unpaired regions to be considered
Definition Accessibility.h:182
Definition RnaSequence.h:29
#define Ekcal_2_E(e)
convert energy in kcal/mol units to internal energy type
Definition general.h:113
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