28 #include "gapped_alignment_vector.h" 29 #include "vdj_alignment.h" 34 #define DEFAULT_LOCAL_ALIGNMENT_RESERVE 160 42 typedef double alignment_score_t;
53 typedef std::vector<bool> events_storage_t;
56 AlignmentBase(seq_len_t p_start, seq_len_t t_start, events_storage_t &events)
57 : _pattern_start(p_start),
65 seq_len_t pattern_start()
const {
return _pattern_start; }
68 seq_len_t text_start()
const {
return _text_start; }
71 seq_len_t size()
const {
return _len; }
76 seq_len_t _pattern_start, _text_start, _len;
77 events_storage_t _events;
83 AlignmentBase(seq_len_t p_start, seq_len_t t_start, seq_len_t len)
84 : _pattern_start(p_start),
101 NoGapAlignment(seq_len_t p_start, seq_len_t t_start, events_storage_t &events)
107 NoGapAlignment(seq_len_t p_start, seq_len_t t_start, seq_len_t len)
113 bool isMismatch(seq_len_t i)
const {
return _events[i]; }
129 GappedAlignment(seq_len_t p_start, seq_len_t t_start, events_storage_t &events)
136 bool isMatch(seq_len_t i)
const {
return !(_events[i*2] && _events[i*2 + 1]); }
138 bool isMismatch(seq_len_t i)
const {
return !_events[i*2] && _events[i*2 + 1]; }
140 bool isIns(seq_len_t i)
const {
return _events[i*2] && !_events[i*2 + 1]; }
142 bool isDel(seq_len_t i)
const {
return _events[i*2] && _events[i*2 + 1]; }
Definition: alignment.h:126
Definition: alignment.h:48
Definition: alignment.h:96