| 1 | /* ARB toolkit. |
|---|
| 2 | * |
|---|
| 3 | * This file is generated by aisc_mkpt. |
|---|
| 4 | * Any changes you make here will be overwritten later! |
|---|
| 5 | */ |
|---|
| 6 | |
|---|
| 7 | #ifndef AD_T_PROT_H |
|---|
| 8 | #define AD_T_PROT_H |
|---|
| 9 | |
|---|
| 10 | /* define ARB attributes: */ |
|---|
| 11 | #ifndef ATTRIBUTES_H |
|---|
| 12 | # include <attributes.h> |
|---|
| 13 | #endif |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | /* adChangeKey.cxx */ |
|---|
| 17 | GBDATA *GBT_get_changekey(GBDATA *gb_main, const char *key, const char *change_key_path); |
|---|
| 18 | GB_TYPES GBT_get_type_of_changekey(GBDATA *gb_main, const char *field_name, const char *change_key_path); |
|---|
| 19 | GB_ERROR GBT_add_new_changekey_to_keypath(GBDATA *gb_main, const char *name, int type, const char *keypath); |
|---|
| 20 | GB_ERROR GBT_add_new_changekey(GBDATA *gb_main, const char *name, int type); |
|---|
| 21 | GB_ERROR GBT_add_new_gene_changekey(GBDATA *gb_main, const char *name, int type); |
|---|
| 22 | GB_ERROR GBT_add_new_experiment_changekey(GBDATA *gb_main, const char *name, int type); |
|---|
| 23 | GB_ERROR GBT_convert_changekey(GBDATA *gb_main, const char *name, GB_TYPES target_type); |
|---|
| 24 | |
|---|
| 25 | /* adRevCompl.cxx */ |
|---|
| 26 | char *GBT_reverseNucSequence(const char *s, int len); |
|---|
| 27 | char *GBT_complementNucSequence(const char *s, int len, char T_or_U); |
|---|
| 28 | NOT4PERL GB_ERROR GBT_determine_T_or_U(GB_alignment_type alignment_type, char *T_or_U, const char *supposed_target); |
|---|
| 29 | NOT4PERL void GBT_reverseComplementNucSequence(char *seq, long length, char T_or_U); |
|---|
| 30 | |
|---|
| 31 | /* adali.cxx */ |
|---|
| 32 | GBDATA *GBT_get_presets(GBDATA *gb_main); |
|---|
| 33 | int GBT_count_alignments(GBDATA *gb_main); |
|---|
| 34 | GB_ERROR GBT_check_data(GBDATA *Main, const char *alignment_name); |
|---|
| 35 | void GBT_get_alignment_names(ConstStrArray &names, GBDATA *gbd); |
|---|
| 36 | GB_ERROR GBT_check_alignment_name(const char *alignment_name); |
|---|
| 37 | GBDATA *GBT_create_alignment(GBDATA *gbd, const char *name, long len, long aligned, long security, const char *type); |
|---|
| 38 | GB_ERROR GBT_rename_alignment(GBDATA *gbMain, const char *source, const char *dest, int copy, int dele); |
|---|
| 39 | NOT4PERL GBDATA *GBT_add_data(GBDATA *species, const char *ali_name, const char *key, GB_TYPES type) __ATTR__DEPRECATED_TODO("better use GBT_create_sequence_data()"); |
|---|
| 40 | NOT4PERL GBDATA *GBT_create_sequence_data(GBDATA *species, const char *ali_name, const char *key, GB_TYPES type, int security_write); |
|---|
| 41 | GB_ERROR GBT_write_sequence(GBDATA *gb_data, const char *ali_name, long ali_len, const char *sequence); |
|---|
| 42 | GBDATA *GBT_gen_accession_number(GBDATA *gb_species, const char *ali_name); |
|---|
| 43 | int GBT_is_partial(GBDATA *gb_species, int default_value, int define_if_undef); |
|---|
| 44 | GBDATA *GBT_read_sequence(GBDATA *gb_species, const char *aliname); |
|---|
| 45 | char *GBT_get_default_alignment(GBDATA *gb_main); |
|---|
| 46 | GB_ERROR GBT_set_default_alignment(GBDATA *gb_main, const char *alignment_name); |
|---|
| 47 | GBDATA *GBT_get_alignment(GBDATA *gb_main, const char *aliname); |
|---|
| 48 | long GBT_get_alignment_len(GBDATA *gb_main, const char *aliname); |
|---|
| 49 | GB_ERROR GBT_set_alignment_len(GBDATA *gb_main, const char *aliname, long new_len); |
|---|
| 50 | char *GBT_get_alignment_type_string(GBDATA *gb_main, const char *aliname); |
|---|
| 51 | GB_alignment_type GBT_get_alignment_type(GBDATA *gb_main, const char *aliname); |
|---|
| 52 | bool GBT_is_alignment_protein(GBDATA *gb_main, const char *alignment_name); |
|---|
| 53 | NOT4PERL char *GBT_read_gene_sequence_and_length(GBDATA *gb_gene, bool use_revComplement, char partSeparator, size_t *gene_length); |
|---|
| 54 | char *GBT_read_gene_sequence(GBDATA *gb_gene, bool use_revComplement, char partSeparator); |
|---|
| 55 | |
|---|
| 56 | /* adcolumns.cxx */ |
|---|
| 57 | GB_ERROR GBT_format_alignment(GBDATA *Main, const char *alignment_name); |
|---|
| 58 | GB_ERROR GBT_insert_character(GBDATA *Main, const char *alignment_name, long pos, long count, const char *char_delete); |
|---|
| 59 | |
|---|
| 60 | /* aditem.cxx */ |
|---|
| 61 | GBDATA *GBT_find_or_create_item_rel_item_data(GBDATA *gb_item_data, const char *itemname, const char *id_field, const char *id, bool markCreated); |
|---|
| 62 | GBDATA *GBT_find_or_create_species_rel_species_data(GBDATA *gb_species_data, const char *name); |
|---|
| 63 | GBDATA *GBT_find_or_create_species(GBDATA *gb_main, const char *name); |
|---|
| 64 | GBDATA *GBT_find_or_create_SAI(GBDATA *gb_main, const char *name); |
|---|
| 65 | GBDATA *GBT_find_item_rel_item_data(GBDATA *gb_item_data, const char *id_field, const char *id_value); |
|---|
| 66 | GBDATA *GBT_get_species_data(GBDATA *gb_main); |
|---|
| 67 | GBDATA *GBT_first_marked_species_rel_species_data(GBDATA *gb_species_data); |
|---|
| 68 | GBDATA *GBT_first_marked_species(GBDATA *gb_main); |
|---|
| 69 | GBDATA *GBT_next_marked_species(GBDATA *gb_species); |
|---|
| 70 | GBDATA *GBT_first_species_rel_species_data(GBDATA *gb_species_data); |
|---|
| 71 | GBDATA *GBT_first_species(GBDATA *gb_main); |
|---|
| 72 | GBDATA *GBT_next_species(GBDATA *gb_species); |
|---|
| 73 | GBDATA *GBT_find_species_rel_species_data(GBDATA *gb_species_data, const char *name); |
|---|
| 74 | GBDATA *GBT_find_species(GBDATA *gb_main, const char *name); |
|---|
| 75 | GBDATA *GBT_expect_species(GBDATA *gb_main, const char *name); |
|---|
| 76 | GBDATA *GBT_get_SAI_data(GBDATA *gb_main); |
|---|
| 77 | GBDATA *GBT_first_SAI_rel_SAI_data(GBDATA *gb_sai_data); |
|---|
| 78 | GBDATA *GBT_first_SAI(GBDATA *gb_main); |
|---|
| 79 | GBDATA *GBT_next_SAI(GBDATA *gb_sai); |
|---|
| 80 | GBDATA *GBT_find_SAI_rel_SAI_data(GBDATA *gb_sai_data, const char *name); |
|---|
| 81 | GBDATA *GBT_find_SAI(GBDATA *gb_main, const char *name); |
|---|
| 82 | GBDATA *GBT_expect_SAI(GBDATA *gb_main, const char *name); |
|---|
| 83 | long GBT_get_species_count(GBDATA *gb_main); |
|---|
| 84 | long GBT_get_SAI_count(GBDATA *gb_main); |
|---|
| 85 | char *GBT_create_unique_species_name(GBDATA *gb_main, const char *default_name); |
|---|
| 86 | void GBT_mark_all(GBDATA *gb_main, int flag); |
|---|
| 87 | void GBT_mark_all_that(GBDATA *gb_main, int flag, int (*condition)(GBDATA *, void *), void *cd); |
|---|
| 88 | long GBT_count_marked_species(GBDATA *gb_main); |
|---|
| 89 | char *GBT_store_marked_species(GBDATA *gb_main, int unmark_all); |
|---|
| 90 | NOT4PERL GB_ERROR GBT_with_stored_species(GBDATA *gb_main, const char *stored, species_callback doit, int *clientdata); |
|---|
| 91 | GB_ERROR GBT_restore_marked_species(GBDATA *gb_main, const char *stored_marked); |
|---|
| 92 | GB_CSTR GBT_read_name(GBDATA *gb_item); |
|---|
| 93 | const char *GBT_get_name(GBDATA *gb_item); |
|---|
| 94 | GBDATA **GBT_gen_species_array(GBDATA *gb_main, long *pspeccnt); |
|---|
| 95 | |
|---|
| 96 | /* adname.cxx */ |
|---|
| 97 | GB_ERROR GBT_begin_rename_session(GBDATA *gb_main, int all_flag); |
|---|
| 98 | GB_ERROR GBT_rename_species(const char *oldname, const char *newname, bool ignore_protection); |
|---|
| 99 | GB_ERROR GBT_abort_rename_session(void); |
|---|
| 100 | GB_ERROR GBT_commit_rename_session(void) __ATTR__USERESULT; |
|---|
| 101 | |
|---|
| 102 | /* adseqcompr.cxx */ |
|---|
| 103 | GB_ERROR GBT_compress_sequence_tree2(GBDATA *gb_main, const char *tree_name, const char *ali_name) __ATTR__USERESULT; |
|---|
| 104 | void GBT_compression_test(void *, GBDATA *gb_main); |
|---|
| 105 | |
|---|
| 106 | /* adtables.cxx */ |
|---|
| 107 | GB_ERROR GBT_install_table_link_follower(GBDATA *gb_main); |
|---|
| 108 | GBDATA *GBT_open_table(GBDATA *gb_table_root, const char *table_name, bool read_only); |
|---|
| 109 | GBDATA *GBT_first_table(GBDATA *gb_main); |
|---|
| 110 | GBDATA *GBT_next_table(GBDATA *gb_table); |
|---|
| 111 | GBDATA *GBT_first_table_entry(GBDATA *gb_table); |
|---|
| 112 | GBDATA *GBT_next_table_entry(GBDATA *gb_table_entry); |
|---|
| 113 | GBDATA *GBT_first_table_field(GBDATA *gb_table); |
|---|
| 114 | GBDATA *GBT_next_table_field(GBDATA *gb_table_field); |
|---|
| 115 | GBDATA *GBT_find_table_field(GBDATA *gb_table, const char *id); |
|---|
| 116 | GBDATA *GBT_open_table_field(GBDATA *gb_table, const char *fieldname, GB_TYPES type_of_field); |
|---|
| 117 | |
|---|
| 118 | /* adtools.cxx */ |
|---|
| 119 | GBDATA *GBT_create(GBDATA *father, const char *key, long delete_level); |
|---|
| 120 | GBDATA *GBT_find_or_create(GBDATA *father, const char *key, long delete_level); |
|---|
| 121 | char *GBT_get_default_helix(GBDATA *); |
|---|
| 122 | char *GBT_get_default_helix_nr(GBDATA *); |
|---|
| 123 | char *GBT_get_default_ref(GBDATA *); |
|---|
| 124 | void GBT_scan_db(StrArray &fieldNames, GBDATA *gbd, const char *datapath); |
|---|
| 125 | void GBT_install_message_handler(GBDATA *gb_main); |
|---|
| 126 | void GBT_message(GBDATA *gb_main, const char *msg); |
|---|
| 127 | char *GBT_read_string(GBDATA *gb_container, const char *fieldpath); |
|---|
| 128 | char *GBT_read_as_string(GBDATA *gb_container, const char *fieldpath); |
|---|
| 129 | const char *GBT_read_char_pntr(GBDATA *gb_container, const char *fieldpath); |
|---|
| 130 | NOT4PERL long *GBT_read_int(GBDATA *gb_container, const char *fieldpath); |
|---|
| 131 | NOT4PERL double *GBT_read_float(GBDATA *gb_container, const char *fieldpath); |
|---|
| 132 | char *GBT_readOrCreate_string(GBDATA *gb_container, const char *fieldpath, const char *default_value); |
|---|
| 133 | const char *GBT_readOrCreate_char_pntr(GBDATA *gb_container, const char *fieldpath, const char *default_value); |
|---|
| 134 | NOT4PERL long *GBT_readOrCreate_int(GBDATA *gb_container, const char *fieldpath, long default_value); |
|---|
| 135 | NOT4PERL double *GBT_readOrCreate_float(GBDATA *gb_container, const char *fieldpath, double default_value); |
|---|
| 136 | GB_ERROR GBT_write_string(GBDATA *gb_container, const char *fieldpath, const char *content); |
|---|
| 137 | GB_ERROR GBT_write_int(GBDATA *gb_container, const char *fieldpath, long content); |
|---|
| 138 | GB_ERROR GBT_write_byte(GBDATA *gb_container, const char *fieldpath, unsigned char content); |
|---|
| 139 | GB_ERROR GBT_write_float(GBDATA *gb_container, const char *fieldpath, double content); |
|---|
| 140 | GBDATA *GBT_open(const char *path, const char *opent); |
|---|
| 141 | GB_ERROR GBT_remote_action(GBDATA *gb_main, const char *application, const char *action_name); |
|---|
| 142 | GB_ERROR GBT_remote_awar(GBDATA *gb_main, const char *application, const char *awar_name, const char *value); |
|---|
| 143 | GB_ERROR GBT_remote_read_awar(GBDATA *gb_main, const char *application, const char *awar_name); |
|---|
| 144 | char *GB_generate_notification(GBDATA *gb_main, void (*cb)(const char *message, void *client_data), const char *message, void *client_data); |
|---|
| 145 | GB_ERROR GB_remove_last_notification(GBDATA *gb_main); |
|---|
| 146 | GB_ERROR GB_notify(GBDATA *gb_main, int id, const char *message); |
|---|
| 147 | |
|---|
| 148 | /* adtree.cxx */ |
|---|
| 149 | GBDATA *GBT_get_tree_data(GBDATA *gb_main); |
|---|
| 150 | GBT_TREE *GBT_remove_leafs(GBT_TREE *tree, GBT_TREE_REMOVE_TYPE mode, GB_HASH *species_hash, int *removed, int *groups_removed); |
|---|
| 151 | void GBT_delete_tree(GBT_TREE *tree); |
|---|
| 152 | GB_ERROR GBT_write_group_name(GBDATA *gb_group_name, const char *new_group_name); |
|---|
| 153 | GB_ERROR GBT_write_tree(GBDATA *gb_main, GBDATA *gb_tree, const char *tree_name, GBT_TREE *tree); |
|---|
| 154 | GB_ERROR GBT_write_tree_rem(GBDATA *gb_main, const char *tree_name, const char *remark); |
|---|
| 155 | GBT_TREE *GBT_read_tree_and_size(GBDATA *gb_main, const char *tree_name, long structure_size, int *tree_size); |
|---|
| 156 | GBT_TREE *GBT_read_tree(GBDATA *gb_main, const char *tree_name, long structure_size); |
|---|
| 157 | size_t GBT_count_leafs(const GBT_TREE *tree); |
|---|
| 158 | GB_ERROR GBT_is_invalid(const GBT_TREE *tree); |
|---|
| 159 | GB_ERROR GBT_link_tree(GBT_TREE *tree, GBDATA *gb_main, bool show_status, int *zombies, int *duplicates); |
|---|
| 160 | void GBT_unlink_tree(GBT_TREE *tree); |
|---|
| 161 | void GBT_order_tree(GBDATA *gb_tree); |
|---|
| 162 | GBDATA *GBT_find_tree(GBDATA *gb_main, const char *tree_name); |
|---|
| 163 | GBDATA *GBT_find_largest_tree(GBDATA *gb_main); |
|---|
| 164 | GBDATA *GBT_tree_infrontof(GBDATA *gb_tree); |
|---|
| 165 | GBDATA *GBT_tree_behind(GBDATA *gb_tree); |
|---|
| 166 | GBDATA *GBT_find_top_tree(GBDATA *gb_main); |
|---|
| 167 | GBDATA *GBT_find_bottom_tree(GBDATA *gb_main); |
|---|
| 168 | const char *GBT_existing_tree(GBDATA *gb_main, const char *tree_name); |
|---|
| 169 | GBDATA *GBT_find_next_tree(GBDATA *gb_tree); |
|---|
| 170 | const char *GBT_get_tree_name(GBDATA *gb_tree); |
|---|
| 171 | GB_ERROR GBT_check_tree_name(const char *tree_name); |
|---|
| 172 | const char *GBT_name_of_largest_tree(GBDATA *gb_main); |
|---|
| 173 | const char *GBT_name_of_bottom_tree(GBDATA *gb_main); |
|---|
| 174 | const char *GBT_tree_info_string(GBDATA *gb_main, const char *tree_name, int maxTreeNameLen); |
|---|
| 175 | long GBT_size_of_tree(GBDATA *gb_main, const char *tree_name); |
|---|
| 176 | void GBT_get_tree_names(ConstStrArray &names, GBDATA *gb_main, bool sorted); |
|---|
| 177 | NOT4PERL GB_ERROR GBT_move_tree(GBDATA *gb_moved_tree, GBT_ORDER_MODE mode, GBDATA *gb_target_tree); |
|---|
| 178 | GB_ERROR GBT_copy_tree(GBDATA *gb_main, const char *source_name, const char *dest_name); |
|---|
| 179 | GB_ERROR GBT_rename_tree(GBDATA *gb_main, const char *source_name, const char *dest_name); |
|---|
| 180 | GB_CSTR *GBT_get_names_of_species_in_tree(const GBT_TREE *tree, size_t *count); |
|---|
| 181 | |
|---|
| 182 | #else |
|---|
| 183 | #error ad_t_prot.h included twice |
|---|
| 184 | #endif /* AD_T_PROT_H */ |
|---|