RNAlib-2.2.0RC0
plot_layouts.h
Go to the documentation of this file.
1 
9 #ifndef __VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H__
10 #define __VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H__
11 
13 #include <ViennaRNA/naview.h>
14 
15 #ifndef PI
16 #define PI 3.141592654
17 #endif
18 #define PIHALF PI/2.
19 
20 
29 #define VRNA_PLOT_TYPE_SIMPLE 0
30 
39 #define VRNA_PLOT_TYPE_NAVIEW 1
40 
49 #define VRNA_PLOT_TYPE_CIRCULAR 2
50 
55 typedef struct {
56  float X; /* X coords */
57  float Y; /* Y coords */
58 } COORDINATE;
59 
72 extern int rna_plot_type;
73 
85 int simple_xy_coordinates(short *pair_table,
86  float *X,
87  float *Y);
88 
109 int simple_circplot_coordinates(short *pair_table,
110  float *x,
111  float *y);
112 
113 
114 #endif
int rna_plot_type
Switch for changing the secondary structure layout algorithm.
int simple_xy_coordinates(short *pair_table, float *X, float *Y)
Calculate nucleotide coordinates for secondary structure plot the Simple way
All datastructures and typedefs shared among the Vienna RNA Package can be found here.
int simple_circplot_coordinates(short *pair_table, float *x, float *y)
Calculate nucleotide coordinates for Circular Plot
this is a workarround for the SWIG Perl Wrapper RNA plot function that returns an array of type COORD...
Definition: plot_layouts.h:55