Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit fbb90ae0240d1ce8df6ae85cabdafb45f9c31295
Author: Benjamin Buchfink <buchfink@gmail.com>
Date:   Thu Jan 23 16:45:01 2025 +0100

    Fixed band computation

commit 425995262ad5bc3eec9e9e433c050c01566eda8b
Author: Benjamin Buchfink <buchfink@gmail.com>
Date:   Thu Jan 23 16:01:42 2025 +0100

    Updated version

commit 8ba6f97e5fc13a699766144f6a1f0a4f9416141a
Merge: 181c38bd 3c79fec
Author: Benjamin Buchfink <buchfink@gmail.com>
Date:   Thu Jan 23 15:20:42 2025 +0100

    Merge branch 'master' into dev
  • Loading branch information
bbuchfink committed Jan 23, 2025
1 parent 3c79fec commit 389d0a2
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
strategy:
matrix:
# runner image list, https://github.com/actions/runner-images
os: [ ubuntu-24.04, macos-14-large, macos-14 ]
os: [ ubuntu-24.04, macos-14 ]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions src/align/gapped_score.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,9 @@ int band(int len, const Mode mode) {
}

static int hsp_band(int base_band, int qlen, int tlen, const ApproxHsp& hsp) {
if (!config.classic_band) {
/*if (!config.classic_band) {
return std::max(Loc((hsp.d_max - hsp.d_min) * 0.15), 32);
}
}*/
if (config.narrow_band_cov == 0.0)
return base_band;
if ((double)hsp.query_range.length() / qlen >= config.narrow_band_cov
Expand Down
2 changes: 1 addition & 1 deletion src/basic/basic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "stats/standard_matrix.h"
#include "util/log_stream.h"

const char* Const::version_string = "2.1.10";
const char* Const::version_string = "2.1.11";
using std::string;
using std::vector;
using std::count;
Expand Down
2 changes: 1 addition & 1 deletion src/basic/const.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ struct Const
{

enum {
build_version = 164,
build_version = 165,
max_seed_weight = 32,
max_shapes = 64
};
Expand Down
2 changes: 1 addition & 1 deletion src/run/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ struct Round {
linearize(lin)
{}
bool operator<(Round r) const {
return linearize && !r.linearize || (linearize == r.linearize && sensitivity < r.sensitivity);
return (linearize && !r.linearize) || (linearize == r.linearize && sensitivity < r.sensitivity);
}
bool operator==(Round r) const {
return sensitivity == r.sensitivity && linearize == r.linearize;
Expand Down
2 changes: 1 addition & 1 deletion src/test/test_cases.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ const vector<uint64_t> ref_hashes = {
0xe787dcb23cc5b120,
0x5aa4baf48a888be9,
0xa2519e06e3bfa2fd,
0x2b827bdfa26faa1,
0x2c355eaec8aea91,
0x67b3a14cdd541dc3,
};

Expand Down
1 change: 1 addition & 0 deletions src/util/string/string.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#include <iomanip>
#include <stdexcept>
#include <limits.h>
#include <stdint.h>
#include <limits>
#include "string.h"

Expand Down

0 comments on commit 389d0a2

Please # to comment.