Function noodles_csi::async::write

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

Writes a coordinate-sorted index (CSI) 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_csi as csi;
let index = csi::Index::default();
csi::r#async::write("sample.bcf.csi", &index).await?;