Module bam::index[][src]

Expand description

BAI index, virtual offset and bgzip chunks.

Structs

Single bin that stores chunks within the BAM file.

Iterator over bins.

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

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

Stores linear index: for each tiling 16384bp window it stores the smallest file offset of an alignment that overlaps it.

Index for a single reference sequence. Contains bins and a linear index.

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 the block (also known as coffset or compressed_offset).

Constants

Maximal possible bin value.

Functions

Returns a maximal region for a given bin.

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

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