BAM/VCF parsing using htslib
Htslib is a widely used library written primarily in C for parsing BAM/VCF files. Many tools used for analyzing high throughput sequencing data like Samtools/BCFtools use htslib for parsing different files. I had to use htslib for a project recently and I wrote up a couple of examples on how to use htslib to parse BAM and VCF files. This code is in this repository here titled bam-parser tutorial.