1 | #ifndef ARBDBT_H |
---|
2 | #define ARBDBT_H |
---|
3 | |
---|
4 | #ifndef ARBDB_H |
---|
5 | #include <arbdb.h> |
---|
6 | #endif |
---|
7 | |
---|
8 | #define GBT_SPECIES_INDEX_SIZE 10000 |
---|
9 | #define GBT_SAI_INDEX_SIZE 1000 |
---|
10 | #define GB_COMPRESSION_TAGS_SIZE_MAX 100 |
---|
11 | |
---|
12 | #define GB_GROUP_NAME_MAX 256 |
---|
13 | |
---|
14 | typedef float GBT_LEN; |
---|
15 | |
---|
16 | #define GBT_TREE_ELEMENTS(type) \ |
---|
17 | GB_BOOL is_leaf; \ |
---|
18 | GB_BOOL tree_is_one_piece_of_memory; \ |
---|
19 | type *father,*leftson,*rightson; \ |
---|
20 | GBT_LEN leftlen,rightlen; \ |
---|
21 | GBDATA *gb_node; \ |
---|
22 | char *name; \ |
---|
23 | char *remark_branch |
---|
24 | |
---|
25 | // remark_branch normally contains some bootstrap value in format 'xx%' |
---|
26 | // if you store other info there, please make sure that this info does not |
---|
27 | // start with digits!! |
---|
28 | // Otherwise the tree export routines will not work correctly! |
---|
29 | // -------------------------------------------------------------------------------- |
---|
30 | |
---|
31 | #define CLEAR_GBT_TREE_ELEMENTS(tree_obj_ptr) \ |
---|
32 | (tree_obj_ptr)->is_leaf = GB_FALSE; \ |
---|
33 | (tree_obj_ptr)->tree_is_one_piece_of_memory = GB_FALSE; \ |
---|
34 | (tree_obj_ptr)->father = 0; \ |
---|
35 | (tree_obj_ptr)->leftson = 0; \ |
---|
36 | (tree_obj_ptr)->rightson = 0; \ |
---|
37 | (tree_obj_ptr)->leftlen = 0; \ |
---|
38 | (tree_obj_ptr)->rightlen = 0; \ |
---|
39 | (tree_obj_ptr)->gb_node = 0; \ |
---|
40 | (tree_obj_ptr)->name = 0; \ |
---|
41 | (tree_obj_ptr)->remark_branch = 0 |
---|
42 | |
---|
43 | #define AWAR_ERROR_CONTAINER "tmp/message/pending" |
---|
44 | |
---|
45 | #ifdef FAKE_VTAB_PTR |
---|
46 | /* if defined, FAKE_VTAB_PTR contains 'char' */ |
---|
47 | typedef FAKE_VTAB_PTR virtualTable; |
---|
48 | #endif |
---|
49 | |
---|
50 | typedef struct gbt_tree_struct { |
---|
51 | #ifdef FAKE_VTAB_PTR |
---|
52 | virtualTable *dummy_virtual; /* simulate pointer to virtual-table used in AP_tree */ |
---|
53 | #endif |
---|
54 | GBT_TREE_ELEMENTS(struct gbt_tree_struct); |
---|
55 | } GBT_TREE; |
---|
56 | |
---|
57 | typedef enum { // bit flags |
---|
58 | GBT_REMOVE_MARKED = 1, |
---|
59 | GBT_REMOVE_NOT_MARKED = 2, |
---|
60 | GBT_REMOVE_DELETED = 4, |
---|
61 | |
---|
62 | // please keep AWT_REMOVE_TYPE in sync with GBT_TREE_REMOVE_TYPE |
---|
63 | // see ../AWT/awt_tree.hxx@sync_GBT_TREE_REMOVE_TYPE_AWT_REMOVE_TYPE |
---|
64 | |
---|
65 | } GBT_TREE_REMOVE_TYPE; |
---|
66 | |
---|
67 | #define GBT_TREE_AWAR_SRT " = :\n=:*=tree_*1:tree_tree_*=tree_*1" |
---|
68 | #define GBT_ALI_AWAR_SRT " =:\n=:*=ali_*1:ali_ali_*=ali_*1" |
---|
69 | |
---|
70 | #define P_(s) s |
---|
71 | |
---|
72 | #if defined(__GNUG__) || defined(__cplusplus) |
---|
73 | extern "C" { |
---|
74 | #endif |
---|
75 | |
---|
76 | typedef GB_ERROR (*species_callback)(GBDATA *gb_species, int *clientdata); |
---|
77 | |
---|
78 | #if defined(__GNUG__) || defined(__cplusplus) |
---|
79 | } |
---|
80 | #endif |
---|
81 | |
---|
82 | # include <ad_t_prot.h> |
---|
83 | # ifdef ADLOCAL_H |
---|
84 | # include <ad_t_lpro.h> |
---|
85 | # endif |
---|
86 | |
---|
87 | #undef P_ |
---|
88 | |
---|
89 | #define CHANGE_KEY_PATH "presets/key_data" |
---|
90 | #define CHANGE_KEY_PATH_GENES "presets/gene_key_data" |
---|
91 | #define CHANGE_KEY_PATH_EXPERIMENTS "presets/experiment_key_data" |
---|
92 | |
---|
93 | #define CHANGEKEY "key" |
---|
94 | #define CHANGEKEY_NAME "key_name" |
---|
95 | #define CHANGEKEY_TYPE "key_type" |
---|
96 | #define CHANGEKEY_HIDDEN "key_hidden" |
---|
97 | |
---|
98 | |
---|
99 | #else |
---|
100 | #error arbdbt.h included twice |
---|
101 | #endif |
---|