#include "mussa_exceptions.hpp"
#include "alg/flp.hpp"
+#include "alg/sequence.hpp"
#include <cassert>
#include <sstream>
using namespace std;
void
-FLPs::seqcomp(string sseq1, string sseq2, bool is_RC)
+FLPs::seqcomp(const Sequence& sseq1, const Sequence& sseq2, bool is_RC)
{
int start_i, seq1_i, seq2_i, win_i; // loop variables
int matches; // number of matches in to a window
int i2_offset;
- char * seq1, * seq2;
+ Sequence::const_iterator seq1 = sseq1.begin();
+ Sequence::const_iterator seq2 = sseq2.begin();
+
int seq1_win_num = sseq1.size() - window_size + 1;
int seq2_win_num = sseq2.size() - window_size + 1;
alloc_matches(sseq1.size());
throw mussa_error(msg.str());
}
- seq1 = (char *) sseq1.c_str();
- seq2 = (char *) sseq2.c_str();
-
if (is_RC)
i2_offset = window_size - sseq2.size();
else