13 #define EXCLUSIVE_FLAG_DEFAULT 1
14 #define MARK_FAMILY_FLAG_DEFAULT 0
15 #define MARK_EXTENSION_FLAG_DEFAULT 0
16 #define FIND_FAMILY_MODE_DEFAULT 1
17 #define MAX_FAMILY_SIZE_DEFAULT 10
18 #define MIN_FAMILY_SIZE_DEFAULT 5
19 #define MIN_WEIGHT_DEFAULT 0.7
20 #define EXT_MAX_WEIGHT_DEFAULT 0.2
21 #define MULTI_GAP_FACTOR_DEFAULT 0.1
22 #define INSERT_FACTOR_DEFAULT 2.0;
23 #define MULTI_INSERT_FACTOR_DEFAULT 0.5;
24 #define COST_LOW_DEFAULT 0.25
25 #define COST_MIDDLE_DEFAULT 0.5
26 #define COST_HIGH_DEFAULT 0.8
27 #define MAX_COST_OF_SUB_PERCENT_DEFAULT 0.5
28 #define MAX_COST_OF_HELIX 2.0
29 #define ERROR_COUNT_DEFAULT 2
30 #define MAX_NUMBER_OF_MAPS_DEFAULT 10 // 100
31 #define MAX_NUMBER_OF_MAPS_ALIGNER_DEFAULT 2
32 #define INTERVAL_BORDER_DEFAULT 5
33 #define INTERVAL_CENTER_DEFAULT 5
36 #define MATCHES_MIN_DEFAULT 1000
37 #define PERCENT_MIN_DEFAULT 0.75
38 #define FAM_LIST_MAX_DEFAULT 5
39 #define EXT_LIST_MAX_DEFAULT 10
40 #define USE_SPECIFIED_FAMILY_DEFAULT NULp
45 { 0.0, 3.0, 1.0, 3.0, 5.0 },
46 { 3.0, 0.0, 3.0, 1.0, 5.0 },
47 { 1.0, 3.0, 0.0, 3.0, 5.0 },
48 { 3.0, 1.0, 3.0, 0.0, 5.0 },
49 { 5.0, 5.0, 5.0, 5.0, 0.0 }
54 { 9.9, 9.9, 2.0, 0.9, 9.9 },
55 { 9.9, 9.9, 0.6, 9.9, 9.9 },
56 { 2.0, 0.6, 5.0, 1.1, 9.9 },
57 { 0.9, 9.9, 1.1, 9.9, 9.9 },
58 { 9.9, 9.9, 9.9, 9.9, 0.0 }
63 int kill, i, h, j, ret;
77 for (i = 0; i < 5; i++)
78 for (j = 0; j < 5; j++) {
116 for (i = 1; i < *argc;) {
118 if (strcmp(
"-nx", argv[i]) == 0 && kill == 0) {
122 if (strncmp(
"-f", argv[i], 2) == 0 && kill == 0) {
126 if (strcmp(
"-ms", argv[i]) == 0 && kill == 0) {
130 if (strcmp(
"-mf", argv[i]) == 0 && kill == 0) {
134 if (strcmp(
"-mfe", argv[i]) == 0 && kill == 0) {
138 if (strncmp(
"-mgf", argv[i], 4) == 0 && kill == 0) {
147 if (strncmp(
"-if", argv[i], 3) == 0 && kill == 0) {
156 if (strncmp(
"-mif", argv[i], 4) == 0 && kill == 0) {
165 if (strcmp(
"-m", argv[i]) == 0 && kill == 0) {
170 if (strncmp(
"-msub", argv[i], 5) == 0 && kill == 0) {
173 for (h = 0; h < 5; h++)
174 for (j = 0; j < 5; j++) {
175 ret = sscanf(pos,
"%f", &fl);
182 pos = strchr(pos,
',');
183 if ((h != 4 || j != 4) && !pos) {
190 if (strncmp(
"-mbind", argv[i], 6) == 0 && kill == 0) {
193 for (h = 0; h < 5; h++)
194 for (j = 0; j < 5; j++) {
195 ret = sscanf(pos,
"%f", &fl);
202 pos = strchr(pos,
',');
203 if ((h != 4 || j != 4) && !pos) {
210 if (strncmp(
"-maxf", argv[i], 5) == 0 && kill == 0) {
219 if (strncmp(
"-minf", argv[i], 5) == 0 && kill == 0) {
228 if (strncmp(
"-minw", argv[i], 5) == 0 && kill == 0) {
237 if (strncmp(
"-maxew", argv[i], 6) == 0 && kill == 0) {
248 if (strncmp(
"-cl", argv[i], 3) == 0 && kill == 0) {
257 if (strncmp(
"-cm", argv[i], 3) == 0 && kill == 0) {
266 if (strncmp(
"-ch", argv[i], 3) == 0 && kill == 0) {
277 if (strncmp(
"-csub", argv[i], 5) == 0 && kill == 0) {
286 if (strncmp(
"-chel", argv[i], 5) == 0 && kill == 0) {
295 if (strncmp(
"-mma", argv[i], 4) == 0 && kill == 0) {
304 if (strncmp(
"-mm", argv[i], 3) == 0 && kill == 0) {
313 if (strncmp(
"-ec", argv[i], 3) == 0 && kill == 0) {
322 if (strncmp(
"-ib", argv[i], 3) == 0 && kill == 0) {
331 if (strncmp(
"-ic", argv[i], 3) == 0 && kill == 0) {
342 for (i++; i < *argc; i++)
366 cost_low < 0 || cost_high > 1.0) {
374 ali_error(
"Can't connect to Database server");
#define INTERVAL_CENTER_DEFAULT
#define MAX_FAMILY_SIZE_DEFAULT
static double default_substitute_matrix[5][5]
int mark_family_extension_flag
#define INTERVAL_BORDER_DEFAULT
#define MAX_NUMBER_OF_MAPS_ALIGNER_DEFAULT
#define EXT_LIST_MAX_DEFAULT
#define FAM_LIST_MAX_DEFAULT
char * ARB_strdup(const char *str)
#define COST_MIDDLE_DEFAULT
#define MIN_WEIGHT_DEFAULT
#define COST_HIGH_DEFAULT
#define INSERT_FACTOR_DEFAULT
ALI_PREALIGNER_CONTEXT preali_context
#define ERROR_COUNT_DEFAULT
#define MAX_COST_OF_SUB_PERCENT_DEFAULT
arb_params * arb_trace_argv(int *argc, const char **argv)
#define PERCENT_MIN_DEFAULT
#define MARK_EXTENSION_FLAG_DEFAULT
void init(int *argc, const char *argv[])
ALI_PT_CONTEXT pt_context
void ali_error(const char *message, const char *func)
#define USE_SPECIFIED_FAMILY_DEFAULT
#define MARK_FAMILY_FLAG_DEFAULT
#define FIND_FAMILY_MODE_DEFAULT
unsigned long error_count
#define EXT_MAX_WEIGHT_DEFAULT
float multi_insert_factor
#define MULTI_GAP_FACTOR_DEFAULT
#define MAX_COST_OF_HELIX
long max_number_of_maps_aligner
void ali_warning(const char *message)
static double default_binding_matrix[5][5]
unsigned long ext_list_max
#define EXCLUSIVE_FLAG_DEFAULT
void ali_message(const char *message)
#define MIN_FAMILY_SIZE_DEFAULT
int open(char *name, char *use_alignment=NULp)
char * use_specified_family
#define MATCHES_MIN_DEFAULT
float max_cost_of_sub_percent
double binding_matrix[5][5]
#define MULTI_INSERT_FACTOR_DEFAULT
unsigned long fam_list_max
#define MAX_NUMBER_OF_MAPS_DEFAULT
ALI_PROFILE_CONTEXT prof_context
double substitute_matrix[5][5]