4 /* used data structure*/
5 typedef struct _struct_en{
6 int energy; /* energy in 10kcal/mol*/
7 short *structure; /* structure in energy_of_move format*/
11 void print_stren(FILE *out, struct_en *str);
12 void print_str(FILE *out, short *str);
14 /* copying functions*/
15 void copy_arr(short *dest, short *src); /*just copy*/
16 short *allocopy(short *src); /*copy and make space*/
18 /* walking methods (verbose_lvl 0-2, shifts = use shift moves? noLP = no lone pairs? (not compatible with shifts))
20 ptable - structure encoded with make_pair_table() from pair_mat.h
21 s, s1 - sequence encoded with encode_sequence from pair_mat.h
22 methods: deepest - lowest energy structure is used
23 first - first found lower energy structure is used
24 rand - random lower energy structure is used
25 returns local minima structure in ptable and its energy in 10kcal/mol as output */
27 int move_deepest( char *seq,
34 int move_first( char *seq,
41 int move_rand( char *seq,
48 /* browse_neighbours and do funct function on each of them (used mainly for user specified flooding)
50 ptable - structure encoded with make_pair_table() from pair_mat.h
51 s, s1 - sequence encoded with encode_sequence from pair_mat.h
52 funct - function (moved structure, current structure (or altered by funct)) to do with every structure in neigbourhood
53 returns energy of the structure funct sets as second argument*/
54 int browse_neighs( char *seq,
61 int (*funct) (struct_en*, struct_en*));