RNAlib-2.6.3
 
Loading...
Searching...
No Matches
probabilities.h
Go to the documentation of this file.
1#ifndef VIENNA_RNA_PACKAGE_PLOT_PROBABILITIES_H
2#define VIENNA_RNA_PACKAGE_PLOT_PROBABILITIES_H
3
4
7
8#ifdef VRNA_WARN_DEPRECATED
9# if defined(__clang__)
10# define DEPRECATED(func, msg) func __attribute__ ((deprecated("", msg)))
11# elif defined(__GNUC__)
12# define DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))
13# else
14# define DEPRECATED(func, msg) func
15# endif
16#else
17# define DEPRECATED(func, msg) func
18#endif
19
37#define VRNA_PLOT_PROBABILITIES_BP 1U
38
39
43#define VRNA_PLOT_PROBABILITIES_ACC 2U
44
45
49#define VRNA_PLOT_PROBABILITIES_UD 4U
50
51
55#define VRNA_PLOT_PROBABILITIES_UD_LIN 8U
56
57
61#define VRNA_PLOT_PROBABILITIES_SD 16U
62
63
67#define VRNA_PLOT_PROBABILITIES_SC_MOTIF 32U
68#define VRNA_PLOT_PROBABILITIES_SC_UP 64U
69#define VRNA_PLOT_PROBABILITIES_SC_BP 128U
70
81#define VRNA_PLOT_PROBABILITIES_DEFAULT (VRNA_PLOT_PROBABILITIES_BP \
82 | VRNA_PLOT_PROBABILITIES_SD \
83 | VRNA_PLOT_PROBABILITIES_SC_MOTIF \
84 | VRNA_PLOT_PROBABILITIES_UD_LIN)
85
86
87typedef struct {
88 char *comment;
89 char *title;
90
91 vrna_data_lin_t **top;
92 char **top_title;
93
94 vrna_data_lin_t **bottom;
95 char **bottom_title;
96
97 vrna_data_lin_t **left;
98 char **left_title;
99
100 vrna_data_lin_t **right;
101 char **right_title;
103
104
125int
126vrna_plot_dp_EPS(const char *filename,
127 const char *sequence,
128 vrna_ep_t *upper,
129 vrna_ep_t *lower,
130 vrna_dotplot_auxdata_t *auxdata,
131 unsigned int options);
132
133
153int
155 int cp,
156 char *filename,
157 vrna_ep_t *pl,
158 vrna_ep_t *mf,
159 char *comment);
160
161
166#ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
167
173int
174PS_color_dot_plot(char *string,
175 vrna_cpair_t *pi,
176 char *filename);
177
178
179int
180PS_color_dot_plot_turn(char *seq,
181 vrna_cpair_t *pi,
182 char *filename,
183 int winSize);
184
185
186int
187PS_dot_plot_turn(char *seq,
188 vrna_ep_t *pl,
189 char *filename,
190 int winSize);
191
192
212DEPRECATED(int PS_dot_plot_list(char *seq,
213 char *filename,
214 vrna_ep_t *pl,
215 vrna_ep_t *mf,
216 char *comment),
217 "Use vrna_plot_dp_PS_list() instead");
218
219
235DEPRECATED(int PS_dot_plot(char *string,
236 char *file),
237 "Use vrna_plot_dp_EPS() instead");
238
243#endif
244
245
246#endif
Various data structures and pre-processor macros.
this datastructure is used as input parameter in functions of PS_dot.c
Definition basic.h:112
Definition basic.h:124
int vrna_plot_dp_PS_list(char *seq, int cp, char *filename, vrna_ep_t *pl, vrna_ep_t *mf, char *comment)
Produce a postscript dot-plot from two pair lists.
int vrna_plot_dp_EPS(const char *filename, const char *sequence, vrna_ep_t *upper, vrna_ep_t *lower, vrna_dotplot_auxdata_t *auxdata, unsigned int options)
Produce an encapsulate PostScript (EPS) dot-plot from one or two lists of base pair probabilities.
Definition probabilities.h:87
int PS_dot_plot_list(char *seq, char *filename, vrna_ep_t *pl, vrna_ep_t *mf, char *comment)
Produce a postscript dot-plot from two pair lists.
int PS_dot_plot(char *string, char *file)
Produce postscript dot-plot.
Data structure representing a single entry of an element probability list (e.g. list of pair probabil...
Definition structures.h:486
Various utility- and helper-functions for secondary structure parsing, converting,...