RNAlib-2.5.1
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
32#define VRNA_PLOT_PROBABILITIES_BP 1U
33#define VRNA_PLOT_PROBABILITIES_ACC 2U
34
35#define VRNA_PLOT_PROBABILITIES_UD 4U
36#define VRNA_PLOT_PROBABILITIES_UD_LIN 8U
37
38#define VRNA_PLOT_PROBABILITIES_SD 16U
39
40#define VRNA_PLOT_PROBABILITIES_SC_MOTIF 32U
41#define VRNA_PLOT_PROBABILITIES_SC_UP 64U
42#define VRNA_PLOT_PROBABILITIES_SC_BP 128U
43
44#define VRNA_PLOT_PROBABILITIES_DEFAULT (VRNA_PLOT_PROBABILITIES_BP \
45 | VRNA_PLOT_PROBABILITIES_SD \
46 | VRNA_PLOT_PROBABILITIES_SC_MOTIF \
47 | VRNA_PLOT_PROBABILITIES_UD_LIN)
48typedef struct {
49 char *comment;
50 char *title;
51
52 vrna_data_lin_t **top;
53 char **top_title;
54
55 vrna_data_lin_t **bottom;
56 char **bottom_title;
57
58 vrna_data_lin_t **left;
59 char **left_title;
60
61 vrna_data_lin_t **right;
62 char **right_title;
64
65
66int
67vrna_plot_dp_EPS(const char *filename,
68 const char *sequence,
69 vrna_ep_t *upper,
70 vrna_ep_t *lower,
72 unsigned int options);
73
74
75int
76vrna_plot_dp_PS_list(char *seq,
77 int cp,
78 char *wastlfile,
79 vrna_ep_t *pl,
80 vrna_ep_t *mf,
81 char *comment);
82
83
84#ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
85
86int
87PS_color_dot_plot(char *string,
88 vrna_cpair_t *pi,
89 char *filename);
90
91
92int
93PS_color_dot_plot_turn(char *seq,
94 vrna_cpair_t *pi,
95 char *filename,
96 int winSize);
97
98
99int
100PS_dot_plot_turn(char *seq,
101 vrna_ep_t *pl,
102 char *filename,
103 int winSize);
104
105
125int PS_dot_plot_list(char *seq,
126 char *filename,
127 vrna_ep_t *pl,
128 vrna_ep_t *mf,
129 char *comment);
130
131
147DEPRECATED(int PS_dot_plot(char *string,
148 char *file),
149 "Use vrna_plot_dp_EPS() instead");
150
151#endif
152
157#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 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.
Definition: probabilities.h:48
Data structure representing a single entry of an element probability list (e.g. list of pair probabil...
Definition: structures.h:482
Various utility- and helper-functions for secondary structure parsing, converting,...