Documentation ¶
Overview ¶
Package internal provides shared code for BAI and tabix index implementations.
Index ¶
Constants ¶
View Source
const ( // TileWidth is the length of the interval tiling used // in BAI and tabix indexes. TileWidth = 0x4000 // StatsDummyBin is the bin number of the reference // statistics bin used in BAI and tabix indexes. StatsDummyBin = 0x924a )
Variables ¶
This section is empty.
Functions ¶
func BinFor ¶
BinFor returns the bin number for given an interval covering [beg,end) (zero-based, half-close-half-open).
func IsValidIndexPos ¶
IsValidIndexPos returns a boolean indicating whether the given position is in the valid range for BAM/SAM.
func OverlappingBinsFor ¶
OverlappingBinsFor returns the bin numbers for all bins overlapping an interval covering [beg,end) (zero-based, half-close-half-open).
Types ¶
type Index ¶
Index is a coordinate based index.
type RefIndex ¶
type RefIndex struct { Bins []Bin Stats *ReferenceStats Intervals []bgzf.Offset }
RefIndex is the index of a single reference.
type ReferenceStats ¶
type ReferenceStats struct { // Chunk is the span of the indexed BGZF // holding alignments to the reference. Chunk bgzf.Chunk // Mapped is the count of mapped reads. Mapped uint64 // Unmapped is the count of unmapped reads. Unmapped uint64 }
ReferenceStats holds mapping statistics for a genomic reference.
Click to show internal directories.
Click to hide internal directories.