Skip to content

Commit b3eba45

Browse files
committed
Re-activate pre-scoring = 1 if no reduction is used
1 parent 52fd0bb commit b3eba45

File tree

3 files changed

+8
-6
lines changed

3 files changed

+8
-6
lines changed

.gitmodules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
[submodule "seqan"]
22
path = include/seqan
3-
url = git://github.com/seqan/seqan.git
3+
url = ../../seqan/seqan.git

src/search_options.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -835,10 +835,9 @@ parseCommandLine(LambdaOptions & options, int argc, char const ** argv)
835835
// TODO always prescore 1
836836
getOptionValue(options.preScoring, parser, "pre-scoring");
837837

838-
//TODO reactivate
839-
// if ((!isSet(parser, "pre-scoring")) &&
840-
// (options.alphReduction == 0))
841-
// options.preScoring = 1;
838+
if ((!isSet(parser, "pre-scoring")) &&
839+
(options.reducedAlphabet == options.transAlphabet))
840+
options.preScoring = 1;
842841

843842
getOptionValue(options.preScoringThresh, parser, "pre-scoring-threshold");
844843
// if (options.preScoring == 0)

src/shared_misc.hpp

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@
2626
#include <locale>
2727
#include <type_traits>
2828
#include <forward_list>
29-
#include <sys/sysctl.h>
29+
30+
#if __has_include(<sys/sysctl.h>)
31+
#include <sys/sysctl.h>
32+
#endif
3033

3134
#include <seqan/basic.h>
3235
#include <seqan/sequence.h>

0 commit comments

Comments
 (0)