#noodles #vcf #bioinformatics

noodles-vcf

Variant Call Format (VCF) reader and writer

32 releases (breaking)

0.26.0 Mar 14, 2023
0.24.0 Feb 3, 2023
0.23.0 Nov 29, 2022
0.17.0 Jul 5, 2022
0.2.0 Jul 30, 2021

#53 in Biology

Download history 68/week @ 2022-12-03 97/week @ 2022-12-10 76/week @ 2022-12-17 25/week @ 2022-12-24 64/week @ 2022-12-31 114/week @ 2023-01-07 113/week @ 2023-01-14 202/week @ 2023-01-21 186/week @ 2023-01-28 409/week @ 2023-02-04 546/week @ 2023-02-11 532/week @ 2023-02-18 211/week @ 2023-02-25 166/week @ 2023-03-04 200/week @ 2023-03-11 115/week @ 2023-03-18

708 downloads per month
Used in 13 crates (6 directly)

MIT license

780KB
18K SLoC

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

Examples

Read all records from a file

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

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

for result in reader.records(&header) {
    let record = result?;
    println!("{:?}", record);
}
# Ok::<_, Box<dyn std::error::Error>>(())

Dependencies

~2–6.5MB
~104K SLoC