1 #ifndef _theplu_yat_utility_smith_waterman
2 #define _theplu_yat_utility_smith_waterman
64 double horizon_gap,
double open_horizon_gap);
100 template<
typename RandomAccessIterator1,
typename RandomAccessIterator2>
101 double operator()(RandomAccessIterator1 reference_begin,
102 RandomAccessIterator1 reference_end,
103 RandomAccessIterator2 query_begin,
104 RandomAccessIterator2 query_end,
116 template<
typename RandomAccessIterator1,
typename RandomAccessIterator2>
118 RandomAccessIterator1 reference_end,
119 RandomAccessIterator2 query_begin,
120 RandomAccessIterator2 query_end,
123 Matrix dot(reference_end-reference_begin, query_end-query_begin, -mismatch);
124 for (
size_t i=0; i<dot.
rows(); ++i)
125 for (
size_t j=0; j<dot.
columns(); ++j)
126 if (reference_begin[i] == query_begin[j])
double operator()(const Matrix &dot)
size_t position(void) const
SmithWaterman(double gap=0, double open_gap=0)
Constructor.
Aligning two sequences.
Definition: Aligner.h:54
Definition: SmithWaterman.h:37
Interface to GSL matrix.
Definition: Matrix.h:63
Compact Idiosyncratic Gapped Alignment Report.
Definition: Aligner.h:177
const Matrix & score(void) const
const Aligner::Cigar & cigar(void) const
size_t columns(void) const