1 #ifndef VIENNA_RNA_PACKAGE_MODEL_H
2 #define VIENNA_RNA_PACKAGE_MODEL_H
5 #define DEPRECATED(func) func __attribute__ ((deprecated))
7 #define DEPRECATED(func) func
12 #define VRNA_BACKWARD_COMPAT
30 #define VRNA_MODEL_DEFAULT_TEMPERATURE 37.0
36 #define VRNA_MODEL_DEFAULT_PF_SCALE -1
42 #define VRNA_MODEL_DEFAULT_BETA_SCALE 1.
47 #define VRNA_MODEL_DEFAULT_DANGLES 2
53 #define VRNA_MODEL_DEFAULT_SPECIAL_HP 1
59 #define VRNA_MODEL_DEFAULT_NO_LP 0
65 #define VRNA_MODEL_DEFAULT_NO_GU 0
71 #define VRNA_MODEL_DEFAULT_NO_GU_CLOSURE 0
77 #define VRNA_MODEL_DEFAULT_CIRC 0
83 #define VRNA_MODEL_DEFAULT_GQUAD 0
85 #define VRNA_MODEL_DEFAULT_CANONICAL_BP 0
91 #define VRNA_MODEL_DEFAULT_UNIQ_ML 0
97 #define VRNA_MODEL_DEFAULT_ENERGY_SET 0
103 #define VRNA_MODEL_DEFAULT_BACKTRACK 1
109 #define VRNA_MODEL_DEFAULT_BACKTRACK_TYPE 'F'
115 #define VRNA_MODEL_DEFAULT_COMPUTE_BPP 1
121 #define VRNA_MODEL_DEFAULT_MAX_BP_SPAN -1
127 #define VRNA_MODEL_DEFAULT_LOG_ML 0
133 #define VRNA_MODEL_DEFAULT_ALI_OLD_EN 0
139 #define VRNA_MODEL_DEFAULT_ALI_RIBO 0
145 #define VRNA_MODEL_DEFAULT_ALI_CV_FACT 1.
150 #define VRNA_MODEL_DEFAULT_ALI_NC_FACT 1.
153 #ifdef VRNA_BACKWARD_COMPAT
221 void vrna_md_set_nonstandards(
vrna_md_t *md,
const char *ns);
224 void vrna_md_set_dangles(
vrna_md_t *md,
int d);
230 void vrna_md_set_temperature(
vrna_md_t *md,
double T);
233 double vrna_md_get_temperature(
vrna_md_t *md);
236 void vrna_md_set_special_hp(
vrna_md_t *md,
int shp);
239 int vrna_md_get_special_hp(
vrna_md_t *md);
242 void vrna_md_set_gquad(
vrna_md_t *md,
int g);
248 void vrna_md_set_nolp(
vrna_md_t *md,
int nolp);
254 void vrna_md_set_betascale(
vrna_md_t *md,
double b);
257 double vrna_md_get_betascale(
vrna_md_t *md);
289 #ifdef VRNA_BACKWARD_COMPAT
291 #define model_detailsT vrna_md_t
292 #define set_model_details(a) vrna_md_set_globals(a)
int noLP
Only consider canonical structures, i.e. no 'lonely' base pairs.
Definition: model.h:179
int special_hp
Include special hairpin contributions for tri, tetra and hexaloops.
Definition: model.h:178
char * nonstandards
contains allowed non standard base pairs
int uniq_ML
Flag to ensure unique multibranch loop decomposition during folding.
Definition: model.h:186
double cv_fact
Covariance scaling factor for consensus structure prediction.
Definition: model.h:201
double cv_fact
This variable controls the weight of the covariance term in the energy function of alignment folding ...
char backtrack_type
Specifies in which matrix to backtrack.
Definition: model.h:189
int energy_set
0 = BP; 1=any mit GC; 2=any mit AU-parameter
int noGUclosure
Do not allow loops to be closed by GU pair.
Definition: model.h:181
int backtrack
Specifies whether or not secondary structures should be backtraced.
Definition: model.h:188
int oldAliEn
use old alifold energies (with gaps)
int no_closingGU
GU allowed only inside stacks if set to 1.
int circ
backward compatibility variable.. this does not effect anything
double sfact
Scaling factor for partition function scaling.
Definition: model.h:203
int dangles
Switch the energy model for dangling end contributions (0, 1, 2, 3)
int gquad
Include G-quadruplexes in structure prediction.
Definition: model.h:184
int do_backtrack
do backtracking, i.e. compute secondary structures or base pair probabilities
double nc_fact
This variable controls the magnitude of the penalty for non-compatible sequences in the covariance te...
int max_bp_span
Maximum allowed base pair span.
char backtrack_type
A backtrack array marker for inverse_fold()
int max_bp_span
maximum allowed base pair span
Definition: model.h:192
int ribo
Use ribosum scoring table in alifold energy model.
Definition: model.h:200
double betaScale
A scaling factor for the thermodynamic temperature of the Boltzmann factors.
Definition: model.h:171
int uniq_ML
do ML decomposition uniquely (for subopt)
int logML
if nonzero use logarithmic ML energy in energy_of_struct
int min_loop_size
Minimum size of hairpin loops.
Definition: model.h:194
int tetra_loop
Include special stabilizing energies for some tri-, tetra- and hexa-loops;.
int dangles
Specifies the dangle model used in any energy evaluation (0,1,2 or 3)
Definition: model.h:172
void vrna_md_update(vrna_md_t *md)
Update the model details data structure.
int logML
Use logarithmic scaling for multi loops.
Definition: model.h:182
void vrna_md_set_default(vrna_md_t *md)
Set default model details.
int energy_set
Specifies the energy set that defines set of compatible base pairs.
Definition: model.h:187
int ribo
use ribosum matrices
char nonstandards[33]
contains allowed non standard bases
Definition: model.h:191
int circ
Assume RNA to be circular instead of linear.
Definition: model.h:183
The data structure that contains the complete model details used throughout the calculations.
Definition: model.h:169
int gquad
Allow G-quadruplex formation.
double temperature
Rescale energy parameters to a temperature in degC.
double pf_scale
A scaling factor used by pf_fold() to avoid overflows.
double temperature
The temperature used to scale the thermodynamic parameters.
Definition: model.h:170
int noGU
Global switch to forbid/allow GU base pairs at all.
void vrna_md_set_globals(vrna_md_t *md)
Set default model details.
int noLonelyPairs
Global switch to avoid/allow helices of length 1.
int noGU
Do not allow GU pairs.
Definition: model.h:180
int oldAliEn
Use old alifold energy model.
Definition: model.h:199
int compute_bpp
Specifies whether or not backward recursions for base pair probability (bpp) computation will be perf...
Definition: model.h:190
int canonicalBPonly
remove non-canonical bp's from constraint structures
Definition: model.h:185
#define MAXALPHA
Maximal length of alphabet.
Definition: model.h:159