Expand description
Shared I/O primitives used by both BAM and VCF writers.
This module provides BGZF compression and index-building types that are
format-agnostic. Use these when working with crate::bam::BamWriter or
crate::vcf::Writer output.
Re-exports§
pub use crate::bam::bgzf::BgzfError;pub use crate::bam::bgzf::VirtualOffset;
Structs§
- Bgzf
Writer - BGZF block writer that compresses data into independent gzip blocks.
- Index
Builder - Incrementally builds a TBI or CSI index during writing.
- Index
Chunk - A chunk: contiguous range of virtual offsets in the compressed file.
Enums§
Functions§
- reg2bin
- Compute the bin for a genomic interval.
Matches htslib’s
hts_reg2bin(beg, end, min_shift, n_lvls).