RNAlib-2.2.9

- Main Page
- Related Pages
- Modules
- Data Structures
- Files

- File List
- Globals

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
16 #include <ViennaRNA/data_structures.h>
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
simple_xy_coordinates
int simple_xy_coordinates(short *pair_table, float *X, float *Y)
Calculate nucleotide coordinates for secondary structure plot the Simple way
rna_plot_type
int rna_plot_type
Switch for changing the secondary structure layout algorithm.
data_structures.h
simple_circplot_coordinates
int simple_circplot_coordinates(short *pair_table, float *x, float *y)
Calculate nucleotide coordinates for Circular Plot
naview.h
COORDINATE
this is a workarround for the SWIG Perl Wrapper RNA plot function that returns an array of type COORD...
Definition: plot_layouts.h:59