| 1 | // =========================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : st_window.hxx // |
|---|
| 4 | // Purpose : // |
|---|
| 5 | // // |
|---|
| 6 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 7 | // http://www.arb-home.de/ // |
|---|
| 8 | // // |
|---|
| 9 | // =========================================================== // |
|---|
| 10 | |
|---|
| 11 | #ifndef ST_WINDOW_HXX |
|---|
| 12 | #define ST_WINDOW_HXX |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | #define ST_ML_AWAR "tmp/st_ml/" |
|---|
| 16 | #define ST_ML_AWAR_CSP ST_ML_AWAR "name" |
|---|
| 17 | #define ST_ML_AWAR_ALIGNMENT ST_ML_AWAR "alignment" |
|---|
| 18 | #define ST_ML_AWAR_CQ_BUCKET_SIZE ST_ML_AWAR "bucket_size" |
|---|
| 19 | |
|---|
| 20 | #define ST_ML_AWAR_CQ_FILTER_NAME ST_ML_AWAR "filter/name" |
|---|
| 21 | #define ST_ML_AWAR_CQ_FILTER_ALIGNMENT ST_ML_AWAR "filter/alignment" |
|---|
| 22 | #define ST_ML_AWAR_CQ_FILTER_FILTER ST_ML_AWAR "filter/filter" |
|---|
| 23 | #define ST_ML_AWAR_CQ_MARKED_ONLY ST_ML_AWAR "marked_only" |
|---|
| 24 | #define ST_ML_AWAR_CQ_DEST_FIELD ST_ML_AWAR "dest_field" |
|---|
| 25 | #define ST_ML_AWAR_CQ_REPORT ST_ML_AWAR "report" |
|---|
| 26 | |
|---|
| 27 | class ST_ML; |
|---|
| 28 | class AP_tree; |
|---|
| 29 | class AWT_csp; |
|---|
| 30 | |
|---|
| 31 | AW_window *st_create_main_window(AW_root * aw_root, ST_ML * st_ml, |
|---|
| 32 | AW_CB0 refresh_func, AW_window * win); |
|---|
| 33 | ST_ML *new_ST_ML(GBDATA * gb_main); |
|---|
| 34 | int st_is_inited(ST_ML * st_ml); |
|---|
| 35 | |
|---|
| 36 | typedef unsigned char ST_ML_Color; |
|---|
| 37 | enum st_report_enum { |
|---|
| 38 | ST_QUALITY_REPORT_NONE, |
|---|
| 39 | ST_QUALITY_REPORT_TEMP, |
|---|
| 40 | ST_QUALITY_REPORT_YES |
|---|
| 41 | }; |
|---|
| 42 | |
|---|
| 43 | AP_tree *st_ml_convert_species_name_to_node(ST_ML * st_ml, |
|---|
| 44 | const char *species_name); |
|---|
| 45 | |
|---|
| 46 | ST_ML_Color *st_ml_get_color_string(ST_ML * st_ml, char *species_name, |
|---|
| 47 | AP_tree * node, int start_ali_pos, int end_ali_pos); |
|---|
| 48 | int st_ml_update_ml_likelihood(ST_ML * st_ml, char *result[4], |
|---|
| 49 | int *latest_update, char *species_name, AP_tree * node); |
|---|
| 50 | |
|---|
| 51 | AW_window *st_create_quality_check_window(AW_root * aw_root, GBDATA * gb_main); |
|---|
| 52 | |
|---|
| 53 | GB_ERROR st_ml_check_sequence_quality(GBDATA * gb_main, const char *tree_name, |
|---|
| 54 | const char *alignment_name, AWT_csp * awt_csp, int bucket_size, |
|---|
| 55 | int marked_only, st_report_enum report, const char *filter_string, |
|---|
| 56 | const char *dest_field); |
|---|
| 57 | |
|---|
| 58 | |
|---|
| 59 | #else |
|---|
| 60 | #error st_window.hxx included twice |
|---|
| 61 | #endif // ST_WINDOW_HXX |
|---|