Functions | |
int | vrna_bp_distance_pt (const short *pt1, const short *pt2) |
Compute the "base pair" distance between two pair tables pt1 and pt2 of secondary structures. More... | |
int | vrna_bp_distance (const char *str1, const char *str2) |
Compute the "base pair" distance between two secondary structures s1 and s2. More... | |
int vrna_bp_distance_pt | ( | const short * | pt1, |
const short * | pt2 | ||
) |
#include <ViennaRNA/utils/structures.h>
Compute the "base pair" distance between two pair tables pt1 and pt2 of secondary structures.
The pair tables should have the same length. dist = number of base pairs in one structure but not in the other same as edit distance with open-pair close-pair as move-set
pt1 | First structure in dot-bracket notation |
pt2 | Second structure in dot-bracket notation |
int vrna_bp_distance | ( | const char * | str1, |
const char * | str2 | ||
) |
#include <ViennaRNA/utils/structures.h>
Compute the "base pair" distance between two secondary structures s1 and s2.
This is a wrapper around vrna_bp_distance_pt(). The sequences should have the same length. dist = number of base pairs in one structure but not in the other same as edit distance with open-pair close-pair as move-set
str1 | First structure in dot-bracket notation |
str2 | Second structure in dot-bracket notation |
options
can be used. See also the description of vrna_ptable_from_string() for available options. (default: VRNA_BRACKETS_RND).