pub fn open_reader(path: &str) -> Result<Reader, Error>Expand description
Open a VCF/BCF file for reading.
Automatically detects and uses tabix (.tbi) or CSI (.csi) indices
when available. If an index is found, region queries are enabled.
ยงExample
use htsvcf_core::reader::open_reader;
let mut reader = open_reader("input.vcf.gz").unwrap();
while let Ok(Some(record)) = reader.next_record() {
// process record
}