Function noodles::fasta::fai::read[][src]

pub fn read<P>(src: P) -> Result<Vec<Record, Global>, Error> 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")?;