Skip to content

Commit

Permalink
simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ctb committed Oct 12, 2024
1 parent ddcb049 commit 6eb86a3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion src/core/src/index/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,6 @@ where
}
}

// note all mh should be selected/downsampled prior to being passed in here.
#[allow(clippy::too_many_arguments)]
pub fn calculate_gather_stats(
orig_query: &KmerMinHash,
Expand Down
4 changes: 1 addition & 3 deletions src/core/src/index/revindex/disk_revindex.rs
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,6 @@ impl RevIndexOps for RevIndex {
let mut query = KmerMinHashBTree::from(orig_query.clone());
let mut sum_weighted_found = 0;
let _selection = selection.unwrap_or_else(|| self.collection.selection());
let orig_query_ds = orig_query.clone();
let total_weighted_hashes = orig_query.sum_abunds();

// or set this with user --track-abundance?
Expand All @@ -393,7 +392,6 @@ impl RevIndexOps for RevIndex {
break;
}

// this should downsample mh for us
let match_sig = self.collection.sig_for_dataset(dataset_id)?;

// get downsampled minhashes for comparison.
Expand All @@ -419,7 +417,7 @@ impl RevIndexOps for RevIndex {

// Calculate stats
let gather_result = calculate_gather_stats(
&orig_query_ds,
&orig_query,
query_mh,
match_sig,
match_size,
Expand Down

0 comments on commit 6eb86a3

Please sign in to comment.