vg
tools for working with variation graphs
Public Member Functions | Public Attributes | List of all members
vg::SortedVCFWriter::BufferedRecordKey Struct Reference

#include <sorted_vcf_writer.hpp>

Public Member Functions

bool operator< (const BufferedRecordKey &other) const
 

Public Attributes

string contig
 
size_t position = 0
 
string id
 The ID column. More...
 
size_t block = 0
 

Detailed Description

The sort key of a buffered VCF record.

Several records can share a contig and POS, such as a nested site and its parent. The sort is not stable, so the output order is the same on every run only if the records at one POS differ in ID or block number.

Member Function Documentation

◆ operator<()

bool vg::SortedVCFWriter::BufferedRecordKey::operator< ( const BufferedRecordKey &  other) const

Return true if this key sorts before other, comparing contig, then POS, then ID, then block number.

Member Data Documentation

◆ block

size_t vg::SortedVCFWriter::BufferedRecordKey::block = 0

The number of the difference block of its snarl that the record holds, or 0 for a record of a whole snarl. Two blocks of one snarl share an ID and can share a POS.

◆ contig

string vg::SortedVCFWriter::BufferedRecordKey::contig

◆ id

string vg::SortedVCFWriter::BufferedRecordKey::id

The ID column.

◆ position

size_t vg::SortedVCFWriter::BufferedRecordKey::position = 0

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