ARB
|
#include "merge.hxx"
#include "MG_adapt_ali.hxx"
#include <AW_rename.hxx>
#include <db_query.h>
#include <db_scanner.hxx>
#include <item_sel_list.h>
#include <xfergui.h>
#include <xferset.h>
#include <aw_awars.hxx>
#include <aw_msg.hxx>
#include <arb_progress.h>
#include <aw_root.hxx>
#include <aw_question.hxx>
#include <arb_str.h>
#include <arb_strbuf.h>
#include <arb_global_defs.h>
Go to the source code of this file.
Classes | |
class | ScopedTransporter |
class | AdaptedAlignmentTransporter |
struct | DontTransportAlignment |
class | ViaFtsTransporter |
struct | MergeFieldScanner |
Macros | |
#define | AWAR_SPECIES_SRC AWAR_MERGE_TMP_SRC "name" |
#define | AWAR_FIELD_SRC AWAR_MERGE_TMP_SRC "field" |
#define | AWAR_TAG_SRC AWAR_MERGE_TMP_SRC "tag" |
#define | AWAR_SPECIES_DST AWAR_MERGE_TMP_DST "name" |
#define | AWAR_FIELD_DST AWAR_MERGE_TMP_DST "field" |
#define | AWAR_TAG_DST AWAR_MERGE_TMP_DST "tag" |
#define | AWAR_TAG_DEL AWAR_MERGE_TMP "tagdel" |
#define | AWAR_APPEND AWAR_MERGE_TMP "append" |
#define | AWAR_SPECIES_XFER_TYPE AWAR_MERGE_SAV "xferType" |
#define | AWAR_SPECIES_XFER_SCOPE AWAR_MERGE_SAV "xferScope" |
#define | AWAR_SPECIES_XFER_FTS AWAR_MERGE_SAV "fts" |
Typedefs | |
typedef SmartPtr< MG_remaps > | MG_remapsPtr |
Enumerations | |
enum | SpeciesXferType { SXT_WHOLE_SPECIES, SXT_SINGLE_FIELD, SXT_USING_FTS, SXT_USING_FTS_SKIP_ALI } |
enum | SpeciesXferScope { SXS_SELECTED_SPECIES, SXS_LISTED_SPECIES } |
Variables | |
static DbScanner * | scanner_src = NULp |
static DbScanner * | scanner_dst = NULp |
static MutableItemSelector | MG_species_selector [2] |
static MergeFieldScanner | fieldScanner |
#define AWAR_SPECIES_SRC AWAR_MERGE_TMP_SRC "name" |
Definition at line 33 of file MG_species.cxx.
Referenced by MG_create_merge_species_window(), MG_create_species_awars(), mg_get_selected_species1(), MG_left_AWAR_SPECIES_NAME(), MG_map_species(), mg_select_species1(), mg_transfer_selected_species(), transfer_field_of_selected_cb(), and ScopedTransporter::transferAllIn().
#define AWAR_FIELD_SRC AWAR_MERGE_TMP_SRC "field" |
Definition at line 34 of file MG_species.cxx.
Referenced by create_mg_merge_tagged_fields_window(), MG_create_species_awars(), MG_merge_tagged_field_cb(), popup_single_field_transfer_window(), transfer_field_of_listed_cb(), and transfer_field_of_selected_cb().
#define AWAR_TAG_SRC AWAR_MERGE_TMP_SRC "tag" |
Definition at line 35 of file MG_species.cxx.
Referenced by create_mg_merge_tagged_fields_window(), and MG_merge_tagged_field_cb().
#define AWAR_SPECIES_DST AWAR_MERGE_TMP_DST "name" |
Definition at line 37 of file MG_species.cxx.
Referenced by MG_create_merge_species_window(), MG_create_species_awars(), mg_get_selected_species2(), MG_map_species(), mg_select_species2(), transfer_field_of_selected_cb(), and ScopedTransporter::transferAllIn().
#define AWAR_FIELD_DST AWAR_MERGE_TMP_DST "field" |
Definition at line 38 of file MG_species.cxx.
Referenced by create_mg_merge_tagged_fields_window(), MG_create_species_awars(), and MG_merge_tagged_field_cb().
#define AWAR_TAG_DST AWAR_MERGE_TMP_DST "tag" |
Definition at line 39 of file MG_species.cxx.
Referenced by create_mg_merge_tagged_fields_window(), and MG_merge_tagged_field_cb().
#define AWAR_TAG_DEL AWAR_MERGE_TMP "tagdel" |
Definition at line 41 of file MG_species.cxx.
Referenced by create_mg_merge_tagged_fields_window(), and MG_merge_tagged_field_cb().
#define AWAR_APPEND AWAR_MERGE_TMP "append" |
Definition at line 42 of file MG_species.cxx.
Referenced by MG_create_species_awars(), popup_single_field_transfer_window(), and transfer_field_of_listed_cb().
#define AWAR_SPECIES_XFER_TYPE AWAR_MERGE_SAV "xferType" |
Definition at line 44 of file MG_species.cxx.
Referenced by MG_create_merge_species_window(), MG_create_species_awars(), and MG_transfer_species().
#define AWAR_SPECIES_XFER_SCOPE AWAR_MERGE_SAV "xferScope" |
Definition at line 45 of file MG_species.cxx.
Referenced by MG_create_merge_species_window(), MG_create_species_awars(), and MG_transfer_species().
#define AWAR_SPECIES_XFER_FTS AWAR_MERGE_SAV "fts" |
Definition at line 46 of file MG_species.cxx.
Referenced by MG_create_merge_species_window(), MG_create_species_awars(), and mg_xfer_via_fts().
typedef SmartPtr<MG_remaps> MG_remapsPtr |
Definition at line 1050 of file MG_species.cxx.
enum SpeciesXferType |
Enumerator | |
---|---|
SXT_WHOLE_SPECIES | |
SXT_SINGLE_FIELD | |
SXT_USING_FTS | |
SXT_USING_FTS_SKIP_ALI |
Definition at line 51 of file MG_species.cxx.
enum SpeciesXferScope |
Enumerator | |
---|---|
SXS_SELECTED_SPECIES | |
SXS_LISTED_SPECIES |
Definition at line 58 of file MG_species.cxx.
const char* MG_left_AWAR_SPECIES_NAME | ( | ) |
Definition at line 63 of file MG_species.cxx.
References AWAR_SPECIES_SRC.
Referenced by MG_gene_species_create_field_transfer_def_window(), and MG_update_example().
void MG_create_species_awars | ( | AW_root * | aw_root, |
AW_default | aw_def | ||
) |
Definition at line 65 of file MG_species.cxx.
References AWAR_APPEND, AWAR_FIELD_DST, AWAR_FIELD_SRC, AW_root::awar_int(), AWAR_SPECIES_DST, AWAR_SPECIES_SRC, AWAR_SPECIES_XFER_FTS, AWAR_SPECIES_XFER_SCOPE, AWAR_SPECIES_XFER_TYPE, AW_root::awar_string(), NO_FIELD_SELECTED, SXS_LISTED_SPECIES, and SXT_WHOLE_SPECIES.
Referenced by MERGE_create_all_awars().
Definition at line 80 of file MG_species.cxx.
References AW_root::awar(), AWAR_SPECIES_DST, AWAR_SPECIES_SRC, gb_main, GBT_find_species(), get_gb_main(), DbScanner::Map(), AW_awar::read_string(), scanner_dst, SRC_DB, and ta.
Referenced by MG_create_merge_species_window().
Definition at line 95 of file MG_species.cxx.
References CHANGE_KEY_PATH, CHANGEKEY, CHANGEKEY_NAME, CHANGEKEY_TYPE, error(), GB_await_error(), GB_CREATE_CONTAINER, GB_entry(), GB_nextEntry(), GB_read_int(), GB_read_string(), GB_search(), GBT_add_new_species_changekey(), GLOBAL_gb_dst, GLOBAL_gb_src, and NULp.
Referenced by MERGE_sequences_simple(), mg_transfer_listed_species(), mg_transfer_selected_species(), transfer_field_of_listed_cb(), and transfer_field_of_selected_cb().
|
static |
Definition at line 125 of file MG_species.cxx.
References error(), GB_await_error(), GB_copy_dropProtectMarksAndTempstate(), GB_create_container(), GB_delete(), GB_write_flag(), GBS_global_string(), GBS_read_hash(), GBS_write_hash(), GBT_find_species_rel_species_data(), GBT_get_name(), GEN_find_organism(), GEN_is_pseudo_gene_species(), GEN_origin_organism(), GLOBAL_gb_dst, MG_adaptAllCopiedAlignments(), mg_assert, MG_export_fields(), and NULp.
Referenced by mg_transfer_listed_species(), and mg_transfer_selected_species().
Definition at line 202 of file MG_species.cxx.
References AW_root::awar(), AWAR_REMAP_SPECIES_LIST, and AW_awar::read_char_pntr().
Referenced by mg_transfer_listed_species(), mg_transfer_selected_species(), mg_xfer_via_fts(), transfer_field_of_listed_cb(), and transfer_field_of_selected_cb().
|
static |
Definition at line 205 of file MG_species.cxx.
References AW_root::awar(), AWAR_REMAP_ENABLE, and AW_awar::read_int().
Referenced by mg_transfer_listed_species(), mg_transfer_selected_species(), mg_xfer_via_fts(), transfer_field_of_listed_cb(), and transfer_field_of_selected_cb().
|
static |
Definition at line 209 of file MG_species.cxx.
References adaption_enabled(), aw_message(), AW_root::awar(), AWAR_SPECIES_SRC, error(), GB_begin_transaction(), GB_end_transaction(), GBS_global_string(), GBT_find_species_rel_species_data(), GBT_get_species_data(), GEN_is_genome_db(), get_reference_species_names(), AW_window::get_root(), GLOBAL_gb_dst, GLOBAL_gb_src, MG_copy_and_check_alignments(), MG_transfer_fields_info(), MG_transfer_one_species(), NULp, and AW_awar::read_string().
Referenced by MG_transfer_species().
|
static |
Definition at line 256 of file MG_species.cxx.
References adaption_enabled(), aw_message(), error(), GB_begin_transaction(), GB_end_transaction(), GB_end_transaction_show_error(), GB_IGNORE_CASE, GBS_create_hash(), GBS_free_hash(), GBT_create_organism_hash(), GBT_create_species_hash(), GBT_first_species(), GBT_get_species_data(), GBT_next_species(), GEN_is_genome_db(), get_reference_species_names(), AW_window::get_root(), GLOBAL_gb_dst, GLOBAL_gb_src, arb_progress::inc_and_check_user_abort(), IS_QUERIED_SPECIES, MG_copy_and_check_alignments(), mg_count_queried(), MG_transfer_fields_info(), MG_transfer_one_species(), and NULp.
Referenced by MG_transfer_species().
|
static |
Definition at line 303 of file MG_species.cxx.
References error(), GB_await_error(), GB_copy_dropProtectMarksAndTempstate(), GB_DB, GB_delete(), GB_FIND, GB_read_string(), GB_read_type(), GB_search(), GB_STRING, GB_write_flag(), GB_write_string(), GBS_find_string(), GBS_global_string(), MG_adaptAllCopiedAlignments(), and NULp.
Referenced by transfer_field_of_listed_cb(), and transfer_field_of_selected_cb().
|
inline |
Definition at line 353 of file MG_species.cxx.
References GB_MIND_CASE, and GBS_string_matches().
Referenced by transfer_field_of_listed_cb(), and transfer_field_of_selected_cb().
|
static |
Definition at line 357 of file MG_species.cxx.
References adaption_enabled(), aw_message(), AW_root::awar(), AWAR_APPEND, AWAR_FIELD_SRC, error(), fieldContainsAlignment(), GB_await_error(), GB_begin_transaction(), GB_create_container(), GB_end_transaction(), GB_FIND, GB_find_string(), GB_get_father(), GB_IGNORE_CASE, GB_search(), GBS_global_string(), GBT_first_species(), GBT_get_name(), GBT_get_species_data(), GBT_next_species(), GBT_write_string(), get_reference_species_names(), AW_window::get_root(), GLOBAL_gb_dst, GLOBAL_gb_src, arb_progress::inc_and_check_user_abort(), IS_QUERIED_SPECIES, MG_copy_and_check_alignments(), mg_count_queried(), MG_transfer_fields_info(), NO_FIELD_SELECTED, NULp, AW_awar::read_int(), AW_awar::read_string(), SEARCH_GRANDCHILD, and transfer_single_field().
Referenced by popup_single_field_transfer_window().
|
static |
Definition at line 438 of file MG_species.cxx.
References adaption_enabled(), aw_message(), AW_root::awar(), AWAR_FIELD_SRC, AWAR_SPECIES_DST, AWAR_SPECIES_SRC, error(), fieldContainsAlignment(), GB_begin_transaction(), GB_end_transaction(), GB_FIND, GB_search(), GBS_global_string(), GBT_find_species(), get_reference_species_names(), AW_window::get_root(), GLOBAL_gb_dst, GLOBAL_gb_src, MG_copy_and_check_alignments(), MG_transfer_fields_info(), NO_FIELD_SELECTED, NULp, AW_awar::read_string(), and transfer_single_field().
Referenced by popup_single_field_transfer_window().
|
static |
Definition at line 506 of file MG_species.cxx.
References AW_window::activate(), AW_POPDOWN(), AWAR_APPEND, AWAR_FIELD_SRC, create_itemfield_selection_button(), FIELD_FILTER_ANY_FIELD, FIELD_UNFILTERED, GLOBAL_gb_src, implicated, makeHelpCallback(), mg_assert, NULp, SPECIES_get_selector(), SXS_LISTED_SPECIES, SXS_SELECTED_SPECIES, ta, transfer_field_of_listed_cb(), and transfer_field_of_selected_cb().
Referenced by MG_transfer_species().
|
static |
Definition at line 548 of file MG_species.cxx.
References aw_message(), AW_root::awar(), AWAR_FIELD_DST, AWAR_FIELD_SRC, AWAR_TAG_DEL, AWAR_TAG_DST, AWAR_TAG_SRC, arb_progress::done(), error(), GB_await_error(), GB_begin_transaction(), GB_end_transaction_show_error(), GBS_merge_tagged_strings(), GBT_find_or_create_species_rel_species_data(), GBT_first_species(), GBT_get_species_data(), GBT_next_species(), GBT_read_string(), GBT_readOrCreate_string(), GBT_write_string(), AW_window::get_root(), GLOBAL_gb_dst, GLOBAL_gb_src, arb_progress::inc_and_check_user_abort(), IS_QUERIED_SPECIES, mg_count_queried(), NO_FIELD_SELECTED, and AW_awar::read_string().
Referenced by create_mg_merge_tagged_fields_window().
Definition at line 619 of file MG_species.cxx.
References AW_POPDOWN(), AWAR_FIELD_DST, AWAR_FIELD_SRC, AW_root::awar_string(), AWAR_TAG_DEL, AWAR_TAG_DST, AWAR_TAG_SRC, create_itemfield_selection_button(), FIELD_FILTER_STRING, GLOBAL_gb_dst, GLOBAL_gb_src, makeHelpCallback(), MG_merge_tagged_field_cb(), NULp, SPECIES_get_selector(), and ta.
Referenced by MG_create_merge_species_window().
|
static |
Make the alignment names equal
Definition at line 658 of file MG_species.cxx.
References ARB_stricmp(), aw_question(), GBS_strstruct::cat(), error(), GB_export_error(), GB_export_errorf(), GBS_global_string(), GBT_add_alignment_changekeys(), GBT_get_alignment_names(), GBT_get_alignment_type_string(), GBT_rename_alignment(), GBS_strstruct::get_data(), GLOBAL_gb_dst, GLOBAL_gb_src, NULp, GBS_strstruct::put(), CharPtrArray::remove(), and CharPtrArray::size().
Referenced by MERGE_sequences_simple().
Merge the sequences of two databases
Definition at line 738 of file MG_species.cxx.
References ARB_strdup(), aw_input(), aw_message_if(), aw_question(), AW_root::awar(), AWAR_SPECIES_NAME, AWTC_create_numbered_suffix(), GB_transaction::close(), error(), FALLTHROUGH, GB_await_error(), GB_copy_dropMarksAndTempstate(), GB_create_container(), GB_delete(), GB_entry(), GB_nextEntry(), GB_number_of_subentries(), GB_raise_user_flag(), GB_read_string(), GB_search(), GB_STRING, GB_USERFLAG_QUERY, GB_write_flag(), GBS_free_hash(), GBS_global_string(), GBS_read_hash(), GBS_write_hash(), GBT_create_species_hash_sized(), GBT_get_species_data(), GBT_write_string(), GLOBAL_gb_dst, GLOBAL_gb_src, mg_assert, MG_equal_alignments(), MG_transfer_fields_info(), NULp, warning(), and AW_awar::write_string().
Referenced by nt_seq_load_cb().
Definition at line 871 of file MG_species.cxx.
References AW_root::awar(), AWAR_SPECIES_SRC, and AW_awar::write_string().
Referenced by mg_initialize_species_selectors().
Definition at line 874 of file MG_species.cxx.
References AW_root::awar(), AWAR_SPECIES_DST, and AW_awar::write_string().
Referenced by mg_initialize_species_selectors().
|
static |
Definition at line 878 of file MG_species.cxx.
References GBT_get_species_data(), and GLOBAL_gb_src.
Referenced by mg_initialize_species_selectors().
|
static |
Definition at line 881 of file MG_species.cxx.
References GBT_get_species_data(), and GLOBAL_gb_dst.
Referenced by mg_initialize_species_selectors().
Definition at line 885 of file MG_species.cxx.
References AW_root::awar(), AWAR_SPECIES_SRC, GBT_find_species(), GLOBAL_gb_src, NULp, AW_awar::read_char_pntr(), and ta.
Referenced by mg_initialize_species_selectors().
Definition at line 890 of file MG_species.cxx.
References AW_root::awar(), AWAR_SPECIES_DST, GBT_find_species(), GLOBAL_gb_dst, NULp, AW_awar::read_char_pntr(), and ta.
Referenced by mg_initialize_species_selectors().
|
static |
Definition at line 898 of file MG_species.cxx.
References MutableItemSelector::get_first_item_container, MutableItemSelector::get_selected_item, initialized, mg_get_first_species_data1(), mg_get_first_species_data2(), mg_get_selected_species1(), mg_get_selected_species2(), mg_select_species1(), mg_select_species2(), s, SPECIES_get_selector(), and MutableItemSelector::update_item_awars.
Referenced by MG_create_merge_species_window().
|
static |
Definition at line 1109 of file MG_species.cxx.
References adaption_enabled(), aw_message_if(), AW_root::awar(), AWAR_SPECIES_XFER_FTS, ARB_ERROR::deliver(), error(), get_reference_species_names(), ErrorOr< TYPE >::getError(), ErrorOr< TYPE >::getValue(), GLOBAL_gb_dst, GLOBAL_gb_src, ErrorOr< TYPE >::hasError(), FieldTransfer::RuleSet::loadFrom(), MG_copy_and_check_alignments(), NULp, AW_awar::read_char_pntr(), ScopedTransporter::transferAllIn(), and XFER_getFullFTS().
Referenced by MG_transfer_species().
|
static |
Definition at line 1161 of file MG_species.cxx.
References AW_root::awar(), AWAR_SPECIES_XFER_SCOPE, AWAR_SPECIES_XFER_TYPE, AW_window::get_root(), mg_transfer_listed_species(), mg_transfer_selected_species(), mg_xfer_via_fts(), popup_single_field_transfer_window(), AW_awar::read_int(), SXS_LISTED_SPECIES, SXS_SELECTED_SPECIES, SXT_SINGLE_FIELD, SXT_USING_FTS, SXT_USING_FTS_SKIP_ALI, SXT_WHOLE_SPECIES, and type.
Referenced by MG_create_merge_species_window().
Definition at line 1188 of file MG_species.cxx.
References AW_awar::add_callback(), AW_window::at(), aw_message(), AW_POPDOWN(), AW_root::awar(), AW_root::awar_int(), AWAR_REMAP_ENABLE, AWAR_REMAP_SPECIES_LIST, AWAR_SPECIES_DST, AWAR_SPECIES_SRC, AWAR_SPECIES_XFER_FTS, AWAR_SPECIES_XFER_SCOPE, AWAR_SPECIES_XFER_TYPE, AW_root::awar_string(), AWM_ALL, AWM_DISABLED, AW_window::button_length(), QUERY::query_spec::by_pos_fig, AW_window::callback(), QUERY::query_spec::config_pos_fig, QUERY::query_spec::count_pos_fig, DbScanner::create(), AW_window::create_autosize_button(), AW_window::create_button(), AW_window::create_menu(), create_mg_check_fields_window(), create_mg_merge_tagged_fields_window(), AW_window::create_option_menu(), QUERY::create_query_box(), AW_window::create_text_field(), AW_window::create_toggle(), DB_SCANNER, QUERY::query_spec::do_delete_pos_fig, QUERY::query_spec::do_mark_pos_fig, QUERY::query_spec::do_query_pos_fig, QUERY::query_spec::do_refresh_pos_fig, QUERY::query_spec::do_set_pos_fig, QUERY::query_spec::do_unmark_pos_fig, DST_DB, QUERY::query_spec::ere_pos_fig, error(), QUERY::query_spec::expect_hit_in_ref_list, QUERY::query_spec::gb_main, QUERY::query_spec::gb_ref, GB_USERFLAG_QUERY, QUERY::query_spec::get_queried_itemtype(), AW_window::get_root(), GLOBAL_gb_dst, GLOBAL_gb_src, AW_window_simple_menu::init(), AW_window::insert_menu_topic(), AW_window::insert_option(), QUERY::query_spec::key_pos_fig, AW_window::load_xfig(), makeHelpCallback(), MG_create_preserves_selection_window(), MG_expect_renamed(), MG_gene_species_create_field_transfer_def_window(), mg_initialize_species_selectors(), MG_map_species(), MG_transfer_species(), NULp, QUERY::query_spec::open_parser_pos_fig, QUERY::query_spec::qbox_pos_fig, QUERY::query_spec::query_pos_fig, QUERY::query_spec::result_pos_fig, QUERY::query_spec::select_bit, AW_window::sens_mask(), AW_window::sep______________(), ScopedTransporter::set_query_to_update(), AW_window::shadow_width(), QUERY::query_spec::species_name, SRC_DB, SXS_LISTED_SPECIES, SXS_SELECTED_SPECIES, SXT_SINGLE_FIELD, SXT_USING_FTS, SXT_USING_FTS_SKIP_ALI, SXT_WHOLE_SPECIES, QUERY::query_spec::tree_name, AW_window::update_option_menu(), QUERY::query_spec::use_menu, AW_awar::write_int(), and XFER_select_RuleSet().
Referenced by MERGE_create_main_window().
Definition at line 48 of file MG_species.cxx.
Definition at line 49 of file MG_species.cxx.
Referenced by MG_map_species().
|
static |
Definition at line 896 of file MG_species.cxx.
|
static |
Definition at line 1159 of file MG_species.cxx.