GLnexus
Scalable datastore for population genome sequencing, with on-demand joint genotyping
|
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. | |
|
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.