Skip to content

Commit

Permalink
Merge branch 'main' into fix-manifest-protksize
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes authored Feb 19, 2024
2 parents 58ab63e + 8d138b3 commit 9de982a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/python/tests/test_sketch.py
Original file line number Diff line number Diff line change
Expand Up @@ -441,14 +441,14 @@ def test_protein_zip_manifest(runtmp, capfd):
md5_list = [ row['md5'] for row in manifest.rows ]
assert 'eb4467d11e0ecd2dbde4193bfc255310' in md5_list
ksize_list = [ row['ksize'] for row in manifest.rows ]
assert 10 in ksize_list
assert 10 in ksize_list # manifest ksizes are human-readable (k, not k*3)
scaled_list = [ row['scaled'] for row in manifest.rows ]
assert 1 in scaled_list
moltype_list = [ row['moltype'] for row in manifest.rows ]
assert "protein" in moltype_list

for sig in siglist:
assert sig in manifest
assert sig.minhash.ksize == 10
assert sig.minhash.ksize == 10 # minhash stores k*3, but does the conversion back for us
assert sig.minhash.moltype == 'protein'
assert sig.minhash.scaled == 1

0 comments on commit 9de982a

Please sign in to comment.