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

Public Member Functions

bool valid ()
 
Status next ()
 
Status overlaps (const range &rng, bool &ans)
 
Status read (std::shared_ptr< bcf1_t > &ans)
 

Static Public Member Functions

static Status Open (const char *buf, size_t bufsz, std::unique_ptr< BCFScanner > &ans)
 
static Status read_header (const char *buf, int len, int &consumed, std::shared_ptr< bcf_hdr_t > &ans)
 Reads a BCF header from a memory buffer.
 

Member Function Documentation

Status GLnexus::BCFScanner::Open ( const char *  buf,
size_t  bufsz,
std::unique_ptr< BCFScanner > &  ans 
)
static

Reads BCF records from a memory buffer (without the header). Allows peeking, and checking if a record overlaps a range, prior to fully opening the BCF record. The idea is to save the expensive unpack operation for records that the caller wishes to skip.


The documentation for this class was generated from the following files: