Skip to content

Commit

Permalink
use query_n_hashes; remove num
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes committed Apr 16, 2022
1 parent 479d315 commit 644a4dd
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/sourmash/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ def search_databases_with_abund_query(query, databases, **kwargs):
'f_unique_weighted','average_abund', 'median_abund', 'std_abund', 'filename',
'name', 'md5', 'match', 'f_match_orig', 'unique_intersect_bp', 'gather_result_rank',
'remaining_bp', 'query_filename', 'query_name', 'query_md5', 'query_bp', 'ksize',
'moltype', 'num', 'scaled', 'query_nhashes', 'query_abundance'])
'moltype', 'scaled', 'query_n_hashes', 'query_abundance'])


def _find_best(counters, query, threshold_bp):
Expand Down Expand Up @@ -463,9 +463,8 @@ def __next__(self):
query_md5=self.orig_query_md5,
ksize = self.orig_query_mh.ksize,
moltype = self.orig_query_mh.moltype,
num = self.orig_query_mh.num,
scaled = scaled,
query_nhashes=len(self.orig_query_mh),
query_n_hashes=len(self.orig_query_mh),
query_abundance=self.orig_query_mh.track_abundance,
)
self.result_n += 1
Expand All @@ -483,8 +482,8 @@ def __next__(self):
['intersect_bp', 'jaccard', 'max_containment', 'f_query_match',
'f_match_query', 'match', 'match_filename', 'match_name',
'match_md5', 'match_bp', 'query', 'query_filename', 'query_name',
'query_md5', 'query_bp', 'ksize', 'moltype', 'num', 'scaled',
'query_nhashes', 'query_abundance'])
'query_md5', 'query_bp', 'ksize', 'moltype', 'scaled',
'query_n_hashes', 'query_abundance'])


def calculate_prefetch_info(query, match, scaled, threshold_bp):
Expand Down Expand Up @@ -526,9 +525,8 @@ def calculate_prefetch_info(query, match, scaled, threshold_bp):
query_md5=query.md5sum()[:8],
ksize = query_mh.ksize,
moltype = query_mh.moltype,
num = query_mh.num,
scaled = scaled,
query_nhashes=len(query_mh),
query_n_hashes=len(query_mh),
query_abundance=query_mh.track_abundance,
)

Expand Down

0 comments on commit 644a4dd

Please sign in to comment.