[][src]Module bam::index

BAI index, virtual offset and bgzip chunks.

Structs

Chunk

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

Index

BAI Index. Allows to get chunks in a bgzip file, that contain records from a specific genomic region.

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

Returns a maximal region for a given bin

region_to_bin

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

region_to_bins

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