1 /* Last changed Time-stamp: <2008-06-27 17:21:42 ivo> */
5 *** global variables to change behaviour of folding routines<BR>
6 *** Also there are some functions that make the live easier when
7 *** using functions of the Vienna RNA package
11 #include "fold_vars.h"
15 int noGU = 0; /* GU not allowed at all */
17 int no_closingGU = 0; /* GU allowed only inside stacks */
19 int tetra_loop = 1; /* Fold with specially stable 4-loops */
21 int energy_set = 0; /* 0 = BP; 1=any with GC; 2=any with AU parameters */
23 int dangles = 2; /* use dangling end energies */
25 char *nonstandards = (char *)0; /* contains allowed non standard bases */
27 double temperature = 37.0;
29 int james_rule = 1; /* interior loops of size 2 get energy 0.8Kcal and
30 no mismatches (no longer used) */
32 int oldAliEn = 0; /* use old alifold-energies (without removing gaps) */
34 int ribo = 0; /* use ribosum instead of classic covariance term */
36 char *RibosumFile = NULL; /* TODO: compile ribosums into program
37 Warning: this variable will vanish */
39 int csv = 0; /*generate comma seperated output*/
41 bondT *base_pair = NULL;
43 FLT_OR_DBL *pr = NULL; /* base pairing prob. matrix */
45 int *iindx = NULL; /* pr[i,j] -> pr[iindx[i]-j] */
47 double pf_scale = -1; /* scaling factor to avoid floating point overflows */
49 int fold_constrained = 0; /* fold with constraints */
51 int do_backtrack = 1; /* calculate pair prob matrix in part_func() */
53 int noLonelyPairs = 0; /* avoid helices of length 1 */
55 char backtrack_type = 'F'; /* 'C' require (1,N) to be bonded;
56 'M' seq is part of s multi loop */
62 int gquad = 0; /* consider g-qudruplexes in the calculations */
64 PUBLIC char * option_string(void){
65 static char options[100];
67 if (noGU) strcat(options, "-noGU ");
68 if (no_closingGU) strcat(options, "-noCloseGU ");
69 if (!tetra_loop) strcat(options, "-4 ");
70 if (noLonelyPairs) strcat(options, "-noLP ");
71 if (fold_constrained) strcat(options, "-C ");
72 if (dangles!=1) sprintf(options+strlen(options), "-d%d ", dangles);
73 if (temperature!=37.0)
74 sprintf(options+strlen(options), "-T %f ", temperature);
78 PUBLIC void set_model_details(model_detailsT *md){
80 md->dangles = dangles;
81 md->special_hp = tetra_loop;
82 md->noLP = noLonelyPairs;
84 md->noGUclosure = no_closingGU;