RNAlib-2.2.7
plot_layouts.h
Go to the documentation of this file.
1 
13 #ifndef VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H
14 #define VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H
15 
17 #include <ViennaRNA/naview.h>
18 
19 #ifndef PI
20 #define PI 3.141592654
21 #endif
22 #define PIHALF PI/2.
23 
24 
33 #define VRNA_PLOT_TYPE_SIMPLE 0
34 
43 #define VRNA_PLOT_TYPE_NAVIEW 1
44 
53 #define VRNA_PLOT_TYPE_CIRCULAR 2
54 
59 typedef struct {
60  float X; /* X coords */
61  float Y; /* Y coords */
62 } COORDINATE;
63 
76 extern int rna_plot_type;
77 
89 int simple_xy_coordinates(short *pair_table,
90  float *X,
91  float *Y);
92 
113 int simple_circplot_coordinates(short *pair_table,
114  float *x,
115  float *y);
116 
122 #endif
int simple_xy_coordinates(short *pair_table, float *X, float *Y)
Calculate nucleotide coordinates for secondary structure plot the Simple way
int rna_plot_type
Switch for changing the secondary structure layout algorithm.
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:59