noodles_fasta::fai

Function read

source
pub fn read<P>(src: P) -> Result<Index>
where P: AsRef<Path>,
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::read("reference.fa.fai")?;