goto exact_pattern_matching; // Invalid format
IndelQuery iq(this);
- //std::cerr << "Pattern: " << tmp+1 << ", k = " << k << std::endl;
+// std::cerr << "RLCSAWrapper::Contains(): Pattern: " << tmp+1 << ", k = " << k << std::endl;
return iq.align(tmp+1, k);
}
// Index from/to disk
RLCSAWrapper(FILE *file, char const *filename)
: rlcsa(new CSA::RLCSA(std::string(filename)))
- { /* NOP */ }
+ {
+ // Init the edit distance look-up tables
+ MyersEditDistanceIncremental::initMyersFourRussians();
+ }
void Save(FILE *file, char const *filename) const
{
// Saving type info:
if (std::fwrite(&type, 1, 1, file) != 1)
throw std::runtime_error("RLCSAWrapper::Save(): file write error (type flag).");
+ fflush(file);
this->rlcsa->writeTo(std::string(filename));
}