GLnexus
Scalable datastore for population genome sequencing, with on-demand joint genotyping
|
Genomic range (chromosome id, begin coordinate, end coordinate) More...
#include <types.h>
Public Member Functions | |
range (int rid_, int beg_, int end_) noexcept | |
range (const bcf1_t *bcf) noexcept | |
range (const std::shared_ptr< const bcf1_t > &bcf) noexcept | |
size_t | size () const noexcept |
bool | operator== (const range &r) const noexcept |
bool | operator!= (const range &r) const noexcept |
bool | operator< (const range &r) const noexcept |
bool | operator<= (const range &r) const noexcept |
bool | overlaps (const range &r) const noexcept |
bool | within (const range &r) const noexcept |
bool | contains (const range &r) const noexcept |
std::unique_ptr< range > | intersect (const range &r) const |
std::string | str (const std::vector< std::pair< std::string, size_t > > &contigs) const |
std::string | str () const |
Public Attributes | |
int | rid =-1 |
int | beg =-1 |
int | end =-1 |
Genomic range (chromosome id, begin coordinate, end coordinate)
|
inlinenoexcept |
Get the genomic range covered by a bcf1_t record. The end position is determined by the END INFO field if present (for structural variants and gVCF reference coverage records), or from the length of the reference allele otherwise.