This function treats the data as diploid; divide by 2 to obtain haploid dosages.
ReadList(pgen, variant_subset, meanimpute = FALSE)
Numeric matrix, where rows correspond to samples, and columns correspond to variant_subset. Values are in [0, 2] indicating ALT allele dosages, or NA for missing dosages. For multiallelic variants, all ALT alelles are combined.
Object returned by NewPgen().
Integer vector containing 1-based indexes of variants to load.
Optional; if true, missing values are mean-imputed instead of being represented by NA.