|
A library for working with phylogenetic and population genetic data.
v0.27.0
|
|
Go to the documentation of this file. 1 #ifndef GENESIS_POPULATION_BASE_COUNTS_H_
2 #define GENESIS_POPULATION_BASE_COUNTS_H_
39 namespace population {
134 char b0,
size_t c0,
char b1,
size_t c1,
char b2,
size_t c2,
char b3,
size_t c3
157 #endif // include guard
BaseCount & operator[](size_t index)
size_t d_count
Count of all deleted (*) nucleotides that are present in the sample.
Combination of a nucleotide base and its count.
Ordered array of base counts for the four nucleotides.
size_t t_count
Count of all T nucleotides that are present in the sample.
BaseCount(char b, size_t c)
size_t g_count
Count of all G nucleotides that are present in the sample.
void clear()
Reset all counts to 0.
size_t a_count
Count of all A nucleotides that are present in the sample.
SortedBaseCounts()=default
SortedBaseCounts(char b0, size_t c0, char b1, size_t c1, char b2, size_t c2, char b3, size_t c3)
size_t n_count
Count of all N (undetermined/any) nucleotides that are present in the sample.
std::array< BaseCount, 4 > data
size_t c_count
Count of all C nucleotides that are present in the sample.
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
One set of nucleotide base counts, for example for a given sample that represents a pool of sequenced...
BaseCount const & operator[](size_t index) const