Last change
on this file was
9533,
checked in by westram, 12 years ago
|
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
File size:
1.7 KB
|
Line | |
---|
1 | // =============================================================== // |
---|
2 | // // |
---|
3 | // File : AP_seq_dna.hxx // |
---|
4 | // Purpose : // |
---|
5 | // // |
---|
6 | // Institute of Microbiology (Technical University Munich) // |
---|
7 | // http://www.arb-home.de/ // |
---|
8 | // // |
---|
9 | // =============================================================== // |
---|
10 | |
---|
11 | #ifndef AP_SEQ_DNA_HXX |
---|
12 | #define AP_SEQ_DNA_HXX |
---|
13 | |
---|
14 | #ifndef AP_SEQUENCE_HXX |
---|
15 | #include <AP_sequence.hxx> |
---|
16 | #endif |
---|
17 | |
---|
18 | class AP_sequence_parsimony : public AP_sequence { // derived from a Noncopyable |
---|
19 | void build_table(); |
---|
20 | AP_FLOAT count_weighted_bases() const OVERRIDE; |
---|
21 | |
---|
22 | void set(const char *sequence) OVERRIDE; |
---|
23 | void unset() OVERRIDE; |
---|
24 | |
---|
25 | char *seq_pars; // AP_BASES |
---|
26 | |
---|
27 | public: |
---|
28 | static char *table; |
---|
29 | |
---|
30 | AP_sequence_parsimony(const AliView *aliview); |
---|
31 | ~AP_sequence_parsimony() OVERRIDE; |
---|
32 | |
---|
33 | const char *get_sequence() const { lazy_load_sequence(); ap_assert(seq_pars); return seq_pars; } |
---|
34 | const unsigned char *get_usequence() const { return (const unsigned char*)get_sequence(); } |
---|
35 | |
---|
36 | AP_sequence *dup() const OVERRIDE; // used to get the real new element |
---|
37 | AP_FLOAT combine(const AP_sequence *lefts, const AP_sequence *rights, char *mutation_per_site) OVERRIDE; |
---|
38 | void partial_match(const AP_sequence* part, long *overlap, long *penalty) const OVERRIDE; |
---|
39 | }; |
---|
40 | |
---|
41 | |
---|
42 | #else |
---|
43 | #error AP_seq_dna.hxx included twice |
---|
44 | #endif // AP_SEQ_DNA_HXX |
---|
Note: See
TracBrowser
for help on using the repository browser.