[][src]Module bam::index

A module that works with BAI index.

Structs

Chunk

Chunk [start-end), where start and end are virtual offsets.

Index

BAI Index.

VirtualOffset

Virtual offset. Represents block_offset << 16 | contents_offset, where block_offset is u48 and represents the offset in the bgzip file to the beginning of th block (also known as coffset or compressed_offset).

Constants

MAX_BIN

Maximal possible bin value

Functions

bin_to_region

Return a maximal region for a given bin

region_to_bin

Get BAI bin for the record with alignment [beg-end).

region_to_bins

Get all possible BAI bins for the region [beg-end).