Skip to content

Pick the closest insertion among several insertion matches when --ins_distance > 0#81

Merged
J35P312 merged 1 commit intoJ35P312:masterfrom
alkc:alkc/fix-insertion-matching
Feb 16, 2026
Merged

Pick the closest insertion among several insertion matches when --ins_distance > 0#81
J35P312 merged 1 commit intoJ35P312:masterfrom
alkc:alkc/fix-insertion-matching

Conversation

@alkc
Copy link
Contributor

@alkc alkc commented Feb 16, 2026

fixes #77

In short, this PR fixes the behavior where when --ins_distance > 0 and when there are several insertions matching the query INS, then SVDB would pick the insertion with the greatest distance from the queried insertion.

Previously it would pick the insertion _furthest_ away from the query insertion
@J35P312
Copy link
Owner

J35P312 commented Feb 16, 2026

thanks! This looks good!

@J35P312 J35P312 merged commit 4ce3f49 into J35P312:master Feb 16, 2026
@J35P312
Copy link
Owner

J35P312 commented Feb 16, 2026

I have drafted a new release (2.8.4). thanks for contributing to svdb!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

--query matches variants furthest away from queried insertion in cases where ins_distance > 0

2 participants