-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Track occupancy in IBF #257
base: main
Are you sure you want to change the base?
Conversation
Documentation preview available at https://docs.seqan.de/preview/seqan/hibf/257 |
8a9524c
to
758f80e
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #257 +/- ##
=======================================
Coverage 99.59% 99.59%
=======================================
Files 51 52 +1
Lines 1973 1996 +23
Branches 5 5
=======================================
+ Hits 1965 1988 +23
Misses 8 8 ☔ View full report in Codecov by Sentry. |
758f80e
to
bb09d78
Compare
bb09d78
to
55017fc
Compare
@@ -51,7 +51,9 @@ seqan::hibf::interleaved_bloom_filter construct_ibf(robin_hood::unordered_flat_s | |||
local_index_allocation_timer.start(); | |||
seqan::hibf::interleaved_bloom_filter ibf{bin_count, | |||
bin_size, | |||
seqan::hibf::hash_function_count{data.config.number_of_hash_functions}}; | |||
seqan::hibf::hash_function_count{data.config.number_of_hash_functions}, | |||
data.config.empty_bin_fraction > 0.0}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
data.config.empty_bin_fraction > 0.0}; | |
data.config.empty_bin_fraction > 0.0}; // track occupancy if handling empty bins |
ibf.emplace(value, bin_idx); | ||
} | ||
|
||
assert(chunk_view.size() <= number_of_bins); | ||
// Edge case: If there are not enough k-mers to emplace at least one value into each bin, set the occupancy of |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// Edge case: If there are not enough k-mers to emplace at least one value into each bin, set the occupancy of | |
// Small number edge case: If there are not enough k-mers to emplace at least one value into each bin, set the occupancy of |
55017fc
to
6f8ad12
Compare
6f8ad12
to
e9e25fe
Compare
e9e25fe
to
5b8980e
Compare
Blocked by