noodles-vcf 0.10.0

Variant Call Format (VCF) reader and writer
docs.rs failed to build noodles-vcf-0.10.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build: noodles-vcf-0.53.0

noodles-vcf handles the reading and writing of the VCF format.

Examples

Read all records from a file

# use std::{fs::File, io::{self, BufReader}};
use noodles_vcf as vcf;

let mut reader = File::open("sample.vcf").map(BufReader::new).map(vcf::Reader::new)?;
reader.read_header()?;

for result in reader.records() {
let record = result?;
println!("{:?}", record);
}
# Ok::<(), io::Error>(())