diff --git a/src/cli.hpp b/src/cli.hpp index 46a5b4b..cfffe78 100644 --- a/src/cli.hpp +++ b/src/cli.hpp @@ -5,7 +5,7 @@ #ifndef ULTRA_CLI_HPP #define ULTRA_CLI_HPP -#define ULTRA_VERSION_STRING "1.2.1" +#define ULTRA_VERSION_STRING "1.2.2" #define DEBUG_STRING "" #ifdef DEBUG_PRAGMA #undef DEBUG_STRING diff --git a/src/ultra.cpp b/src/ultra.cpp index 10474d8..4e1b4da 100644 --- a/src/ultra.cpp +++ b/src/ultra.cpp @@ -326,7 +326,8 @@ void Ultra::OutputRepeats(bool flush) { } r->SortConsensi(); - if (r->repeatLength / r->repeatPeriod >= settings->min_units) + if (r->regionScore >= scoreThreshold && + r->repeatLength / r->repeatPeriod >= settings->min_units) OutputRepeat(r); delete r;