|
RNAlib-2.1.9
|
Secondary structure plot layout algorithms. More...
Include dependency graph for plot_layouts.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Macros | |
| #define | VRNA_PLOT_TYPE_SIMPLE 0 |
| Definition of Plot type simple More... | |
| #define | VRNA_PLOT_TYPE_NAVIEW 1 |
| Definition of Plot type Naview More... | |
| #define | VRNA_PLOT_TYPE_CIRCULAR 2 |
| Definition of Plot type Circular More... | |
Functions | |
| int | simple_xy_coordinates (short *pair_table, float *X, float *Y) |
| Calculate nucleotide coordinates for secondary structure plot the Simple way More... | |
| int | simple_circplot_coordinates (short *pair_table, float *x, float *y) |
| Calculate nucleotide coordinates for Circular Plot More... | |
Variables | |
| int | rna_plot_type |
| Switch for changing the secondary structure layout algorithm. More... | |
Secondary structure plot layout algorithms.
c Ronny Lorenz The ViennaRNA Package
| #define VRNA_PLOT_TYPE_SIMPLE 0 |
Definition of Plot type simple
This is the plot type definition for several RNA structure plotting functions telling them to use Simple plotting algorithm
| #define VRNA_PLOT_TYPE_NAVIEW 1 |
Definition of Plot type Naview
This is the plot type definition for several RNA structure plotting functions telling them to use Naview plotting algorithm
| #define VRNA_PLOT_TYPE_CIRCULAR 2 |
Definition of Plot type Circular
This is the plot type definition for several RNA structure plotting functions telling them to produce a Circular plot
| int simple_xy_coordinates | ( | short * | pair_table, |
| float * | X, | ||
| float * | Y | ||
| ) |
Calculate nucleotide coordinates for secondary structure plot the Simple way
| pair_table | The pair table of the secondary structure |
| X | a pointer to an array with enough allocated space to hold the x coordinates |
| Y | a pointer to an array with enough allocated space to hold the y coordinates |
| int simple_circplot_coordinates | ( | short * | pair_table, |
| float * | x, | ||
| float * | y | ||
| ) |
Calculate nucleotide coordinates for Circular Plot
This function calculates the coordinates of nucleotides mapped in equal distancies onto a unit circle.
in addition to the actual R2 coordinates. the simplest way to do so may be to compute a radius scaling factor
in the interval
that weights the proportion of base pair span to the actual length of the sequence. This scaling factor can then be used to calculate the coordinates for
, i.e.
and
.| pair_table | The pair table of the secondary structure |
| x | a pointer to an array with enough allocated space to hold the x coordinates |
| y | a pointer to an array with enough allocated space to hold the y coordinates |
| int rna_plot_type |
Switch for changing the secondary structure layout algorithm.
Current possibility are 0 for a simple radial drawing or 1 for the modified radial drawing taken from the naview program of Bruccoleri & Heinrich (1988).