ARB
|
#include "awt_filter.hxx"
#include "awt_sel_boxes.hxx"
#include "ga_local.h"
#include <aw_awars.hxx>
#include <aw_root.hxx>
#include <aw_select.hxx>
#include <AP_filter.hxx>
#include <arbdbt.h>
#include <arb_strbuf.h>
#include <ad_cb.h>
#include <arb_str.h>
Go to the source code of this file.
|
static |
recalc filter
Definition at line 15 of file AWT_filter.cxx.
References AW_root::awar(), adfiltercbstruct::awr, buffer, GBS_strstruct::cat(), adfiltercbstruct::def_2filter, adfiltercbstruct::def_alignment, adfiltercbstruct::def_cancel, adfiltercbstruct::def_filter, adfiltercbstruct::def_len, adfiltercbstruct::def_max, adfiltercbstruct::def_min, adfiltercbstruct::def_name, adfiltercbstruct::def_source, adfiltercbstruct::def_subname, ga_assert, GB_brother(), GB_clear_error(), GB_FIND, GB_get_father(), adfiltercbstruct::gb_main, GB_pop_transaction(), GB_push_transaction(), GB_read_bits(), GB_read_string(), GB_read_type(), GB_search(), GB_STRING, GBT_find_SAI(), GBT_find_species(), GBT_get_alignment_len(), GBS_strstruct::get_data(), max, min, GBS_strstruct::npaste_at(), NULp, GBS_strstruct::put(), AW_awar::read_int(), AW_awar::read_string(), s, AW_awar::write_int(), and AW_awar::write_string().
Referenced by awt_create_select_filter(), awt_create_select_filter_win(), and awt_create_select_filter_window_gb_cb().
|
static |
Definition at line 130 of file AWT_filter.cxx.
References ARB_strdup(), adfiltercbstruct::filterlist, GB_BITS, GB_child(), GB_entry(), GB_nextChild(), GB_read_char_pntr(), GB_read_key_pntr(), GB_read_type(), GB_STRING, GBS_global_string(), GBS_global_string_copy(), GBT_get_name_or_description(), AW_selection_list::insert(), and type.
Referenced by awt_create_select_filter_window_gb_cb().
|
static |
Definition at line 162 of file AWT_filter.cxx.
References AW_root::awar(), AWAR_SPECIES_NAME, adfiltercbstruct::awr, awt_add_sequences_to_list(), awt_create_select_filter_window_aw_cb(), AW_selection_list::clear(), adfiltercbstruct::def_alignment, adfiltercbstruct::filterlist, adfiltercbstruct::gb_main, GB_pop_transaction(), GB_push_transaction(), GBT_find_species(), GBT_first_SAI(), GBT_next_SAI(), GBT_readOrCreate_char_pntr(), AW_selection_list::insert_default(), NULp, AW_awar::read_string(), and AW_selection_list::update().
Referenced by awt_create_select_filter(), and awt_create_select_filter_win().
void awt_create_filter_awars | ( | AW_root * | aw_root, |
AW_default | aw_def, | ||
const char * | awar_filtername, | ||
const char * | awar_mapto_alignment | ||
) |
creates awars needed for filter definition (see awt_create_select_filter())
created awars: "SOMETHING/name" (as specified in param awar_filtername; type STRING) "SOMETHING/filter" (type STRING) "SOMETHING/alignment" (type STRING)
The names of the created awars are available via adfiltercbstruct (after awt_create_select_filter() was called).
aw_root | application root |
aw_def | database for created awars |
awar_filtername | name of filtername awar (has to be "SOMETHING/name"; awarname should start with "tmp/", saving in properties/db does not work correctly!). |
awar_mapto_alignment | if given, "SOMETHING/alignment" is mapped to this awar |
Definition at line 194 of file AWT_filter.cxx.
References ARB_strBeginsWith(), AW_root::awar_string(), ga_assert, GBS_string_eval(), and AW_awar::map().
Referenced by create_export_awars(), GDE_init(), NT_create_colstat_2_gnuplot_window(), pars_create_all_awars(), and SQ_create_awars().
adfiltercbstruct* awt_create_select_filter | ( | AW_root * | aw_root, |
GBDATA * | gb_main, | ||
const char * | def_name | ||
) |
Create filter definition (allowing customization and programmatical use of a filter)
aw_root | application root |
gb_main | DB root node |
def_name | filtername awarname (name has to be "SOMETHING/name"; create using awt_create_filter_awars()) |
Definition at line 225 of file AWT_filter.cxx.
References AW_awar::add_callback(), adfiltercbstruct::aw_filt, AW_ROOT_DEFAULT, AW_root::awar(), AW_root::awar_int(), AWAR_SPECIES_NAME, AW_root::awar_string(), adfiltercbstruct::awr, awt_create_select_filter_window_aw_cb(), awt_create_select_filter_window_gb_cb(), adfiltercbstruct::def_2alignment, adfiltercbstruct::def_2filter, adfiltercbstruct::def_2name, adfiltercbstruct::def_alignment, adfiltercbstruct::def_cancel, adfiltercbstruct::def_dest, adfiltercbstruct::def_filter, adfiltercbstruct::def_len, adfiltercbstruct::def_max, adfiltercbstruct::def_min, adfiltercbstruct::def_name, adfiltercbstruct::def_simplify, adfiltercbstruct::def_source, adfiltercbstruct::def_subname, adfiltercbstruct::filterlist, ga_assert, GB_add_callback(), GB_CB_CHANGED, adfiltercbstruct::gb_main, gb_main, GB_pop_transaction(), GB_push_transaction(), GB_search(), GB_STRING, GBS_global_string(), GBS_string_eval(), GBT_get_SAI_data(), NULp, AW_awar::read_string(), AW_awar::touch(), and AW_awar::write_string().
Referenced by awt_create_2_filter_window(), create_AWTC_export_window(), GDE_menuitem_cb(), NT_create_colstat_2_gnuplot_window(), SQ_create_seq_quality_window(), and WeightedFilter::WeightedFilter().
void awt_set_awar_to_valid_filter_good_for_tree_methods | ( | GBDATA * | gb_main, |
AW_root * | awr, | ||
const char * | awar_name | ||
) |
Definition at line 314 of file AWT_filter.cxx.
References AW_root::awar(), GBT_find_SAI(), and AW_awar::write_string().
Referenced by pars_create_all_awars().
|
static |
Definition at line 326 of file AWT_filter.cxx.
References AW_root::awar(), awt_create_select_filter(), awt_create_select_filter_win(), adfiltercbstruct::def_2alignment, adfiltercbstruct::def_2name, adfiltercbstruct::def_alignment, adfiltercbstruct::gb_main, GB_pop_transaction(), GB_push_transaction(), and AW_awar::map().
Referenced by awt_create_select_filter_win().
Definition at line 334 of file AWT_filter.cxx.
References AW_root::awar(), AWAR_GDE_FILTER, AW_root::awar_no_error(), GBS_global_string(), GBS_global_string_copy(), and AW_awar::read_string().
Referenced by di_calculate_tree_cb(), and GDE_startaction_cb().
AW_window* awt_create_select_filter_win | ( | AW_root * | aw_root, |
adfiltercbstruct * | acbs | ||
) |
Create a filter selection window
Definition at line 365 of file AWT_filter.cxx.
References AW_window::at(), adfiltercbstruct::aw_filt, AW_POPDOWN(), AWM_ALL, AWM_EXP, awt_create_2_filter_window(), awt_create_select_filter_window_aw_cb(), awt_create_select_filter_window_gb_cb(), adfiltercbstruct::def_2name, adfiltercbstruct::def_cancel, adfiltercbstruct::def_len, adfiltercbstruct::def_max, adfiltercbstruct::def_min, adfiltercbstruct::def_name, adfiltercbstruct::def_simplify, adfiltercbstruct::def_source, adfiltercbstruct::def_subname, adfiltercbstruct::filterlist, adfiltercbstruct::gb_main, GB_pop_transaction(), GB_push_transaction(), GBS_checksum(), GBS_global_string_copy(), makeHelpCallback(), and NULp.
Referenced by awt_create_2_filter_window(), create_AWTC_export_window(), create_pars_init_window(), DI_create_matrix_window(), GDE_menuitem_cb(), NT_create_colstat_2_gnuplot_window(), SQ_create_seq_quality_window(), and STAT_create_chimera_check_window().
AP_filter* awt_get_filter | ( | adfiltercbstruct * | acbs | ) |
create a filter from settings made in filter-definition window. always returns a filter, use awt_invalid_filter() to check for validity
Definition at line 431 of file AWT_filter.cxx.
References AW_root::awar(), adfiltercbstruct::awr, adfiltercbstruct::def_alignment, adfiltercbstruct::def_filter, adfiltercbstruct::def_simplify, AP_filter::enable_simplify(), GB_clear_error(), adfiltercbstruct::gb_main, GB_pop_transaction(), GB_push_transaction(), GBT_get_alignment_len(), NULp, AW_awar::read_int(), and AW_awar::read_string().
Referenced by WeightedFilter::create_filter(), export_go_cb(), GDE_startaction_cb(), sq_calc_seq_quality_cb(), and update_exportTest_result_cb().
Definition at line 467 of file AWT_filter.cxx.
References AP_filter::is_invalid().
Referenced by GDE_startaction_cb(), and sq_calc_seq_quality_cb().
void awt_destroy_filter | ( | AP_filter * | filter | ) |
Definition at line 471 of file AWT_filter.cxx.
Referenced by sq_calc_seq_quality_cb().