VariantScores: Compute variant scores.

View source: R/RcppExports.R

VariantScoresR 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.


pgenlibr documentation built on April 3, 2025, 6:21 p.m.