RNAlib-2.3.1
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 
18 /* make this interface backward compatible with RNAlib < 2.2.0 */
19 #define VRNA_BACKWARD_COMPAT
20 
21 /* below are several convenience typedef's we use throughout the ViennaRNA library */
22 
26 typedef struct vrna_path_s vrna_path_t;
27 
28 
29 #ifdef VRNA_BACKWARD_COMPAT
30 
31 /* the following typedefs are for backward compatibility only */
32 
37 typedef struct vrna_path_s path_t;
38 
39 #endif
40 
42 
47 struct vrna_path_s {
48  double en;
49  char *s;
50 };
51 
52 
76  const char *struc1,
77  const char *struc2,
78  int max);
79 
103  const char *s1,
104  const char* s2,
105  int maxkeep);
106 
107 #ifdef VRNA_BACKWARD_COMPAT
108 
121 int find_saddle(const char *seq,
122  const char *struc1,
123  const char *struc2,
124  int max);
130 void free_path(vrna_path_t *path);
131 
144 vrna_path_t *get_path(const char *seq,
145  const char *s1,
146  const char* s2,
147  int maxkeep);
148 
149 #endif
150 
155 #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:49
The most basic data structure required by many functions throughout the RNAlib.
Definition: data_structures.h:454
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:47
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)
Various data structures and pre-processor macros.
double en
Free energy of current structure.
Definition: findpath.h:48
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)