-
Notifications
You must be signed in to change notification settings - Fork 80
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] counting_agent for the interleaved bloom filter #2373
Conversation
015c8ed
to
f82bc55
Compare
Codecov Report
@@ Coverage Diff @@
## master #2373 +/- ##
=======================================
Coverage 98.21% 98.21%
=======================================
Files 265 265
Lines 10806 10820 +14
=======================================
+ Hits 10613 10627 +14
Misses 193 193
Continue to review full report at Codecov.
|
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.
We should cross reference the bulk_contains
and bulk_count
function in the IBF itself. Otherwise it is hard to know for the user what we provide without looking into the agents themselves.
|
||
/*!\brief Returns a seqan3::interleaved_bloom_filter::counting_agent_type to be used for counting. | ||
* \attention Calling seqan3::interleaved_bloom_filter::increase_bin_number_to invalidates all | ||
* seqan3::interleaved_bloom_filter::counting_agent_type constructed for this Interleaved Bloom Filter. |
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.
* seqan3::interleaved_bloom_filter::counting_agent_type constructed for this Interleaved Bloom Filter. | |
* `seqan3::interleaved_bloom_filter::counting_agent_type`s constructed for this Interleaved Bloom Filter. |
* each thread. | ||
*/ | ||
template <std::ranges::range value_range_t> | ||
[[nodiscard]] counting_vector<value_t> const & count_values(value_range_t && values) & noexcept |
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.
just a thing to think about:
Since the memberhip_agent
has the function bulk_contains
we might want to consider naming this function
bulk_count
.
f82bc55
to
b03ae10
Compare
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.
LGFM, as far as I understand what is happening here.
I have only one tiny question, but will already approve.
b03ae10
to
de48037
Compare
de48037
to
1184056
Compare
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.
Only found 2 minor things, that are actually not wrong. So I approve! 👍
1bcedd3
to
cd510f7
Compare
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.
ty, looks good :)
return result_buffer; | ||
} | ||
|
||
// `bulk_count` cannot be called on a temporary, since the object the returned reference points to |
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.
Interesting that we don't need any !\brief
here
auto const sequence_1 = "ACTGACTGACTGATC"_dna4; | ||
auto const sequence_2 = "GTGACTGACTGACTCG"_dna4; | ||
auto const sequence_3 = "AAAAAAACGATCGACA"_dna4; |
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.
auto const sequence_1 = "ACTGACTGACTGATC"_dna4; | |
auto const sequence_2 = "GTGACTGACTGACTCG"_dna4; | |
auto const sequence_3 = "AAAAAAACGATCGACA"_dna4; | |
auto const sequence1 = "ACTGACTGACTGATC"_dna4; | |
auto const sequence2 = "GTGACTGACTGACTCG"_dna4; | |
auto const sequence3 = "AAAAAAACGATCGACA"_dna4; |
No hard-feelings for this change, but I think we normally don't underscore before numbers.
cd510f7
to
a1b1e84
Compare
See #1911 (comment)