Struct noodles_cram::crai::Reader [−][src]
pub struct Reader<R> { /* fields omitted */ }
Expand description
A CRAM index reader.
Implementations
Creates a CRAM index reader.
Examples
use noodles_cram::crai; let data = []; let reader = crai::Reader::new(&data[..]);
Reads an CRAM index.
The position of the stream is expected to be at the start.
Examples
use noodles_cram::crai; let mut reader = File::open("sample.cram.crai").map(crai::Reader::new)?; let index = reader.read_index()?;