Function noodles::bgzf::gzi::async::read

source ·
pub async fn read<P>(src: P) -> Result<Vec<(u64, u64)>, Error>
where P: AsRef<Path>,
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::r#async::read("in.gz.gzi").await?;