Skip to content

Commit

Permalink
fix query_bp
Browse files Browse the repository at this point in the history
  • Loading branch information
bluegenes committed Jun 10, 2024
1 parent 7a6b830 commit 58b40dd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -956,6 +956,8 @@ pub fn consume_query_by_gather(
let location = query.filename();

let orig_query_mh = query.minhash().unwrap();
let query_bp = orig_query_mh.n_unique_kmers() as usize;

let mut query_mh = orig_query_mh.clone();
let mut orig_query_ds = orig_query_mh.clone().downsample_scaled(scaled)?;
// to do == use this to subtract hashes instead
Expand Down Expand Up @@ -1025,7 +1027,7 @@ pub fn consume_query_by_gather(
query_filename: query.filename(),
query_name: query.name().clone(),
query_md5: query.md5sum().clone(),
query_bp: query_mh.n_unique_kmers() as usize,
query_bp: query_bp,
ksize,
moltype: query_mh.hash_function().to_string(),
scaled: query_mh.scaled() as usize,
Expand Down

0 comments on commit 58b40dd

Please sign in to comment.