Skip to main content

Module io

Module io 

Source
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§

BgzfWriter
BGZF block writer that compresses data into independent gzip blocks.
IndexBuilder
Incrementally builds a TBI or CSI index during writing.
IndexChunk
A chunk: contiguous range of virtual offsets in the compressed file.

Enums§

IndexError

Functions§

reg2bin
Compute the bin for a genomic interval. Matches htslib’s hts_reg2bin(beg, end, min_shift, n_lvls).