1 | // =========================================================== // |
---|
2 | // // |
---|
3 | // File : awt_seq_simple_pro.hxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // Institute of Microbiology (Technical University Munich) // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // =========================================================== // |
---|
10 | |
---|
11 | #ifndef AWT_SEQ_SIMPLE_PRO_HXX |
---|
12 | #define AWT_SEQ_SIMPLE_PRO_HXX |
---|
13 | |
---|
14 | |
---|
15 | typedef enum { |
---|
16 | ala, arg, asn, asp, cys, gln, glu, gly, his, ileu, leu, lys, met, phe, pro, |
---|
17 | ser, thr, trp, tyr, val, stop, del, asx, glx, unk, quest |
---|
18 | } aas; |
---|
19 | |
---|
20 | typedef unsigned char ap_pro; // aas but only one character used |
---|
21 | |
---|
22 | class AP_sequence_simple_protein : public AP_sequence { |
---|
23 | |
---|
24 | public: |
---|
25 | ap_pro *sequence; |
---|
26 | //static char *table; |
---|
27 | AP_sequence_simple_protein(AP_tree_root *rooti); |
---|
28 | ~AP_sequence_simple_protein(void); |
---|
29 | AP_sequence *dup(void); // used to get the real new element |
---|
30 | void set(const char *sequence); |
---|
31 | double combine( const AP_sequence *lefts, const AP_sequence *rights); |
---|
32 | void partial_match(const AP_sequence* part, long *overlap, long *penalty) const; |
---|
33 | }; |
---|
34 | |
---|
35 | #else |
---|
36 | #error awt_seq_simple_pro.hxx included twice |
---|
37 | #endif // AWT_SEQ_SIMPLE_PRO_HXX |
---|