Skip to content

Commit

Permalink
Update test/api/display_layout/compute_ibf_size_test.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
smehringer authored Oct 26, 2023
1 parent 35799b6 commit 572642f
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions test/api/display_layout/compute_ibf_size_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,20 @@ TEST(compute_ibf_size_test, merged_bin_is_max_bin)
.remaining_records = {} // not needed for compute_ibf_size
};

double fpr = 0.0001;
size_t hash = 2;
size_t tmax = 64;

seqan::hibf::build::build_data data{
.config = {.number_of_user_bins = 123,
.number_of_hash_functions = 2,
.maximum_fpr = 0.0001,
.number_of_hash_functions = hash,
.maximum_fpr = fpr,
.relaxed_fpr = 0.2,
.threads = 1,
.tmax = 64}
// .fpr_correction is not necessary as max bin is a merged bin
};
.tmax = tmax},
.fpr_correction = seqan::hibf::layout::compute_fpr_correction({.fpr = fpr, .hash_count = hash, .t_max = tmax})};



auto ibf = seqan::hibf::build::construct_ibf(parent_kmers, kmers, number_of_bins, ibf_node, data, true);

Expand Down

0 comments on commit 572642f

Please sign in to comment.