findpath.h
Go to the documentation of this file.
#ifndef VIENNA_RNA_PACKAGE_FIND_PATH_H
#define VIENNA_RNA_PACKAGE_FIND_PATH_H
/* make this interface backward compatible with RNAlib < 2.2.0 */
#define VRNA_BACKWARD_COMPAT
/* below are several convenience typedef's we use throughout the ViennaRNA library */
typedef struct vrna_path_s vrna_path_t;
#ifdef VRNA_BACKWARD_COMPAT
/* the following typedefs are for backward compatibility only */
typedef struct vrna_path_s path_t;
#endif
#include <ViennaRNA/data_structures.h>
struct vrna_path_s {
double en;
char *s;
};
int vrna_path_findpath_saddle(vrna_fold_compound_t *vc,
const char *struc1,
const char *struc2,
int max);
vrna_path_t *vrna_path_findpath(vrna_fold_compound_t *vc,
const char *s1,
const char* s2,
int maxkeep);
#ifdef VRNA_BACKWARD_COMPAT
int find_saddle(const char *seq,
const char *struc1,
const char *struc2,
int max);
void free_path(vrna_path_t *path);
vrna_path_t *get_path(const char *seq,
const char *s1,
const char* s2,
int maxkeep);
#endif
#endif
free_path
void free_path(vrna_path_t *path)
Free memory allocated by get_path() function.
vrna_path_s::s
char * s
Secondary structure in dot-bracket notation.
Definition: findpath.h:44
vrna_fc_s
The most basic data structure required by many functions throughout the RNAlib.
Definition: data_structures.h:390
vrna_path_findpath
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)
vrna_path_s
An element of a refolding path list.
Definition: findpath.h:42
get_path
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)
data_structures.h
vrna_path_s::en
double en
Free energy of current structure.
Definition: findpath.h:43
find_saddle
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)
vrna_path_findpath_saddle
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)