RNAlib-2.3.1
plot_layouts.h
Go to the documentation of this file.
1 
12 #ifndef VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H
13 #define VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H
14 
16 #include <ViennaRNA/naview.h>
17 
18 #ifndef PI
19 #define PI 3.141592654
20 #endif
21 #define PIHALF PI/2.
22 
23 
32 #define VRNA_PLOT_TYPE_SIMPLE 0
33 
42 #define VRNA_PLOT_TYPE_NAVIEW 1
43 
52 #define VRNA_PLOT_TYPE_CIRCULAR 2
53 
58 typedef struct {
59  float X; /* X coords */
60  float Y; /* Y coords */
61 } COORDINATE;
62 
75 extern int rna_plot_type;
76 
88 int simple_xy_coordinates(short *pair_table,
89  float *X,
90  float *Y);
91 
112 int simple_circplot_coordinates(short *pair_table,
113  float *x,
114  float *y);
115 
121 #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.
Various data structures and pre-processor macros.
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:58