Skip to content

Fix sample index mismatch between SKI and SKD in inverted precluster;… - #70

Merged
johnlees merged 1 commit into
mainfrom
inverted_index_bug_fix
May 8, 2026
Merged

johnlees merged 1 commit into
mainfrom
inverted_index_bug_fix

Conversation

@johannahelene

Copy link
Copy Markdown
Collaborator

… add --retain-unmatched option

Fixes a bug where precluster produced incorrect filtering when the inverted
index (SKI) and sketch database (SKD) had different sample orderings:
prefilter bins were looked up at the wrong offset, and SKI indices were
used directly as SKD indices when fetching sketches, completeness values,
and output names. Adds forward/reverse index maps to correctly translate
between SKI and SKD orderings.

Also adds --retain-unmatched flag to handle genomes with no prefilter
matches, either as singletons or via brute-force comparison. Includes
tests for both fixes.

… add --retain-unmatched option

  Fixes a bug where precluster produced incorrect filtering when the inverted
  index (SKI) and sketch database (SKD) had different sample orderings:
  prefilter bins were looked up at the wrong offset, and SKI indices were
  used directly as SKD indices when fetching sketches, completeness values,
  and output names. Adds forward/reverse index maps to correctly translate
  between SKI and SKD orderings.

  Also adds --retain-unmatched flag to handle genomes with no prefilter
  matches, either as singletons or via brute-force comparison. Includes
  tests for both fixes.
@johannahelene
johannahelene requested a review from johnlees May 8, 2026 14:51
@johnlees
johnlees merged commit 30df7b0 into main May 8, 2026
7 of 8 checks passed
@johnlees
johnlees deleted the inverted_index_bug_fix branch May 8, 2026 15:06
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.

2 participants