1 /** @file RNAcofold_cmdl.h
2 * @brief The header file for the command line option parser
3 * generated by GNU Gengetopt version 2.22.5
4 * http://www.gnu.org/software/gengetopt.
5 * DO NOT modify this file, since it can be overwritten
6 * @author GNU Gengetopt by Lorenzo Bettini */
8 #ifndef RNACOFOLD_CMDL_H
9 #define RNACOFOLD_CMDL_H
11 /* If we use autoconf. */
16 #include <stdio.h> /* for FILE */
20 #endif /* __cplusplus */
22 #ifndef RNACOFOLD_CMDLINE_PARSER_PACKAGE
23 /** @brief the program name (used for printing errors) */
24 #define RNACOFOLD_CMDLINE_PARSER_PACKAGE "RNAcofold"
27 #ifndef RNACOFOLD_CMDLINE_PARSER_PACKAGE_NAME
28 /** @brief the complete program name (used for help and version) */
29 #define RNACOFOLD_CMDLINE_PARSER_PACKAGE_NAME "RNAcofold"
32 #ifndef RNACOFOLD_CMDLINE_PARSER_VERSION
33 /** @brief the program version */
34 #define RNACOFOLD_CMDLINE_PARSER_VERSION VERSION
37 /** @brief Where the command line options are stored */
38 struct RNAcofold_args_info
40 const char *help_help; /**< @brief Print help and exit help description. */
41 const char *detailed_help_help; /**< @brief Print help, including all details and hidden options, and exit help description. */
42 const char *full_help_help; /**< @brief Print help, including hidden options, and exit help description. */
43 const char *version_help; /**< @brief Print version and exit help description. */
44 int constraint_flag; /**< @brief Calculate structures subject to constraints.
46 const char *constraint_help; /**< @brief Calculate structures subject to constraints.
48 int noconv_flag; /**< @brief Do not automatically substitude nucleotide \"T\" with \"U\"
51 const char *noconv_help; /**< @brief Do not automatically substitude nucleotide \"T\" with \"U\"
54 int noPS_flag; /**< @brief Do not produce postscript output
57 const char *noPS_help; /**< @brief Do not produce postscript output
60 int partfunc_arg; /**< @brief Calculate the partition function and base pairing probability matrix in addition to the mfe structure. Default is calculation of mfe structure only.
62 char * partfunc_orig; /**< @brief Calculate the partition function and base pairing probability matrix in addition to the mfe structure. Default is calculation of mfe structure only.
63 original value given at command line. */
64 const char *partfunc_help; /**< @brief Calculate the partition function and base pairing probability matrix in addition to the mfe structure. Default is calculation of mfe structure only.
66 int all_pf_flag; /**< @brief Compute the partition function and free energies not only of the hetero-dimer consisting of the two input sequences (the \"AB dimer\"), but also of the homo-dimers AA and BB as well as A and B monomers.
68 const char *all_pf_help; /**< @brief Compute the partition function and free energies not only of the hetero-dimer consisting of the two input sequences (the \"AB dimer\"), but also of the homo-dimers AA and BB as well as A and B monomers.
70 int concentrations_flag; /**< @brief In addition to everything listed under the -a option, read in initial monomer concentrations and compute the expected equilibrium concentrations of the 5 possible species (AB, AA, BB, A, B).
72 const char *concentrations_help; /**< @brief In addition to everything listed under the -a option, read in initial monomer concentrations and compute the expected equilibrium concentrations of the 5 possible species (AB, AA, BB, A, B).
74 char * concfile_arg; /**< @brief Specify a file with initial concentrations for the to sequences.. */
75 char * concfile_orig; /**< @brief Specify a file with initial concentrations for the to sequences. original value given at command line. */
76 const char *concfile_help; /**< @brief Specify a file with initial concentrations for the to sequences. help description. */
77 double pfScale_arg; /**< @brief In the calculation of the pf use scale*mfe as an estimate for the ensemble free energy (used to avoid overflows).
79 char * pfScale_orig; /**< @brief In the calculation of the pf use scale*mfe as an estimate for the ensemble free energy (used to avoid overflows).
80 original value given at command line. */
81 const char *pfScale_help; /**< @brief In the calculation of the pf use scale*mfe as an estimate for the ensemble free energy (used to avoid overflows).
83 double bppmThreshold_arg; /**< @brief Set the threshold for base pair probabilities included in the postscript output
85 char * bppmThreshold_orig; /**< @brief Set the threshold for base pair probabilities included in the postscript output
86 original value given at command line. */
87 const char *bppmThreshold_help; /**< @brief Set the threshold for base pair probabilities included in the postscript output
89 int gquad_flag; /**< @brief Incoorporate G-Quadruplex formation into the structure prediction algorithm
91 const char *gquad_help; /**< @brief Incoorporate G-Quadruplex formation into the structure prediction algorithm
93 double temp_arg; /**< @brief Rescale energy parameters to a temperature of temp C. Default is 37C.
96 char * temp_orig; /**< @brief Rescale energy parameters to a temperature of temp C. Default is 37C.
98 original value given at command line. */
99 const char *temp_help; /**< @brief Rescale energy parameters to a temperature of temp C. Default is 37C.
102 int noTetra_flag; /**< @brief Do not include special stabilizing energies for certain tetra-loops. Mostly for testing.
105 const char *noTetra_help; /**< @brief Do not include special stabilizing energies for certain tetra-loops. Mostly for testing.
108 int dangles_arg; /**< @brief How to treat \"dangling end\" energies for bases adjacent to helices in free ends and multi-loops
110 char * dangles_orig; /**< @brief How to treat \"dangling end\" energies for bases adjacent to helices in free ends and multi-loops
111 original value given at command line. */
112 const char *dangles_help; /**< @brief How to treat \"dangling end\" energies for bases adjacent to helices in free ends and multi-loops
114 int noLP_flag; /**< @brief Produce structures without lonely pairs (helices of length 1).
116 const char *noLP_help; /**< @brief Produce structures without lonely pairs (helices of length 1).
118 int noGU_flag; /**< @brief Do not allow GU pairs
121 const char *noGU_help; /**< @brief Do not allow GU pairs
124 int noClosingGU_flag; /**< @brief Do not allow GU pairs at the end of helices
127 const char *noClosingGU_help; /**< @brief Do not allow GU pairs at the end of helices
130 char * paramFile_arg; /**< @brief Read energy parameters from paramfile, instead of using the default parameter set.
132 char * paramFile_orig; /**< @brief Read energy parameters from paramfile, instead of using the default parameter set.
133 original value given at command line. */
134 const char *paramFile_help; /**< @brief Read energy parameters from paramfile, instead of using the default parameter set.
136 char * nsp_arg; /**< @brief Allow other pairs in addition to the usual AU,GC,and GU pairs.
138 char * nsp_orig; /**< @brief Allow other pairs in addition to the usual AU,GC,and GU pairs.
139 original value given at command line. */
140 const char *nsp_help; /**< @brief Allow other pairs in addition to the usual AU,GC,and GU pairs.
142 int energyModel_arg; /**< @brief Rarely used option to fold sequences from the artificial ABCD... alphabet, where A pairs B, C-D etc. Use the energy parameters for GC (-e 1) or AU (-e 2) pairs.
145 char * energyModel_orig; /**< @brief Rarely used option to fold sequences from the artificial ABCD... alphabet, where A pairs B, C-D etc. Use the energy parameters for GC (-e 1) or AU (-e 2) pairs.
147 original value given at command line. */
148 const char *energyModel_help; /**< @brief Rarely used option to fold sequences from the artificial ABCD... alphabet, where A pairs B, C-D etc. Use the energy parameters for GC (-e 1) or AU (-e 2) pairs.
151 double betaScale_arg; /**< @brief Set the scaling of the Boltzmann factors
153 char * betaScale_orig; /**< @brief Set the scaling of the Boltzmann factors
154 original value given at command line. */
155 const char *betaScale_help; /**< @brief Set the scaling of the Boltzmann factors
158 unsigned int help_given ; /**< @brief Whether help was given. */
159 unsigned int detailed_help_given ; /**< @brief Whether detailed-help was given. */
160 unsigned int full_help_given ; /**< @brief Whether full-help was given. */
161 unsigned int version_given ; /**< @brief Whether version was given. */
162 unsigned int constraint_given ; /**< @brief Whether constraint was given. */
163 unsigned int noconv_given ; /**< @brief Whether noconv was given. */
164 unsigned int noPS_given ; /**< @brief Whether noPS was given. */
165 unsigned int partfunc_given ; /**< @brief Whether partfunc was given. */
166 unsigned int all_pf_given ; /**< @brief Whether all_pf was given. */
167 unsigned int concentrations_given ; /**< @brief Whether concentrations was given. */
168 unsigned int concfile_given ; /**< @brief Whether concfile was given. */
169 unsigned int pfScale_given ; /**< @brief Whether pfScale was given. */
170 unsigned int bppmThreshold_given ; /**< @brief Whether bppmThreshold was given. */
171 unsigned int gquad_given ; /**< @brief Whether gquad was given. */
172 unsigned int temp_given ; /**< @brief Whether temp was given. */
173 unsigned int noTetra_given ; /**< @brief Whether noTetra was given. */
174 unsigned int dangles_given ; /**< @brief Whether dangles was given. */
175 unsigned int noLP_given ; /**< @brief Whether noLP was given. */
176 unsigned int noGU_given ; /**< @brief Whether noGU was given. */
177 unsigned int noClosingGU_given ; /**< @brief Whether noClosingGU was given. */
178 unsigned int paramFile_given ; /**< @brief Whether paramFile was given. */
179 unsigned int nsp_given ; /**< @brief Whether nsp was given. */
180 unsigned int energyModel_given ; /**< @brief Whether energyModel was given. */
181 unsigned int betaScale_given ; /**< @brief Whether betaScale was given. */
185 /** @brief The additional parameters to pass to parser functions */
186 struct RNAcofold_cmdline_parser_params
188 int override; /**< @brief whether to override possibly already present options (default 0) */
189 int initialize; /**< @brief whether to initialize the option structure RNAcofold_args_info (default 1) */
190 int check_required; /**< @brief whether to check that all required options were provided (default 1) */
191 int check_ambiguity; /**< @brief whether to check for options already specified in the option structure RNAcofold_args_info (default 0) */
192 int print_errors; /**< @brief whether getopt_long should print an error message for a bad option (default 1) */
195 /** @brief the purpose string of the program */
196 extern const char *RNAcofold_args_info_purpose;
197 /** @brief the usage string of the program */
198 extern const char *RNAcofold_args_info_usage;
199 /** @brief all the lines making the help output */
200 extern const char *RNAcofold_args_info_help[];
201 /** @brief all the lines making the full help output (including hidden options) */
202 extern const char *RNAcofold_args_info_full_help[];
203 /** @brief all the lines making the detailed help output (including hidden options and details) */
204 extern const char *RNAcofold_args_info_detailed_help[];
207 * The command line parser
208 * @param argc the number of command line options
209 * @param argv the command line options
210 * @param args_info the structure where option information will be stored
211 * @return 0 if everything went fine, NON 0 if an error took place
213 int RNAcofold_cmdline_parser (int argc, char **argv,
214 struct RNAcofold_args_info *args_info);
217 * The command line parser (version with additional parameters - deprecated)
218 * @param argc the number of command line options
219 * @param argv the command line options
220 * @param args_info the structure where option information will be stored
221 * @param override whether to override possibly already present options
222 * @param initialize whether to initialize the option structure my_args_info
223 * @param check_required whether to check that all required options were provided
224 * @return 0 if everything went fine, NON 0 if an error took place
225 * @deprecated use RNAcofold_cmdline_parser_ext() instead
227 int RNAcofold_cmdline_parser2 (int argc, char **argv,
228 struct RNAcofold_args_info *args_info,
229 int override, int initialize, int check_required);
232 * The command line parser (version with additional parameters)
233 * @param argc the number of command line options
234 * @param argv the command line options
235 * @param args_info the structure where option information will be stored
236 * @param params additional parameters for the parser
237 * @return 0 if everything went fine, NON 0 if an error took place
239 int RNAcofold_cmdline_parser_ext (int argc, char **argv,
240 struct RNAcofold_args_info *args_info,
241 struct RNAcofold_cmdline_parser_params *params);
244 * Save the contents of the option struct into an already open FILE stream.
245 * @param outfile the stream where to dump options
246 * @param args_info the option struct to dump
247 * @return 0 if everything went fine, NON 0 if an error took place
249 int RNAcofold_cmdline_parser_dump(FILE *outfile,
250 struct RNAcofold_args_info *args_info);
253 * Save the contents of the option struct into a (text) file.
254 * This file can be read by the config file parser (if generated by gengetopt)
255 * @param filename the file where to save
256 * @param args_info the option struct to save
257 * @return 0 if everything went fine, NON 0 if an error took place
259 int RNAcofold_cmdline_parser_file_save(const char *filename,
260 struct RNAcofold_args_info *args_info);
265 void RNAcofold_cmdline_parser_print_help(void);
267 * Print the full help (including hidden options)
269 void RNAcofold_cmdline_parser_print_full_help(void);
271 * Print the detailed help (including hidden options and details)
273 void RNAcofold_cmdline_parser_print_detailed_help(void);
277 void RNAcofold_cmdline_parser_print_version(void);
280 * Initializes all the fields a RNAcofold_cmdline_parser_params structure
281 * to their default values
282 * @param params the structure to initialize
284 void RNAcofold_cmdline_parser_params_init(struct RNAcofold_cmdline_parser_params *params);
287 * Allocates dynamically a RNAcofold_cmdline_parser_params structure and initializes
288 * all its fields to their default values
289 * @return the created and initialized RNAcofold_cmdline_parser_params structure
291 struct RNAcofold_cmdline_parser_params *RNAcofold_cmdline_parser_params_create(void);
294 * Initializes the passed RNAcofold_args_info structure's fields
295 * (also set default values for options that have a default)
296 * @param args_info the structure to initialize
298 void RNAcofold_cmdline_parser_init (struct RNAcofold_args_info *args_info);
300 * Deallocates the string fields of the RNAcofold_args_info structure
301 * (but does not deallocate the structure itself)
302 * @param args_info the structure to deallocate
304 void RNAcofold_cmdline_parser_free (struct RNAcofold_args_info *args_info);
307 * Checks that all the required options were specified
308 * @param args_info the structure to check
309 * @param prog_name the name of the program that will be used to print
313 int RNAcofold_cmdline_parser_required (struct RNAcofold_args_info *args_info,
314 const char *prog_name);
319 #endif /* __cplusplus */
320 #endif /* RNACOFOLD_CMDL_H */