#include <genesis/population/genome_locus.hpp>
A single locus, that is, a position (or coordinate) on a chromosome.
For our purposes here, we define a locus to be one position (1-based) on one chromosome exactly.
When working with multiple loci, we here often expect their chromosome names to be sorted in lexicographical order. Hence, for example, when comparing two loci on different chromosomes, we also take the ordering of their chromosome names into account.
Definition at line 56 of file genome_locus.hpp.
Public Member Functions | |
GenomeLocus (GenomeLocus &&)=default | |
GenomeLocus (GenomeLocus const &)=default | |
GenomeLocus (std::string const &chr="", size_t pos=0) | |
~GenomeLocus ()=default | |
bool | empty () const |
GenomeLocus & | operator= (GenomeLocus &&)=default |
GenomeLocus & | operator= (GenomeLocus const &)=default |
bool | valid () const |
Public Attributes | |
std::string | chromosome |
size_t | position = 0 |
|
inline |
Definition at line 61 of file genome_locus.hpp.
|
default |
|
default |
|
default |
|
inline |
Definition at line 74 of file genome_locus.hpp.
|
default |
|
default |
|
inline |
Definition at line 79 of file genome_locus.hpp.
std::string chromosome |
Definition at line 58 of file genome_locus.hpp.
size_t position = 0 |
Definition at line 59 of file genome_locus.hpp.