Commit 5e2544b7 authored by Carsten Kemena's avatar Carsten Kemena

fixed clearPrefix and clear suffix

parent 9cac7321
......@@ -190,8 +190,8 @@ getNextPrefixSuffix(const S &seq, size_t i, PrefixType &prefix, CodedSuffix &suf
auto itSuffix = ALPHABET_2_BIT.find(seq[i+WORD_SIZE-1]);
if (itSuffix == ALPHABET_2_BIT.end())
return false;
static const PrefixType clearPrefix = ((uint64_t)-1 << PREFIX_SHIFT);
static const SuffixType clearSuffix = ((uint64_t)-1 << SUFFIX_SHIFT);
static const PrefixType clearPrefix = ~((uint64_t)-1 << PREFIX_SHIFT);
static const SuffixType clearSuffix = ~((uint64_t)-1 << SUFFIX_SHIFT);
// update prefix
auto itPrefix = ALPHABET_2_BIT.find(seq[i+PREFIX_SIZE-1]);
prefix <<= ALPHABET_BIT_NUM;
......
......@@ -208,10 +208,7 @@ assignWords(const fs::path &inFile, BSDL::SequenceSet<BSDL::Sequence<> > &seqSet
if (seq.size() > WORD_SIZE)
{
auto &assignment = assignments[i];
size_t length = seq.size() - WORD_SIZE;
/*if (reverse && (length > (WORD_SIZE*2)))
length = WORD_SIZE * 2;*/
bool last = false;
bool position;
for (size_t j=0; j<length; ++j)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment