Function noodles::cram::crai::read[][src]

pub fn read<P>(src: P) -> Result<Vec<Record, Global>, Error> where
    P: AsRef<Path>, 
Expand description

Reads the entire contents of a CRAM index.

This is a convenience function and is equivalent to opening the file at the given path and reading the index.

Examples

use noodles_cram::crai;
let index = crai::read("sample.cram.crai")?;