RNAlib-2.4.4
plot_layouts.h
Go to the documentation of this file.
1 
11 #ifndef VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H
12 #define VIENNA_RNA_PACKAGE_PLOT_LAYOUTS_H
13 
15 #include <ViennaRNA/naview.h>
16 
17 #ifndef PI
18 #define PI 3.141592654
19 #endif
20 #define PIHALF PI/2.
21 
22 
31 #define VRNA_PLOT_TYPE_SIMPLE 0
32 
41 #define VRNA_PLOT_TYPE_NAVIEW 1
42 
51 #define VRNA_PLOT_TYPE_CIRCULAR 2
52 
57 typedef struct {
58  float X; /* X coords */
59  float Y; /* Y coords */
60 } COORDINATE;
61 
74 extern int rna_plot_type;
75 
87 int simple_xy_coordinates(short *pair_table,
88  float *X,
89  float *Y);
90 
111 int simple_circplot_coordinates(short *pair_table,
112  float *x,
113  float *y);
114 
120 #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:57