RNAlib-2.4.8
commands.h
Go to the documentation of this file.
1 #ifndef VIENNA_RNA_PACKAGE_COMMANDS_H
2 #define VIENNA_RNA_PACKAGE_COMMANDS_H
3 
18 typedef struct vrna_command_s *vrna_cmd_t;
19 
20 
22 
27 #define VRNA_CMD_PARSE_HC 1U
28 
32 #define VRNA_CMD_PARSE_SC 2U
33 
37 #define VRNA_CMD_PARSE_UD 4U
38 
42 #define VRNA_CMD_PARSE_SD 8U
43 
47 #define VRNA_CMD_PARSE_DEFAULTS (VRNA_CMD_PARSE_HC \
48  | VRNA_CMD_PARSE_SC \
49  | VRNA_CMD_PARSE_UD \
50  | VRNA_CMD_PARSE_SD \
51  )
52 
53 #define VRNA_CMD_PARSE_SILENT 16U
54 
68 vrna_cmd_t vrna_file_commands_read(const char *filename,
69  unsigned int options);
70 
71 
86  const char *filename,
87  unsigned int options);
88 
89 
99  vrna_cmd_t commands,
100  unsigned int options);
101 
102 
109 void vrna_commands_free(vrna_cmd_t commands);
110 
111 
116 #endif
int vrna_commands_apply(vrna_fold_compound_t *vc, vrna_cmd_t commands, unsigned int options)
Apply a list of commands to a vrna_fold_compound_t.
The most basic data structure required by many functions throughout the RNAlib.
Definition: fold_compound.h:132
vrna_cmd_t vrna_file_commands_read(const char *filename, unsigned int options)
Extract a list of commands from a command file.
Various data structures and pre-processor macros.
struct vrna_command_s * vrna_cmd_t
A data structure that contains commands.
Definition: commands.h:18
void vrna_commands_free(vrna_cmd_t commands)
Free memory occupied by a list of commands.
int vrna_file_commands_apply(vrna_fold_compound_t *vc, const char *filename, unsigned int options)
Apply a list of commands from a command file.