RNAlib-2.1.9h
RNAstruct.h
Go to the documentation of this file.
1#ifndef __VIENNA_RNA_PACKAGE_RNASTRUCT_H__
2#define __VIENNA_RNA_PACKAGE_RNASTRUCT_H__
3
24#define STRUC 2000
25
33char *b2HIT(const char *structure); /* Full -> HIT [incl. root] */
34
42char *b2C(const char *structure); /* Full -> Coarse [incl. root] */
43
52char *b2Shapiro(const char *structure); /* Full -> weighted Shapiro [i.r.] */
53
60char *add_root(const char *structure); /* {Tree} -> ({Tree}R) */
61
69char *expand_Shapiro(const char *coarse);
70
71/* add S for stacks to coarse struct */
79char *expand_Full(const char *structure); /* Full -> FFull */
80
88char *unexpand_Full(const char *ffull); /* FFull -> Full */
89
96char *unweight(const char *wcoarse); /* remove weights from coarse struct */
97
107void unexpand_aligned_F(char *align[2]);
108
119void parse_structure(const char *structure); /* make structure statistics */
120
125extern int loop_size[STRUC]; /* loop sizes of a structure */
126
130extern int helix_size[STRUC]; /* helix sizes of a structure */
131
135extern int loop_degree[STRUC]; /* loop degrees of a structure */
136
140extern int loops; /* n of loops and stacks */
141
145extern int unpaired;
146
150extern int pairs; /* n of unpaired digits and pairs */
151
152#endif
char * expand_Shapiro(const char *coarse)
Inserts missing 'S' identifiers in unweighted coarse grained structures as obtained from b2C().
void unexpand_aligned_F(char *align[2])
Converts two aligned structures in expanded notation.
char * b2Shapiro(const char *structure)
Converts the full structure from bracket notation to the weighted coarse grained notation using the '...
void parse_structure(const char *structure)
Collects a statistic of structure elements of the full structure in bracket notation.
int loop_size[STRUC]
contains a list of all loop sizes. loop_size[0] contains the number of external bases.
int loops
contains the number of loops ( and therefore of stacks ).
char * unweight(const char *wcoarse)
Strip weights from any weighted tree.
int pairs
contains the number of base pairs in the last parsed structure.
char * expand_Full(const char *structure)
Convert the full structure from bracket notation to the expanded notation including root.
int helix_size[STRUC]
contains a list of all stack sizes.
char * b2C(const char *structure)
Converts the full structure from bracket notation to the a coarse grained notation using the 'H' 'B' ...
char * b2HIT(const char *structure)
Converts the full structure from bracket notation to the HIT notation including root.
char * unexpand_Full(const char *ffull)
Restores the bracket notation from an expanded full or HIT tree, that is any tree using only identifi...
int unpaired
contains the number of unpaired bases.
int loop_degree[STRUC]
contains the corresponding list of loop degrees.
char * add_root(const char *structure)
Adds a root to an un-rooted tree in any except bracket notation.