| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/RcppExports.R |
| 3 |
\name{VariantScores} |
| 4 |
\alias{VariantScores} |
| 5 |
\title{Compute variant scores.} |
| 6 |
\usage{ |
| 7 |
VariantScores(pgen, weights, variant_subset = NULL) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{pgen}{Object returned by NewPgen().} |
| 11 |
|
| 12 |
\item{weights}{Sample weights.} |
| 13 |
|
| 14 |
\item{variant_subset}{Integer vector containing 1-based indexes of variants |
| 15 |
to include in the dosage matrix. Optional; by default, all variants are |
| 16 |
included.} |
| 17 |
} |
| 18 |
\value{ |
| 19 |
Numeric vector, containing product of sample-weight vector and the |
| 20 |
specified subset of the dosage matrix. |
| 21 |
} |
| 22 |
\description{ |
| 23 |
This function treats the data as diploid; divide by 2 to obtain scores |
| 24 |
based on a haploid dosage matrix. |
| 25 |
} |