| 1 | /* |
|---|
| 2 | * ARB toolkit. |
|---|
| 3 | * |
|---|
| 4 | * This file is generated by aisc_mkpt. |
|---|
| 5 | * Any changes you make here will be overwritten later! |
|---|
| 6 | * |
|---|
| 7 | */ |
|---|
| 8 | |
|---|
| 9 | #ifndef AD_T_PROT_H |
|---|
| 10 | #define AD_T_PROT_H |
|---|
| 11 | |
|---|
| 12 | #ifndef P_ |
|---|
| 13 | # error P_ is not defined |
|---|
| 14 | #endif |
|---|
| 15 | |
|---|
| 16 | /* define ARB attributes: */ |
|---|
| 17 | #ifndef ATTRIBUTES_H |
|---|
| 18 | # include <attributes.h> |
|---|
| 19 | #endif |
|---|
| 20 | |
|---|
| 21 | #ifdef __cplusplus |
|---|
| 22 | extern "C" { |
|---|
| 23 | #endif |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | /* adtools.c */ |
|---|
| 27 | GBDATA *GBT_find_or_create P_((GBDATA *Main, const char *key, long delete_level)); |
|---|
| 28 | char *GBT_get_default_helix P_((GBDATA *gb_main)); |
|---|
| 29 | char *GBT_get_default_helix_nr P_((GBDATA *gb_main)); |
|---|
| 30 | char *GBT_get_default_ref P_((GBDATA *gb_main)); |
|---|
| 31 | GB_ERROR GBT_check_arb_file P_((const char *name)); |
|---|
| 32 | char **GBT_scan_db P_((GBDATA *gbd, const char *datapath)); |
|---|
| 33 | void GBT_install_message_handler P_((GBDATA *gb_main)); |
|---|
| 34 | void GBT_message P_((GBDATA *gb_main, const char *msg)); |
|---|
| 35 | char **GBT_split_string P_((const char *namelist, char separator, int *countPtr)); |
|---|
| 36 | char *GBT_join_names P_((const char *const *names, char separator)); |
|---|
| 37 | void GBT_free_names P_((char **names)); |
|---|
| 38 | char *GBT_read_string P_((GBDATA *gb_container, const char *fieldpath)); |
|---|
| 39 | char *GBT_read_as_string P_((GBDATA *gb_container, const char *fieldpath)); |
|---|
| 40 | const char *GBT_read_char_pntr P_((GBDATA *gb_container, const char *fieldpath)); |
|---|
| 41 | NOT4PERL long *GBT_read_int P_((GBDATA *gb_container, const char *fieldpath)); |
|---|
| 42 | NOT4PERL double *GBT_read_float P_((GBDATA *gb_container, const char *fieldpath)); |
|---|
| 43 | char *GBT_readOrCreate_string P_((GBDATA *gb_container, const char *fieldpath, const char *default_value)); |
|---|
| 44 | const char *GBT_readOrCreate_char_pntr P_((GBDATA *gb_container, const char *fieldpath, const char *default_value)); |
|---|
| 45 | NOT4PERL long *GBT_readOrCreate_int P_((GBDATA *gb_container, const char *fieldpath, long default_value)); |
|---|
| 46 | NOT4PERL double *GBT_readOrCreate_float P_((GBDATA *gb_container, const char *fieldpath, double default_value)); |
|---|
| 47 | GB_ERROR GBT_write_string P_((GBDATA *gb_container, const char *fieldpath, const char *content)); |
|---|
| 48 | GB_ERROR GBT_write_int P_((GBDATA *gb_container, const char *fieldpath, long content)); |
|---|
| 49 | GB_ERROR GBT_write_byte P_((GBDATA *gb_container, const char *fieldpath, unsigned char content)); |
|---|
| 50 | GB_ERROR GBT_write_float P_((GBDATA *gb_container, const char *fieldpath, double content)); |
|---|
| 51 | GBDATA *GB_test_link_follower P_((GBDATA *gb_main, GBDATA *gb_link, const char *link)); |
|---|
| 52 | GBDATA *GBT_open P_((const char *path, const char *opent, const char *disabled_path)); |
|---|
| 53 | GB_ERROR GBT_remote_action P_((GBDATA *gb_main, const char *application, const char *action_name)); |
|---|
| 54 | GB_ERROR GBT_remote_awar P_((GBDATA *gb_main, const char *application, const char *awar_name, const char *value)); |
|---|
| 55 | GB_ERROR GBT_remote_read_awar P_((GBDATA *gb_main, const char *application, const char *awar_name)); |
|---|
| 56 | const char *GBT_remote_touch_awar P_((GBDATA *gb_main, const char *application, const char *awar_name)); |
|---|
| 57 | char *GB_generate_notification P_((GBDATA *gb_main, void (*cb )(const char *message, void *client_data ), const char *message, void *client_data)); |
|---|
| 58 | GB_ERROR GB_remove_last_notification P_((GBDATA *gb_main)); |
|---|
| 59 | GB_ERROR GB_notify P_((GBDATA *gb_main, int id, const char *message)); |
|---|
| 60 | |
|---|
| 61 | /* adseqcompr.c */ |
|---|
| 62 | GB_ERROR GBT_compress_sequence_tree2 P_((GBDATA *gb_main, const char *tree_name, const char *ali_name)); |
|---|
| 63 | void GBT_compression_test P_((void *dummy, GBDATA *gb_main)); |
|---|
| 64 | |
|---|
| 65 | /* adtables.c */ |
|---|
| 66 | GB_ERROR GBT_install_table_link_follower P_((GBDATA *gb_main)); |
|---|
| 67 | GBDATA *GBT_open_table P_((GBDATA *gb_table_root, const char *table_name, GB_BOOL read_only)); |
|---|
| 68 | GBDATA *GBT_first_table P_((GBDATA *gb_main)); |
|---|
| 69 | GBDATA *GBT_next_table P_((GBDATA *gb_table)); |
|---|
| 70 | GBDATA *GBT_first_table_entry P_((GBDATA *gb_table)); |
|---|
| 71 | GBDATA *GBT_first_marked_table_entry P_((GBDATA *gb_table)); |
|---|
| 72 | GBDATA *GBT_next_table_entry P_((GBDATA *gb_table_entry)); |
|---|
| 73 | GBDATA *GBT_next_marked_table_entry P_((GBDATA *gb_table_entry)); |
|---|
| 74 | GBDATA *GBT_find_table_entry P_((GBDATA *gb_table, const char *id)); |
|---|
| 75 | GBDATA *GBT_open_table_entry P_((GBDATA *gb_table, const char *id)); |
|---|
| 76 | GBDATA *GBT_first_table_field P_((GBDATA *gb_table)); |
|---|
| 77 | GBDATA *GBT_first_marked_table_field P_((GBDATA *gb_table)); |
|---|
| 78 | GBDATA *GBT_next_table_field P_((GBDATA *gb_table_field)); |
|---|
| 79 | GBDATA *GBT_next_marked_table_field P_((GBDATA *gb_table_field)); |
|---|
| 80 | GBDATA *GBT_find_table_field P_((GBDATA *gb_table, const char *id)); |
|---|
| 81 | GB_TYPES GBT_get_type_of_table_entry_field P_((GBDATA *gb_table, const char *fieldname)); |
|---|
| 82 | GB_ERROR GBT_savely_write_table_entry_field P_((GBDATA *gb_table, GBDATA *gb_entry, const char *fieldname, const char *value_in_ascii_format)); |
|---|
| 83 | GBDATA *GBT_open_table_field P_((GBDATA *gb_table, const char *fieldname, GB_TYPES type_of_field)); |
|---|
| 84 | |
|---|
| 85 | /* adRevCompl.c */ |
|---|
| 86 | char GBT_complementNucleotide P_((char c, char T_or_U)); |
|---|
| 87 | char *GBT_reverseNucSequence P_((const char *s, int len)); |
|---|
| 88 | char *GBT_complementNucSequence P_((const char *s, int len, char T_or_U)); |
|---|
| 89 | GB_ERROR GBT_determine_T_or_U P_((GB_alignment_type alignment_type, char *T_or_U, const char *supposed_target)); |
|---|
| 90 | void GBT_reverseComplementNucSequence P_((char *seq, long length, char T_or_U)); |
|---|
| 91 | |
|---|
| 92 | /* adChangeKey.c */ |
|---|
| 93 | GBDATA *GBT_get_changekey P_((GBDATA *gb_main, const char *key, const char *change_key_path)); |
|---|
| 94 | GB_TYPES GBT_get_type_of_changekey P_((GBDATA *gb_main, const char *field_name, const char *change_key_path)); |
|---|
| 95 | GB_ERROR GBT_add_new_changekey_to_keypath P_((GBDATA *gb_main, const char *name, int type, const char *keypath)); |
|---|
| 96 | GB_ERROR GBT_add_new_changekey P_((GBDATA *gb_main, const char *name, int type)); |
|---|
| 97 | GB_ERROR GBT_add_new_gene_changekey P_((GBDATA *gb_main, const char *name, int type)); |
|---|
| 98 | GB_ERROR GBT_add_new_experiment_changekey P_((GBDATA *gb_main, const char *name, int type)); |
|---|
| 99 | GB_ERROR GBT_convert_changekey P_((GBDATA *gb_main, const char *name, int target_type)); |
|---|
| 100 | |
|---|
| 101 | /* adali.c */ |
|---|
| 102 | GB_ERROR GBT_check_data P_((GBDATA *Main, const char *alignment_name)); |
|---|
| 103 | char **GBT_get_alignment_names P_((GBDATA *gbd)); |
|---|
| 104 | GB_ERROR GBT_check_alignment_name P_((const char *alignment_name)); |
|---|
| 105 | GBDATA *GBT_create_alignment P_((GBDATA *gbd, const char *name, long len, long aligned, long security, const char *type)); |
|---|
| 106 | NOT4PERL GB_ERROR GBT_check_alignment P_((GBDATA *gb_main, GBDATA *preset_alignment, GB_HASH *species_name_hash)); |
|---|
| 107 | GB_ERROR GBT_rename_alignment P_((GBDATA *gbMain, const char *source, const char *dest, int copy, int dele)); |
|---|
| 108 | GBDATA *GBT_add_data P_((GBDATA *species, const char *ali_name, const char *key, GB_TYPES type)) __ATTR__DEPRECATED; |
|---|
| 109 | NOT4PERL GBDATA *GBT_create_sequence_data P_((GBDATA *species, const char *ali_name, const char *key, GB_TYPES type, int security_write)); |
|---|
| 110 | GB_ERROR GBT_write_sequence P_((GBDATA *gb_data, const char *ali_name, long ali_len, const char *sequence)); |
|---|
| 111 | GBDATA *GBT_gen_accession_number P_((GBDATA *gb_species, const char *ali_name)); |
|---|
| 112 | int GBT_is_partial P_((GBDATA *gb_species, int default_value, int define_if_undef)); |
|---|
| 113 | GBDATA *GBT_read_sequence P_((GBDATA *gb_species, const char *aliname)); |
|---|
| 114 | char *GBT_get_default_alignment P_((GBDATA *gb_main)); |
|---|
| 115 | GB_ERROR GBT_set_default_alignment P_((GBDATA *gb_main, const char *alignment_name)); |
|---|
| 116 | GBDATA *GBT_get_alignment P_((GBDATA *gb_main, const char *aliname)); |
|---|
| 117 | long GBT_get_alignment_len P_((GBDATA *gb_main, const char *aliname)); |
|---|
| 118 | GB_ERROR GBT_set_alignment_len P_((GBDATA *gb_main, const char *aliname, long new_len)); |
|---|
| 119 | int GBT_get_alignment_aligned P_((GBDATA *gb_main, const char *aliname)); |
|---|
| 120 | char *GBT_get_alignment_type_string P_((GBDATA *gb_main, const char *aliname)); |
|---|
| 121 | GB_alignment_type GBT_get_alignment_type P_((GBDATA *gb_main, const char *aliname)); |
|---|
| 122 | GB_BOOL GBT_is_alignment_protein P_((GBDATA *gb_main, const char *alignment_name)); |
|---|
| 123 | NOT4PERL char *GBT_read_gene_sequence_and_length P_((GBDATA *gb_gene, GB_BOOL use_revComplement, char partSeparator, size_t *gene_length)); |
|---|
| 124 | char *GBT_read_gene_sequence P_((GBDATA *gb_gene, GB_BOOL use_revComplement, char partSeparator)); |
|---|
| 125 | |
|---|
| 126 | /* adcolumns.c */ |
|---|
| 127 | GB_ERROR GBT_format_alignment P_((GBDATA *Main, const char *alignment_name)); |
|---|
| 128 | GB_ERROR GBT_insert_character P_((GBDATA *Main, char *alignment_name, long pos, long count, char *char_delete)); |
|---|
| 129 | |
|---|
| 130 | /* adtree.c */ |
|---|
| 131 | GBT_TREE *GBT_remove_leafs P_((GBT_TREE *tree, GBT_TREE_REMOVE_TYPE mode, GB_HASH *species_hash, int *removed, int *groups_removed)); |
|---|
| 132 | void GBT_delete_tree P_((GBT_TREE *tree)); |
|---|
| 133 | GB_ERROR GBT_write_group_name P_((GBDATA *gb_group_name, const char *new_group_name)); |
|---|
| 134 | GB_ERROR GBT_write_tree P_((GBDATA *gb_main, GBDATA *gb_tree, const char *tree_name, GBT_TREE *tree)); |
|---|
| 135 | GB_ERROR GBT_write_plain_tree P_((GBDATA *gb_main, GBDATA *gb_tree, char *tree_name, GBT_TREE *tree)); |
|---|
| 136 | GB_ERROR GBT_write_tree_rem P_((GBDATA *gb_main, const char *tree_name, const char *remark)); |
|---|
| 137 | GBT_TREE *GBT_read_tree_and_size P_((GBDATA *gb_main, const char *tree_name, long structure_size, int *tree_size)); |
|---|
| 138 | GBT_TREE *GBT_read_tree P_((GBDATA *gb_main, const char *tree_name, long structure_size)); |
|---|
| 139 | GBT_TREE *GBT_read_plain_tree P_((GBDATA *gb_main, GBDATA *gb_ctree, long structure_size, GB_ERROR *error)); |
|---|
| 140 | long GBT_count_nodes P_((GBT_TREE *tree)); |
|---|
| 141 | GB_ERROR GBT_link_tree_using_species_hash P_((GBT_TREE *tree, GB_BOOL show_status, GB_HASH *species_hash, int *zombies, int *duplicates)); |
|---|
| 142 | GB_ERROR GBT_link_tree P_((GBT_TREE *tree, GBDATA *gb_main, GB_BOOL show_status, int *zombies, int *duplicates)); |
|---|
| 143 | void GBT_unlink_tree P_((GBT_TREE *tree)); |
|---|
| 144 | GBDATA *GBT_get_tree P_((GBDATA *gb_main, const char *tree_name)); |
|---|
| 145 | long GBT_size_of_tree P_((GBDATA *gb_main, const char *tree_name)); |
|---|
| 146 | char *GBT_find_largest_tree P_((GBDATA *gb_main)); |
|---|
| 147 | char *GBT_find_latest_tree P_((GBDATA *gb_main)); |
|---|
| 148 | const char *GBT_tree_info_string P_((GBDATA *gb_main, const char *tree_name, int maxTreeNameLen)); |
|---|
| 149 | GB_ERROR GBT_check_tree_name P_((const char *tree_name)); |
|---|
| 150 | char **GBT_get_tree_names_and_count P_((GBDATA *Main, int *countPtr)); |
|---|
| 151 | char **GBT_get_tree_names P_((GBDATA *Main)); |
|---|
| 152 | char *GBT_get_next_tree_name P_((GBDATA *gb_main, const char *tree_name)); |
|---|
| 153 | GB_CSTR *GBT_get_species_names_of_tree P_((GBT_TREE *tree)); |
|---|
| 154 | char *GBT_existing_tree P_((GBDATA *gb_main, const char *tree_name)); |
|---|
| 155 | |
|---|
| 156 | /* adname.c */ |
|---|
| 157 | GB_ERROR GBT_begin_rename_session P_((GBDATA *gb_main, int all_flag)); |
|---|
| 158 | GB_ERROR GBT_rename_species P_((const char *oldname, const char *newname, GB_BOOL ignore_protection)); |
|---|
| 159 | GB_ERROR GBT_abort_rename_session P_((void)); |
|---|
| 160 | GB_ERROR GBT_commit_rename_session P_((int (*show_status )(double gauge ), int (*show_status_text )(const char *))); |
|---|
| 161 | |
|---|
| 162 | /* aditem.c */ |
|---|
| 163 | GBDATA *GBT_find_or_create_item_rel_item_data P_((GBDATA *gb_item_data, const char *itemname, const char *id_field, const char *id, GB_BOOL markCreated)); |
|---|
| 164 | GBDATA *GBT_find_or_create_species_rel_species_data P_((GBDATA *gb_species_data, const char *name)); |
|---|
| 165 | GBDATA *GBT_find_or_create_species P_((GBDATA *gb_main, const char *name)); |
|---|
| 166 | GBDATA *GBT_find_or_create_SAI P_((GBDATA *gb_main, const char *name)); |
|---|
| 167 | GBDATA *GBT_find_item_rel_item_data P_((GBDATA *gb_item_data, const char *id_field, const char *id_value)); |
|---|
| 168 | GBDATA *GBT_expect_item_rel_item_data P_((GBDATA *gb_item_data, const char *id_field, const char *id_value)); |
|---|
| 169 | GBDATA *GBT_get_species_data P_((GBDATA *gb_main)); |
|---|
| 170 | GBDATA *GBT_first_marked_species_rel_species_data P_((GBDATA *gb_species_data)); |
|---|
| 171 | GBDATA *GBT_first_marked_species P_((GBDATA *gb_main)); |
|---|
| 172 | GBDATA *GBT_next_marked_species P_((GBDATA *gb_species)); |
|---|
| 173 | GBDATA *GBT_first_species_rel_species_data P_((GBDATA *gb_species_data)); |
|---|
| 174 | GBDATA *GBT_first_species P_((GBDATA *gb_main)); |
|---|
| 175 | GBDATA *GBT_next_species P_((GBDATA *gb_species)); |
|---|
| 176 | GBDATA *GBT_find_species_rel_species_data P_((GBDATA *gb_species_data, const char *name)); |
|---|
| 177 | GBDATA *GBT_find_species P_((GBDATA *gb_main, const char *name)); |
|---|
| 178 | GBDATA *GBT_expect_species P_((GBDATA *gb_main, const char *name)); |
|---|
| 179 | GBDATA *GBT_get_SAI_data P_((GBDATA *gb_main)); |
|---|
| 180 | GBDATA *GBT_first_marked_SAI_rel_SAI_data P_((GBDATA *gb_sai_data)); |
|---|
| 181 | GBDATA *GBT_next_marked_SAI P_((GBDATA *gb_sai)); |
|---|
| 182 | GBDATA *GBT_first_SAI_rel_SAI_data P_((GBDATA *gb_sai_data)); |
|---|
| 183 | GBDATA *GBT_first_SAI P_((GBDATA *gb_main)); |
|---|
| 184 | GBDATA *GBT_next_SAI P_((GBDATA *gb_sai)); |
|---|
| 185 | GBDATA *GBT_find_SAI_rel_SAI_data P_((GBDATA *gb_sai_data, const char *name)); |
|---|
| 186 | GBDATA *GBT_find_SAI P_((GBDATA *gb_main, const char *name)); |
|---|
| 187 | GBDATA *GBT_expect_SAI P_((GBDATA *gb_main, const char *name)); |
|---|
| 188 | long GBT_get_item_count P_((GBDATA *gb_parent_of_container, const char *item_container_name)); |
|---|
| 189 | long GBT_get_species_count P_((GBDATA *gb_main)); |
|---|
| 190 | long GBT_get_SAI_count P_((GBDATA *gb_main)); |
|---|
| 191 | char *GBT_create_unique_item_identifier P_((GBDATA *gb_item_container, const char *id_field, const char *default_id)); |
|---|
| 192 | char *GBT_create_unique_species_name P_((GBDATA *gb_main, const char *default_name)); |
|---|
| 193 | void GBT_mark_all P_((GBDATA *gb_main, int flag)); |
|---|
| 194 | void GBT_mark_all_that P_((GBDATA *gb_main, int flag, int (*condition )(GBDATA *, void *), void *cd)); |
|---|
| 195 | long GBT_count_marked_species P_((GBDATA *gb_main)); |
|---|
| 196 | char *GBT_store_marked_species P_((GBDATA *gb_main, int unmark_all)); |
|---|
| 197 | NOT4PERL GB_ERROR GBT_with_stored_species P_((GBDATA *gb_main, const char *stored, species_callback doit, int *clientdata)); |
|---|
| 198 | GB_ERROR GBT_restore_marked_species P_((GBDATA *gb_main, const char *stored_marked)); |
|---|
| 199 | GB_CSTR GBT_read_name P_((GBDATA *gb_item)); |
|---|
| 200 | const char *GBT_get_name P_((GBDATA *gb_item)); |
|---|
| 201 | GBDATA **GBT_gen_species_array P_((GBDATA *gb_main, long *pspeccnt)); |
|---|
| 202 | |
|---|
| 203 | #ifdef __cplusplus |
|---|
| 204 | } |
|---|
| 205 | #endif |
|---|
| 206 | |
|---|
| 207 | #else |
|---|
| 208 | #error ad_t_prot.h included twice |
|---|
| 209 | #endif /* AD_T_PROT_H */ |
|---|