RNAlib-2.2.7
findpath.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_FIND_PATH_H
2 #define VIENNA_RNA_PACKAGE_FIND_PATH_H
3 
13 /* make this interface backward compatible with RNAlib < 2.2.0 */
14 #define VRNA_BACKWARD_COMPAT
15 
16 /* below are several convenience typedef's we use throughout the ViennaRNA library */
17 
21 typedef struct vrna_path_s vrna_path_t;
22 
23 
24 #ifdef VRNA_BACKWARD_COMPAT
25 
26 /* the following typedefs are for backward compatibility only */
27 
32 typedef struct vrna_path_s path_t;
33 
34 #endif
35 
37 
42 struct vrna_path_s {
43  double en;
44  char *s;
45 };
46 
47 
71  const char *struc1,
72  const char *struc2,
73  int max);
74 
98  const char *s1,
99  const char* s2,
100  int maxkeep);
101 
102 #ifdef VRNA_BACKWARD_COMPAT
103 
116 int find_saddle(const char *seq,
117  const char *struc1,
118  const char *struc2,
119  int max);
125 void free_path(vrna_path_t *path);
126 
139 vrna_path_t *get_path(const char *seq,
140  const char *s1,
141  const char* s2,
142  int maxkeep);
143 
144 #endif
145 
150 #endif
void free_path(vrna_path_t *path)
Free memory allocated by get_path() function.
char * s
Secondary structure in dot-bracket notation.
Definition: findpath.h:44
The most basic data structure required by many functions throughout the RNAlib.
Definition: data_structures.h:390
vrna_path_t * vrna_path_findpath(vrna_fold_compound_t *vc, const char *s1, const char *s2, int maxkeep)
Find refolding path between 2 structures (search only direct path)
An element of a refolding path list.
Definition: findpath.h:42
vrna_path_t * get_path(const char *seq, const char *s1, const char *s2, int maxkeep)
Find refolding path between 2 structures (search only direct path)
double en
Free energy of current structure.
Definition: findpath.h:43
int find_saddle(const char *seq, const char *struc1, const char *struc2, int max)
Find energy of a saddle point between 2 structures (search only direct path)
int vrna_path_findpath_saddle(vrna_fold_compound_t *vc, const char *struc1, const char *struc2, int max)
Find energy of a saddle point between 2 structures (search only direct path)