Skip to content
Snippets Groups Projects
Commit 3e44bcb6 authored by Antaaa28's avatar Antaaa28
Browse files

get hash

parent dd59a477
Branches
No related tags found
No related merge requests found
......@@ -98,7 +98,12 @@ def get_hash_mphf(mphf, kmer):
>>> 0 <= hash_mphf < n
True
"""
pass # TODO modifier
h = abs(hash(kmer))
for pair in mphf:
if pair[0] == h:
return pair[1]
return None
def create_hash_table(set_kmer, n):
"""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment