|
Last change
on this file was
5968,
checked in by westram, 17 years ago
|
- new flag -w to aisc_mkpt (add include wrapper)
- uniform style for several include wrappers
- removed duplicated includes
- removed useless nt_concatenate.hxx
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
|
File size:
2.1 KB
|
| Line | |
|---|
| 1 | // =========================================================== // |
|---|
| 2 | // // |
|---|
| 3 | // File : awt_csp.hxx // |
|---|
| 4 | // Purpose : // |
|---|
| 5 | // // |
|---|
| 6 | // Institute of Microbiology (Technical University Munich) // |
|---|
| 7 | // http://www.arb-home.de/ // |
|---|
| 8 | // // |
|---|
| 9 | // =========================================================== // |
|---|
| 10 | |
|---|
| 11 | #ifndef AWT_CSP_HXX |
|---|
| 12 | #define AWT_CSP_HXX |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | /* |
|---|
| 16 | Create a window, that allows you to get weights from the sais |
|---|
| 17 | 1. create AWT_csp |
|---|
| 18 | 2. build button with callback create_csp_window |
|---|
| 19 | 3. call csp->go( second_filter) |
|---|
| 20 | 4. use csp->weights .... |
|---|
| 21 | */ |
|---|
| 22 | |
|---|
| 23 | class AW_root; |
|---|
| 24 | class AW_window; |
|---|
| 25 | |
|---|
| 26 | #define AWT_CSP_AWAR_CSP_NAME "/name=/name" |
|---|
| 27 | #define AWT_CSP_AWAR_CSP_ALIGNMENT "/name=/alignment" |
|---|
| 28 | #define AWT_CSP_AWAR_CSP_SMOOTH "/name=/smooth" |
|---|
| 29 | #define AWT_CSP_AWAR_CSP_ENABLE_HELIX "/name=/enable_helix" |
|---|
| 30 | |
|---|
| 31 | #define DIST_MIN_SEQ(seq_anz) (seq_anz / 10) |
|---|
| 32 | |
|---|
| 33 | class AWT_csp { |
|---|
| 34 | public: |
|---|
| 35 | GBDATA *gb_main; |
|---|
| 36 | AW_root *awr; |
|---|
| 37 | |
|---|
| 38 | char *awar_name; |
|---|
| 39 | char *awar_alignment; |
|---|
| 40 | char *alignment_name; |
|---|
| 41 | char *type_path; |
|---|
| 42 | char *awar_smooth; |
|---|
| 43 | char *awar_enable_helix; |
|---|
| 44 | void *sai_sel_box_id; |
|---|
| 45 | |
|---|
| 46 | /* real public */ |
|---|
| 47 | size_t seq_len; // real length == 0 -> not valid |
|---|
| 48 | GB_UINT4 *weights; // helix = 1, non helix == 2 |
|---|
| 49 | float *rates; |
|---|
| 50 | float *ttratio; |
|---|
| 51 | float *frequency[256]; |
|---|
| 52 | GB_UINT4 *mut_sum; |
|---|
| 53 | GB_UINT4 *freq_sum; |
|---|
| 54 | unsigned char *is_helix; // == 1 -> helix; == 0 -> loop region |
|---|
| 55 | char *desc; |
|---|
| 56 | |
|---|
| 57 | AWT_csp(GBDATA *gb_main, AW_root *awr, const char *awar_template); |
|---|
| 58 | ~AWT_csp(void); |
|---|
| 59 | void exit(); |
|---|
| 60 | GB_ERROR go(AP_filter *filter = 0); |
|---|
| 61 | void print(void); |
|---|
| 62 | }; |
|---|
| 63 | |
|---|
| 64 | AW_window *create_csp_window(AW_root *root, AWT_csp *csp); |
|---|
| 65 | void create_selection_list_on_csp(AW_window *aww, AWT_csp *csp); |
|---|
| 66 | |
|---|
| 67 | |
|---|
| 68 | #else |
|---|
| 69 | #error awt_csp.hxx included twice |
|---|
| 70 | #endif // AWT_CSP_HXX |
|---|
Note: See
TracBrowser
for help on using the repository browser.