A typical VCF file has:
I would like to use
htslib in C++ to read it. My attempt:
htsFile *fp = bcf_open("my.vcf", "r"); bcf_hdr_t *hdr = bcf_hdr_read(fp);
In https://github.com/samtools/htslib/blob/develop/htslib/vcf.h, I'm not able to find a function that can do that for me.
How to read
248956422 in C++?