Function noodles::tabix::async::read

source ·
pub async fn read<P>(src: P) -> Result<Index<Vec<VirtualPosition>>, Error>
where P: AsRef<Path>,
Expand description

Reads the entire contents of a tabix index.

This is a convenience function and is equivalent to opening the file at the given path and reading the index.

§Examples

use noodles_tabix as tabix;
let index = tabix::r#async::read("sample.vcf.gz.tbi").await?;