From 572642f15cbf60ec6267332b2e286d0b38e777f9 Mon Sep 17 00:00:00 2001 From: Svenja Mehringer Date: Thu, 26 Oct 2023 13:32:43 +0200 Subject: [PATCH] Update test/api/display_layout/compute_ibf_size_test.cpp --- test/api/display_layout/compute_ibf_size_test.cpp | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/test/api/display_layout/compute_ibf_size_test.cpp b/test/api/display_layout/compute_ibf_size_test.cpp index 242f0b43..e05c6919 100644 --- a/test/api/display_layout/compute_ibf_size_test.cpp +++ b/test/api/display_layout/compute_ibf_size_test.cpp @@ -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);