This function treats the data as diploid; divide by 2 to obtain haploid dosages.
Read(pgen, buf, variant_num, allele_num = 2L)
No return value, called for buf-filling side-effect.
Object returned by NewPgen().
Buffer returned by Buf().
Variant index (1-based).
Allele index; 1 corresponds to REF, 2 to the first ALT allele, 3 to the second ALT allele if it exists, etc. Optional, defaults 2.