pub fn read<P>(src: P) -> Result<Index>
Expand description
Reads the entire contents of a GZ index.
This is a convenience function and is equivalent to opening the given path and reading the index.
ยงExamples
use noodles_bgzf::gzi;
let index = gzi::fs::read("in.gz.gzi")?;