pub async fn read<P>(src: P) -> Result<Index>
Expand description
Reads the entire contents of a FASTA index.
This is a convenience function and is equivalent to opening the file at the given path and parsing each record.
ยงExamples
use noodles_fasta::fai;
let index = fai::r#async::fs::read("reference.fa.fai").await?;