#include <genesis/population/sample_counts.hpp>
Ordered array of sample counts for the four nucleotides.
Some functions need the bases sorted by their count. This structure is used to keep that data, with the highest count base first.
Definition at line 110 of file sample_counts.hpp.
Public Member Functions | |
SortedSampleCounts ()=default | |
SortedSampleCounts (char b0, size_t c0, char b1, size_t c1, char b2, size_t c2, char b3, size_t c3) | |
BaseCount & | operator[] (size_t index) |
BaseCount const & | operator[] (size_t index) const |
Public Attributes | |
std::array< BaseCount, 4 > | data |
Classes | |
struct | BaseCount |
Combination of a nucleotide base and its count. More... | |
|
default |
|
inline |
Definition at line 133 of file sample_counts.hpp.
|
inline |
Definition at line 141 of file sample_counts.hpp.
|
inline |
Definition at line 146 of file sample_counts.hpp.
std::array<BaseCount, 4> data |
Definition at line 151 of file sample_counts.hpp.