|
SeqAn3 3.4.1-rc.1
The Modern C++ library for sequence analysis.
|
A data structure that behaves like a std::vector and can be used to consolidate the results of multiple calls to seqan3::interleaved_bloom_filter::membership_agent_type::bulk_contains. More...
#include <seqan3/search/dream_index/interleaved_bloom_filter.hpp>
Inheritance diagram for seqan3::counting_vector< value_t >:Public Member Functions | |
| template<typename binning_bitvector_t > requires is_binning_bitvector<binning_bitvector_t> | |
| counting_vector & | operator+= (binning_bitvector_t const &binning_bitvector) |
| Bin-wise adds the bits of a seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector. | |
| counting_vector & | operator+= (counting_vector const &rhs) |
Bin-wise addition of two seqan3::counting_vectors. | |
| template<typename binning_bitvector_t > requires is_binning_bitvector<binning_bitvector_t> | |
| counting_vector & | operator-= (binning_bitvector_t const &binning_bitvector) |
| Bin-wise subtracts the bits of a seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector. | |
| counting_vector & | operator-= (counting_vector const &rhs) |
Bin-wise substraction of two seqan3::counting_vectors. | |
Constructors, destructor and assignment | |
| counting_vector ()=default | |
| Defaulted. | |
| counting_vector (counting_vector const &)=default | |
| Defaulted. | |
| counting_vector & | operator= (counting_vector const &)=default |
| Defaulted. | |
| counting_vector (counting_vector &&)=default | |
| Defaulted. | |
| counting_vector & | operator= (counting_vector &&)=default |
| Defaulted. | |
| ~counting_vector ()=default | |
| Defaulted. | |
Public Member Functions inherited from std::vector< value_t > | |
| T | assign (T... args) |
| T | at (T... args) |
| T | back (T... args) |
| T | begin (T... args) |
| T | capacity (T... args) |
| T | cbegin (T... args) |
| T | cend (T... args) |
| T | clear (T... args) |
| T | crbegin (T... args) |
| T | crend (T... args) |
| T | data (T... args) |
| T | emplace (T... args) |
| T | emplace_back (T... args) |
| T | empty (T... args) |
| T | end (T... args) |
| T | erase (T... args) |
| T | front (T... args) |
| T | get_allocator (T... args) |
| T | insert (T... args) |
| T | max_size (T... args) |
| T | operator= (T... args) |
| T | operator[] (T... args) |
| T | pop_back (T... args) |
| T | push_back (T... args) |
| T | rbegin (T... args) |
| T | rend (T... args) |
| T | reserve (T... args) |
| T | resize (T... args) |
| T | shrink_to_fit (T... args) |
| T | size (T... args) |
| T | swap (T... args) |
| T | vector (T... args) |
| T | ~vector (T... args) |
Private Types | |
| using | base_t = std::vector< value_t > |
| The base type. | |
Private Member Functions | |
| template<typename binning_bitvector_t , typename on_bin_fn_t > | |
| void | for_each_set_bin (binning_bitvector_t &&binning_bitvector, on_bin_fn_t &&on_bin_fn) |
| Enumerates all bins of a seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector. | |
Static Private Attributes | |
| template<typename binning_bitvector_t > | |
| static constexpr bool | is_binning_bitvector |
| Is binning_bitvector_t a seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector? | |
A data structure that behaves like a std::vector and can be used to consolidate the results of multiple calls to seqan3::interleaved_bloom_filter::membership_agent_type::bulk_contains.
| value_t | The type of the count. Must model std::integral. |
When using the seqan3::interleaved_bloom_filter::membership_agent_type::bulk_contains operation, a common use case is to add up, for example, the results for all k-mers in a query. This yields, for each bin, the number of k-mers of a query that are in the respective bin. Such information can be used to apply further filtering or abundance estimation based on the k-mer counts.
The seqan3::counting_vector offers an easy way to add up the individual seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector by offering an += operator.
The value_t template parameter should be chosen in a way that no overflow occurs if all calls to bulk_contains return a hit for a specific bin. For example, uint8_t will suffice when processing short Illumina reads, whereas long reads will require at least uint32_t.
|
inline |
Bin-wise adds the bits of a seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector.
| binning_bitvector_t | The type of the right-hand side. Must be seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector. |
| binning_bitvector | The seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector. |
binning_bitvector.
|
inline |
Bin-wise addition of two seqan3::counting_vectors.
| rhs | The other seqan3::counting_vector. |
rhs.
|
inline |
Bin-wise subtracts the bits of a seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector.
| binning_bitvector_t | The type of the right-hand side. Must be seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector. |
| binning_bitvector | The seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector. |
binning_bitvector.
|
inline |
Bin-wise substraction of two seqan3::counting_vectors.
| rhs | The other seqan3::counting_vector. |
rhs.
|
staticconstexprprivate |
Is binning_bitvector_t a seqan3::interleaved_bloom_filter::membership_agent_type::binning_bitvector?