1 #ifndef _theplu_yat_utility_smith_waterman
2 #define _theplu_yat_utility_smith_waterman
28 #include <boost/concept_check.hpp>
66 double horizon_gap,
double open_horizon_gap);
110 template<
typename RandomAccessIterator1,
typename RandomAccessIterator2>
111 double operator()(RandomAccessIterator1 reference_begin,
112 RandomAccessIterator1 reference_end,
113 RandomAccessIterator2 query_begin,
114 RandomAccessIterator2 query_end,
126 template<
typename RandomAccessIterator1,
typename RandomAccessIterator2>
128 RandomAccessIterator1 reference_end,
129 RandomAccessIterator2 query_begin,
130 RandomAccessIterator2 query_end,
133 using boost_concepts::ReadableIterator;
134 using boost_concepts::RandomAccessTraversal;
135 BOOST_CONCEPT_ASSERT((ReadableIterator<RandomAccessIterator1>));
136 BOOST_CONCEPT_ASSERT((RandomAccessTraversal<RandomAccessIterator1>));
137 BOOST_CONCEPT_ASSERT((ReadableIterator<RandomAccessIterator2>));
138 BOOST_CONCEPT_ASSERT((RandomAccessTraversal<RandomAccessIterator2>));
139 Matrix dot(reference_end-reference_begin, query_end-query_begin, -mismatch);
140 for (
size_t i=0; i<dot.
rows(); ++i)
141 for (
size_t j=0; j<dot.
columns(); ++j)
142 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:56
Definition: SmithWaterman.h:39
Interface to GSL matrix.
Definition: Matrix.h:63
Compact Idiosyncratic Gapped Alignment Report.
Definition: Aligner.h:179
const Matrix & score(void) const
const Aligner::Cigar & cigar(void) const
size_t columns(void) const