Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MRG] Fix sourmash prefetch to work when db scaled is larger than query scaled #1870

Merged
merged 12 commits into from
Mar 7, 2022
Prev Previous commit
Next Next commit
fix prefetch
  • Loading branch information
ctb committed Mar 5, 2022
commit 1e126a3189c583b97e13a1ed03c91448907bdc1d
1 change: 1 addition & 0 deletions src/sourmash/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1176,6 +1176,7 @@ def prefetch(args):
sys.exit(-1)

query.minhash = query_mh
ksize = query_mh.ksize

# set up CSV output, write headers, etc.
csvout_fp = None
Expand Down
2 changes: 1 addition & 1 deletion tests/test_prefetch.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def test_prefetch_basic(runtmp, linear_gather):


def test_prefetch_select_query_ksize(runtmp, linear_gather):
# test prefetch where query and subject db both have multiple ksizes
c = runtmp

# test a basic prefetch
ss = utils.get_test_data('GCF_000005845.2_ASM584v2_genomic.fna.gz.sig')

c.run_sourmash('prefetch', ss, ss, linear_gather)
Expand Down