The Tabix index file format

Field Description Type Value
magic Magic string char[4] TBI\backslash1
n_ref # sequences int32_t
format Format (0: generic; 1: SAM; 2: VCF) int32_t
col_seq Column for the sequence name int32_t
col_beg Column for the start of a region int32_t
col_end Column for the end of a region int32_t
meta Leading character for comment lines int32_t
skip # lines to skip at the beginning int32_t
l_nm Length of concatenated sequence names int32_t
names Concatenated names, each zero terminated char[l_nm]
List of indices (n=n_ref)
n_bin # distinct bins (for the binning index) int32_t
List of distinct bins (n=n_bin)
bin Distinct bin number uint32_t
n_chunk # chunks int32_t
List of chunks (n=n_chunk)
cnk_beg Virtual file offset of the start of the chunk uint64_t
cnk_end Virtual file offset of the end of the chunk uint64_t
n_intv # 16kb intervals (for the linear index) int32_t
List of distinct intervals (n=n_intv)
ioff File offset of the first record in the interval uint64_t
n_no_coor (optional) # unmapped reads without coordinates set uint64_t

Notes: