Function write

Source
pub fn write<P>(dst: P, index: &Index) -> Result<()>
where P: AsRef<Path>,
Expand description

Writes a FASTA index to a file.

This is a convenience function and is equivalent to creating a file at the given path and writing the index.

ยงExamples

use noodles_fasta::fai;
let index = fai::Index::default();
fai::fs::write("reference.fa.fai", &index)?;