GLnexus
Scalable datastore for population genome sequencing, with on-demand joint genotyping
 All Classes Functions Variables
Public Member Functions | Public Attributes | List of all members
GLnexus::range Struct Reference

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< rangeintersect (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
 

Detailed Description

Genomic range (chromosome id, begin coordinate, end coordinate)

Constructor & Destructor Documentation

GLnexus::range::range ( const bcf1_t *  bcf)
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.


The documentation for this struct was generated from the following file: