This function treats the data as diploid; divide by 2 to obtain scores based on a haploid dosage matrix.
VariantScores(pgen, weights, variant_subset = NULL)
Numeric vector, containing product of sample-weight vector and the specified subset of the dosage matrix.
Object returned by NewPgen().
Sample weights.
Integer vector containing 1-based indexes of variants to include in the dosage matrix. Optional; by default, all variants are included.