VariantScores {pgenlibr} | R Documentation |
Compute variant scores.
Description
This function treats the data as diploid; divide by 2 to obtain scores based on a haploid dosage matrix.
Usage
VariantScores(pgen, weights, variant_subset = NULL)
Arguments
pgen |
Object returned by NewPgen(). |
weights |
Sample weights. |
variant_subset |
Integer vector containing 1-based indexes of variants to include in the dosage matrix. Optional; by default, all variants are included. |
Value
Numeric vector, containing product of sample-weight vector and the specified subset of the dosage matrix.
[Package pgenlibr version 0.3.7 Index]