Function index

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

Indexes a BCF file.

The input must be coordinate-sorted.

See also csi::fs::write to write the resulting csi::Index.

ยงExamples

use noodles_bcf as bcf;
let _index = bcf::fs::index("sample.bcf")?;
Ok::<_, std::io::Error>(())