RNAlib-2.4.3
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 
80 
104  const char *s1,
105  const char *s2,
106  int maxkeep);
107 
108 
109 #ifdef VRNA_BACKWARD_COMPAT
110 
123 int find_saddle(const char *seq,
124  const char *struc1,
125  const char *struc2,
126  int max);
127 
128 
134 void free_path(vrna_path_t *path);
135 
136 
149 vrna_path_t *get_path(const char *seq,
150  const char *s1,
151  const char *s2,
152  int maxkeep);
153 
154 
155 #endif
156 
161 #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: fold_compound.h:130
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)