Secondary Structure Utilities — ViennaRNA Package

# Secondary Structure Utilities

Functions to create, parse, convert, manipulate, and compare secondary structure representations.

Specialized Modules:

- Dot-Bracket Notation of Secondary Structures
- Washington University Secondary Structure (WUSS) notation
- Pair Table Representation of Secondary Structures
- Pair List Representation of Secondary Structures
- Abstract Shapes Representation of Secondary Structures
- Helix List Representation of Secondary Structures
- Tree Representation of Secondary Structures
- Distance measures between Secondary Structures
- Benchmarking Secondary Structure Predictions
- Deprecated Interface for Secondary Structure Utilities

  Functions

  int *vrna_loopidx_from_ptable(const short *pt)

    Get a loop index representation of a structure.

        #include <ViennaRNA/structures/dotbracket.h>

  char *vrna_db_from_probs(const FLT_OR_DBL *pr, unsigned int length)

    Create a dot-bracket like structure string from base pair probability matrix.

        #include <ViennaRNA/structures/dotbracket.h>

    SWIG Wrapper Notes:

      This function is available as parameter-less method db_from_probs() bound to objects of type fold_compound. Parameters `pr` and `length` are implicitely taken from the fold_compound object the method is bound to. Upon missing base pair probabilities, this method returns an empty string. See, e.g. `RNA.db_from_probs()` in the Python API.

  char *vrna_pairing_tendency(vrna_fold_compound_t *fc)

        #include <ViennaRNA/structures/dotbracket.h>

  char vrna_bpp_symbol(const float *x)

    Get a pseudo dot bracket notation for a given probability information.

        #include <ViennaRNA/structures/dotbracket.h>

  char *vrna_db_from_bps(vrna_bps_t bp_stack, unsigned int length)

    Create a dot-backet/parenthesis structure from backtracking stack.

        #include <ViennaRNA/structures/dotbracket.h>

    This function is capable to create dot-bracket structures from base pairs stored within the base pair stack `bp_stack`.

    Parameters:

      - bp_stack – Base pair stack containing the traced base pairs

      - length – The length of the structure

    Returns:

      The secondary structure in dot-bracket notation as provided in the input

  char *vrna_db_from_bp_stack(vrna_bp_stack_t *bp, unsigned int length)

    Create a dot-backet/parenthesis structure from backtracking stack.

        #include <ViennaRNA/structures/dotbracket.h>

    This function is capable to create dot-bracket structures from suboptimal structure prediction sensu M. Zuker

    Parameters:

      - bp – Base pair stack containing the traced base pairs

      - length – The length of the structure

    Returns:

      The secondary structure in dot-bracket notation as provided in the input

  void vrna_letter_structure(char *structure, vrna_bp_stack_t *bp, unsigned int length)

        #include <ViennaRNA/structures/dotbracket.h>

  unsigned int *vrna_refBPcnt_matrix(const short *reference_pt, unsigned int turn)

    Make a reference base pair count matrix.

        #include <ViennaRNA/structures/utils.h>

    Get an upper triangular matrix containing the number of basepairs of a reference structure for each interval [i,j] with i<j. Access it via iindx!!!

  unsigned int *vrna_refBPdist_matrix(const short *pt1, const short *pt2, unsigned int turn)

    Make a reference base pair distance matrix.

        #include <ViennaRNA/structures/utils.h>

    Get an upper triangular matrix containing the base pair distance of two reference structures for each interval [i,j] with i<j. Access it via iindx!!!