pub fn index<P>(src: P) -> Result<Index>
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>(())