ARB
|
#include "di_clusters.hxx"
#include "di_clustertree.hxx"
#include "di_foundclusters.hxx"
#include "di_awars.hxx"
#include <AP_seq_protein.hxx>
#include <AP_seq_dna.hxx>
#include <awt_sel_boxes.hxx>
#include <aw_awars.hxx>
#include <aw_msg.hxx>
#include <arb_progress.h>
#include <arb_msg_nospam.h>
#include <aw_root.hxx>
#include <list>
Go to the source code of this file.
Classes | |
class | FINAL_TYPE< SEQTYPE > |
xml element More... | |
class | FINAL_TYPE< SEQTYPE > |
xml element More... | |
struct | GroupChanges |
class | GroupBuilder |
class | HasntCurrentClusterPrefix |
class | UseTreeRoot |
Typedefs | |
typedef map< string, GroupTree * > | Species2Tip |
Enumerations | |
enum | Group_What { GROUP_SELECTED, GROUP_LISTED } |
enum | Group_Action { GROUP_CREATE, GROUP_DELETE } |
enum | Group_NotFound { NOTFOUND_ABORT, NOTFOUND_WARN, NOTFOUND_IGNORE } |
enum | Group_Existing { EXISTING_GROUP_ABORT, EXISTING_GROUP_SKIP, EXISTING_GROUP_OVERWRITE, EXISTING_GROUP_APPEND_ORG } |
enum | AffectedClusters { ALL_CLUSTERS, SEL_CLUSTER } |
Variables | |
static ClustersData * | global_data = NULp |
#define di_assert | ( | cond | ) | arb_assert(cond) |
Definition at line 32 of file DI_clusters.cxx.
Referenced by DI_MATRIX::calculate(), DI_MATRIX::calculate_pro(), DI_MATRIX::detect_transformation(), di_calculate_matrix(), di_calculate_tree_cb(), di_forget_global_data(), di_mark_by_distance(), di_recalc_matrix(), di_view_set_distances(), GroupBuilder::find_best_matching_subtree(), gc_changed_cb(), get_load_count(), init(), di_protdist::makedists(), GroupBuilder::save_modified_tree(), FINAL_TYPE< SEQTYPE >::tag_leaf(), and update_cb().
#define AWAR_CLUSTER_PREFIX AWAR_DIST_PREFIX "cluster/" |
Definition at line 37 of file DI_clusters.cxx.
#define AWAR_CLUSTER_PREFIX_TEMP "/tmp/" AWAR_DIST_PREFIX |
Definition at line 38 of file DI_clusters.cxx.
#define AWAR_CLUSTER_MAXDIST AWAR_CLUSTER_PREFIX "maxdist" |
Definition at line 40 of file DI_clusters.cxx.
Referenced by calculate_clusters(), DI_create_cluster_awars(), DI_create_cluster_detection_window(), and GroupBuilder::GroupBuilder().
#define AWAR_CLUSTER_MINSIZE AWAR_CLUSTER_PREFIX "minsize" |
Definition at line 41 of file DI_clusters.cxx.
Referenced by calculate_clusters(), DI_create_cluster_awars(), and DI_create_cluster_detection_window().
#define AWAR_CLUSTER_AUTOMARK AWAR_CLUSTER_PREFIX "automark" |
Definition at line 42 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), DI_create_cluster_detection_window(), and select_cluster_cb().
#define AWAR_CLUSTER_MARKREP AWAR_CLUSTER_PREFIX "markrep" |
Definition at line 43 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), DI_create_cluster_detection_window(), and mark_clusters().
#define AWAR_CLUSTER_SELECTREP AWAR_CLUSTER_PREFIX "selrep" |
Definition at line 44 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), DI_create_cluster_detection_window(), and select_cluster_cb().
#define AWAR_CLUSTER_ORDER AWAR_CLUSTER_PREFIX "order" |
Definition at line 45 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), DI_create_cluster_detection_window(), and sort_order_changed_cb().
#define AWAR_CLUSTER_GRP_PREFIX AWAR_CLUSTER_PREFIX "group/" |
Definition at line 47 of file DI_clusters.cxx.
#define AWAR_CLUSTER_GRP_PREFIX_TMP "/tmp/" AWAR_CLUSTER_GRP_PREFIX |
Definition at line 48 of file DI_clusters.cxx.
#define AWAR_CLUSTER_GROUP_WHAT AWAR_CLUSTER_GRP_PREFIX "all" |
Definition at line 50 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), group_clusters(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_EXISTING AWAR_CLUSTER_GRP_PREFIX "existing" |
Definition at line 51 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), GroupBuilder::GroupBuilder(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_NOTFOUND AWAR_CLUSTER_GRP_PREFIX "notfound" |
Definition at line 52 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), GroupBuilder::GroupBuilder(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_IDENTITY AWAR_CLUSTER_GRP_PREFIX "identity" |
Definition at line 53 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), GroupBuilder::GroupBuilder(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_PREFIX AWAR_CLUSTER_GRP_PREFIX "prefix" |
Definition at line 54 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), GroupBuilder::GroupBuilder(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_PREFIX_MATCH AWAR_CLUSTER_GRP_PREFIX "prefix_match" |
Definition at line 55 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), GroupBuilder::GroupBuilder(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_SUFFIX AWAR_CLUSTER_GRP_PREFIX "suffix" |
Definition at line 56 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), GroupBuilder::GroupBuilder(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_PARTSEP AWAR_CLUSTER_GRP_PREFIX "separator" |
Definition at line 57 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), GroupBuilder::GroupBuilder(), and popup_group_clusters_window().
#define AWAR_CLUSTER_GROUP_EXAMPLE AWAR_CLUSTER_GRP_PREFIX_TMP "example" |
Definition at line 58 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), popup_group_clusters_window(), and update_example().
#define AWAR_CLUSTER_SELECTED AWAR_CLUSTER_PREFIX_TEMP "selected" |
Definition at line 60 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), DI_create_cluster_detection_window(), select_cluster(), update_example(), and with_affected_clusters_do().
#define AWAR_CLUSTER_RESTORE_LABEL AWAR_CLUSTER_PREFIX_TEMP "rlabel" |
Definition at line 61 of file DI_clusters.cxx.
Referenced by DI_create_cluster_awars(), DI_create_cluster_detection_window(), and update_restore_label().
typedef map<string, GroupTree*> Species2Tip |
Definition at line 301 of file DI_clusters.cxx.
enum Group_What |
Enumerator | |
---|---|
GROUP_SELECTED | |
GROUP_LISTED |
Definition at line 63 of file DI_clusters.cxx.
enum Group_Action |
Enumerator | |
---|---|
GROUP_CREATE | |
GROUP_DELETE |
Definition at line 68 of file DI_clusters.cxx.
enum Group_NotFound |
Enumerator | |
---|---|
NOTFOUND_ABORT | |
NOTFOUND_WARN | |
NOTFOUND_IGNORE |
Definition at line 73 of file DI_clusters.cxx.
enum Group_Existing |
Enumerator | |
---|---|
EXISTING_GROUP_ABORT | |
EXISTING_GROUP_SKIP | |
EXISTING_GROUP_OVERWRITE | |
EXISTING_GROUP_APPEND_ORG |
Definition at line 79 of file DI_clusters.cxx.
enum AffectedClusters |
Enumerator | |
---|---|
ALL_CLUSTERS | |
SEL_CLUSTER |
Definition at line 88 of file DI_clusters.cxx.
|
static |
Definition at line 94 of file DI_clusters.cxx.
References di_assert, and ClustersData::free().
Referenced by DI_create_cluster_detection_window().
|
static |
Definition at line 103 of file DI_clusters.cxx.
References ClustersData::update_cluster_selection_list().
Referenced by delete_clusters(), DI_create_cluster_detection_window(), save_results(), sort_order_changed_cb(), and update_all().
|
static |
Definition at line 107 of file DI_clusters.cxx.
References AW_root::awar(), AWAR_CLUSTER_RESTORE_LABEL, ClustersData::count(), GBS_global_string(), AW_window::get_root(), label, STORED_CLUSTERS, and AW_awar::write_string().
Referenced by update_all().
|
static |
Definition at line 115 of file DI_clusters.cxx.
References update_cluster_sellist(), and update_restore_label().
Referenced by restore_clusters(), store_clusters(), and swap_clusters().
|
static |
Definition at line 120 of file DI_clusters.cxx.
References ClustersData::add(), CS_IS_CLUSTER, and SHOWN_CLUSTERS.
Referenced by save_results().
|
static |
Definition at line 129 of file DI_clusters.cxx.
References ClustersData::clear(), save_results_recursive(), SHOWN_CLUSTERS, and update_cluster_sellist().
Referenced by calculate_clusters().
|
static |
Definition at line 135 of file DI_clusters.cxx.
References aw_message(), AW_root::awar(), AWAR_CLUSTER_MAXDIST, AWAR_CLUSTER_MINSIZE, AWAR_DIST_ALIGNMENT, AWAR_DIST_TREE_CURR_NAME, WeightedFilter::create_aliview(), error(), gb_main, GBT_is_alignment_protein(), ClustersData::get_gb_main(), AW_window::get_root(), NULp, AW_awar::read_float(), AW_awar::read_int(), AW_awar::read_string(), save_results(), seq, arb_progress::subtitle(), ta, tree, and ClustersData::weighted_filter.
Referenced by DI_create_cluster_detection_window().
DECLARE_CBTYPE_FVV_AND_BUILDERS | ( | ClusterCallback | , |
void | , | ||
ClusterPtr | |||
) |
|
inline |
Definition at line 190 of file DI_clusters.cxx.
Referenced by update_example(), and with_affected_clusters_do().
|
static |
Definition at line 195 of file DI_clusters.cxx.
References aw_message(), AW_root::awar(), AWAR_CLUSTER_SELECTED, cb, cl_assert, ClustersData::clusterWithID(), ClustersData::count(), ClustersData::get_clusterIDs(), is_cluster(), SmartPtr< T, C >::isNull(), AW_awar::read_int(), SEL_CLUSTER, and SHOWN_CLUSTERS.
Referenced by delete_clusters(), group_clusters(), mark_clusters(), select_cluster_cb(), and store_clusters().
|
static |
Definition at line 249 of file DI_clusters.cxx.
References Cluster::mark_all_members().
Referenced by mark_clusters().
|
static |
Definition at line 252 of file DI_clusters.cxx.
References AW_root::awar(), AWAR_SPECIES_NAME, GBT_get_name(), ClustersData::get_aw_root(), Cluster::get_representative(), ta, and AW_awar::write_string().
Referenced by select_cluster_cb().
|
static |
Definition at line 258 of file DI_clusters.cxx.
References AW_root::awar(), AWAR_CLUSTER_MARKREP, AWAR_TREE_REFRESH, gb_main, GBT_mark_all(), ClustersData::get_aw_root(), ClustersData::get_gb_main(), mark_cluster(), AW_awar::read_int(), ta, AW_awar::touch(), and with_affected_clusters_do().
Referenced by DI_create_cluster_detection_window(), and select_cluster_cb().
|
static |
Definition at line 270 of file DI_clusters.cxx.
References AW_root::awar(), AWAR_CLUSTER_AUTOMARK, AWAR_CLUSTER_SELECTREP, AWAR_SPECIES_NAME, ClustersData::get_gb_main(), mark_clusters(), NULp, AW_awar::read_int(), SEL_CLUSTER, select_representative(), ta, with_affected_clusters_do(), and AW_awar::write_string().
Referenced by DI_create_cluster_detection_window().
|
static |
Definition at line 283 of file DI_clusters.cxx.
References AW_root::awar(), AWAR_CLUSTER_SELECTED, ClustersData::get_aw_root(), and AW_awar::write_int().
Referenced by delete_clusters(), delete_selected_cluster(), group_clusters(), store_clusters(), store_selected_cluster(), and swap_clusters().
|
static |
Definition at line 292 of file DI_clusters.cxx.
References AW_root::awar(), AWAR_CLUSTER_ORDER, ClustersData::changeSortOrder(), AW_awar::read_int(), and update_cluster_sellist().
Referenced by DI_create_cluster_detection_window().
Definition at line 549 of file DI_clusters.cxx.
References concat().
Referenced by GroupBuilder::generate_group_name().
|
static |
Definition at line 756 of file DI_clusters.cxx.
References AW_root::awar(), AWAR_CLUSTER_GROUP_EXAMPLE, AWAR_CLUSTER_SELECTED, cl_assert, ClustersData::clusterWithID(), error(), GroupBuilder::find_best_matching_subtree(), GBS_global_string(), ClustersData::get_gb_main(), GROUP_CREATE, is_cluster(), SmartPtr< T, C >::isNull(), AW_awar::read_int(), and AW_awar::write_string().
Referenced by DI_create_cluster_awars().
|
static |
Definition at line 777 of file DI_clusters.cxx.
References GroupBuilder::get_error(), and GroupBuilder::update_group().
Referenced by group_clusters().
|
static |
Definition at line 783 of file DI_clusters.cxx.
References Cluster::accept_proposed().
Referenced by group_clusters().
|
static |
Definition at line 787 of file DI_clusters.cxx.
References accept_proposed_names(), ALL_CLUSTERS, aw_message(), aw_message_if(), AW_root::awar(), AWAR_CLUSTER_GROUP_WHAT, GB_transaction::close(), error(), ClustersData::get_aw_root(), ClustersData::get_gb_main(), Cluster::get_ID(), GROUP_LISTED, SmartPtr< T, C >::isNull(), AW_awar::read_int(), SEL_CLUSTER, select_cluster(), ta, update_cluster_group(), ClustersData::update_cluster_selection_list(), and with_affected_clusters_do().
Referenced by popup_group_clusters_window().
|
static |
Definition at line 823 of file DI_clusters.cxx.
References AW_POPDOWN(), AWAR_CLUSTER_GROUP_EXAMPLE, AWAR_CLUSTER_GROUP_EXISTING, AWAR_CLUSTER_GROUP_IDENTITY, AWAR_CLUSTER_GROUP_NOTFOUND, AWAR_CLUSTER_GROUP_PARTSEP, AWAR_CLUSTER_GROUP_PREFIX, AWAR_CLUSTER_GROUP_PREFIX_MATCH, AWAR_CLUSTER_GROUP_SUFFIX, AWAR_CLUSTER_GROUP_WHAT, EXISTING_GROUP_ABORT, EXISTING_GROUP_APPEND_ORG, EXISTING_GROUP_OVERWRITE, EXISTING_GROUP_SKIP, AW_window::get_root(), group_clusters(), GROUP_CREATE, GROUP_DELETE, GROUP_LISTED, GROUP_SELECTED, makeHelpCallback(), NOTFOUND_ABORT, NOTFOUND_IGNORE, NOTFOUND_WARN, and NULp.
Referenced by DI_create_cluster_detection_window().
|
static |
Definition at line 900 of file DI_clusters.cxx.
References ClustersData::idAtPos(), ClustersData::remove(), select_cluster(), and SHOWN_CLUSTERS.
Referenced by delete_clusters().
|
static |
Definition at line 906 of file DI_clusters.cxx.
References ALL_CLUSTERS, ClustersData::clear(), delete_selected_cluster(), AW_window::get_root(), SEL_CLUSTER, select_cluster(), SHOWN_CLUSTERS, update_cluster_sellist(), and with_affected_clusters_do().
Referenced by DI_create_cluster_detection_window().
|
static |
Definition at line 923 of file DI_clusters.cxx.
References Cluster::get_ID(), ClustersData::idAtPos(), select_cluster(), SHOWN_CLUSTERS, and ClustersData::store().
Referenced by store_clusters().
|
static |
Definition at line 930 of file DI_clusters.cxx.
References ALL_CLUSTERS, AW_window::get_root(), SEL_CLUSTER, select_cluster(), ClustersData::store_all(), store_selected_cluster(), update_all(), and with_affected_clusters_do().
Referenced by DI_create_cluster_detection_window().
|
static |
Definition at line 945 of file DI_clusters.cxx.
References ClustersData::restore_all(), and update_all().
Referenced by DI_create_cluster_detection_window().
|
static |
Definition at line 949 of file DI_clusters.cxx.
References select_cluster(), ClustersData::swap_all(), and update_all().
Referenced by DI_create_cluster_detection_window().
AW_window* DI_create_cluster_detection_window | ( | AW_root * | aw_root, |
WeightedFilter * | weightedFilter | ||
) |
Definition at line 958 of file DI_clusters.cxx.
References AW_awar::add_callback(), ALL_CLUSTERS, AW_POPDOWN(), AW_root::awar(), AWAR_CLUSTER_AUTOMARK, AWAR_CLUSTER_MARKREP, AWAR_CLUSTER_MAXDIST, AWAR_CLUSTER_MINSIZE, AWAR_CLUSTER_ORDER, AWAR_CLUSTER_RESTORE_LABEL, AWAR_CLUSTER_SELECTED, AWAR_CLUSTER_SELECTREP, AWAR_DIST_TREE_CURR_NAME, calculate_clusters(), cl_assert, ClustersData::clusterList, CMM_ALL, CMM_ALL_BUT_REP, CMM_ONLY_REP, delete_clusters(), di_forget_global_data(), makeHelpCallback(), mark_clusters(), NULp, popup_group_clusters_window(), restore_clusters(), SEL_CLUSTER, select_cluster_cb(), SORT_BY_CLUSTERSIZE, SORT_BY_MAX_DIST, SORT_BY_MEANDIST, SORT_BY_MIN_BASES, SORT_BY_MIN_DIST, SORT_BY_TREEPOSITION, sort_order_changed_cb(), SORT_REVERSE, store_clusters(), swap_clusters(), and update_cluster_sellist().
Referenced by DI_create_matrix_window().
void DI_create_cluster_awars | ( | AW_root * | aw_root, |
AW_default | def, | ||
AW_default | db | ||
) |
Definition at line 1061 of file DI_clusters.cxx.
References AW_awar::add_callback(), AWAR_CLUSTER_AUTOMARK, AWAR_CLUSTER_GROUP_EXAMPLE, AWAR_CLUSTER_GROUP_EXISTING, AWAR_CLUSTER_GROUP_IDENTITY, AWAR_CLUSTER_GROUP_NOTFOUND, AWAR_CLUSTER_GROUP_PARTSEP, AWAR_CLUSTER_GROUP_PREFIX, AWAR_CLUSTER_GROUP_PREFIX_MATCH, AWAR_CLUSTER_GROUP_SUFFIX, AWAR_CLUSTER_GROUP_WHAT, AWAR_CLUSTER_MARKREP, AWAR_CLUSTER_MAXDIST, AWAR_CLUSTER_MINSIZE, AWAR_CLUSTER_ORDER, AWAR_CLUSTER_RESTORE_LABEL, AWAR_CLUSTER_SELECTED, AWAR_CLUSTER_SELECTREP, AW_root::awar_float(), AW_root::awar_int(), AW_root::awar_string(), AWAR_TREE_REFRESH, CMM_ALL_BUT_REP, EXISTING_GROUP_ABORT, GROUP_LISTED, NOTFOUND_ABORT, AW_awar::set_minmax(), SORT_BY_MEANDIST, and update_example().
Referenced by DI_create_matrix_variables().
|
static |
Definition at line 90 of file DI_clusters.cxx.