RNAlib-2.4.10
file_formats.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_FILE_FORMATS_H
2 #define VIENNA_RNA_PACKAGE_FILE_FORMATS_H
3 
4 #ifdef VRNA_WARN_DEPRECATED
5 # if defined(__clang__)
6 # define DEPRECATED(func, msg) func __attribute__ ((deprecated("", msg)))
7 # elif defined(__GNUC__)
8 # define DEPRECATED(func, msg) func __attribute__ ((deprecated(msg)))
9 # else
10 # define DEPRECATED(func, msg) func
11 # endif
12 #else
13 # define DEPRECATED(func, msg) func
14 #endif
15 
28 #include <stdio.h>
29 
31 
40 void vrna_file_helixlist( const char *seq,
41  const char *db,
42  float energy,
43  FILE *file);
44 
68 void vrna_file_connect( const char *seq,
69  const char *db,
70  float energy,
71  const char *identifier,
72  FILE *file);
73 
81 void vrna_file_bpseq( const char *seq,
82  const char *db,
83  FILE *file);
84 
85 #if VRNA_WITH_JSON_SUPPORT
86 
96 void vrna_file_json(const char *seq,
97  const char *db,
98  double energy,
99  const char *identifier,
100  FILE *file);
101 
102 #endif
103 
113 #define VRNA_OPTION_MULTILINE 32U
114 
118 #define VRNA_CONSTRAINT_MULTILINE 32U
119 
184 unsigned int vrna_file_fasta_read_record(char **header,
185  char **sequence,
186  char ***rest,
187  FILE *file,
188  unsigned int options);
189 
206 char *vrna_extract_record_rest_structure( const char **lines,
207  unsigned int length,
208  unsigned int option);
209 
222 int vrna_file_SHAPE_read( const char *file_name,
223  int length,
224  double default_value,
225  char *sequence,
226  double *values);
227 
228 
229 #ifndef VRNA_DISABLE_BACKWARD_COMPATIBILITY
230 
247 DEPRECATED(void vrna_extract_record_rest_constraint( char **cstruc, const char **lines, unsigned int option),
248  "This function is obsolete");
249 
254 DEPRECATED(char *extract_record_rest_structure( const char **lines,
255  unsigned int length,
256  unsigned int option),
257  "Use vrna_extract_record_rest_structure() instead");
258 
265 DEPRECATED(unsigned int read_record(char **header,
266  char **sequence,
267  char ***rest,
268  unsigned int options),
269  "Use vrna_file_fasta_read_record() instead");
270 
271 
272 DEPRECATED(unsigned int get_multi_input_line(char **string, unsigned int options),
273  "This function is obsolete");
274 
275 #endif
276 
281 #endif
void vrna_file_helixlist(const char *seq, const char *db, float energy, FILE *file)
Print a secondary structure as helix list.
int vrna_file_SHAPE_read(const char *file_name, int length, double default_value, char *sequence, double *values)
Read data from a given SHAPE reactivity input file.
Various data structures and pre-processor macros.
unsigned int read_record(char **header, char **sequence, char ***rest, unsigned int options)
Get a data record from stdin.
void vrna_file_json(const char *seq, const char *db, double energy, const char *identifier, FILE *file)
Print a secondary structure in jsonformat.
void vrna_file_bpseq(const char *seq, const char *db, FILE *file)
Print a secondary structure in bpseq format.
unsigned int vrna_file_fasta_read_record(char **header, char **sequence, char ***rest, FILE *file, unsigned int options)
Get a (fasta) data set from a file or stdin.
void vrna_file_connect(const char *seq, const char *db, float energy, const char *identifier, FILE *file)
Print a secondary structure as connect table.
char * vrna_extract_record_rest_structure(const char **lines, unsigned int length, unsigned int option)
Extract a dot-bracket structure string from (multiline)character array.
void vrna_extract_record_rest_constraint(char **cstruc, const char **lines, unsigned int option)
Extract a hard constraint encoded as pseudo dot-bracket string.