| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/RcppExports.R |
| 3 |
\name{ReadList} |
| 4 |
\alias{ReadList} |
| 5 |
\title{Load dosages for multiple variants as a numeric matrix.} |
| 6 |
\usage{ |
| 7 |
ReadList(pgen, variant_subset, meanimpute = FALSE) |
| 8 |
} |
| 9 |
\arguments{ |
| 10 |
\item{pgen}{Object returned by NewPgen().} |
| 11 |
|
| 12 |
\item{variant_subset}{Integer vector containing 1-based indexes of variants |
| 13 |
to load.} |
| 14 |
|
| 15 |
\item{meanimpute}{Optional; if true, missing values are mean-imputed |
| 16 |
instead of being represented by NA.} |
| 17 |
} |
| 18 |
\value{ |
| 19 |
Numeric matrix, where rows correspond to samples, and columns |
| 20 |
correspond to variant_subset. Values are in [0, 2] indicating ALT |
| 21 |
allele dosages, or NA for missing dosages. For multiallelic variants, all |
| 22 |
ALT alelles are combined. |
| 23 |
} |
| 24 |
\description{ |
| 25 |
This function treats the data as diploid; divide by 2 to obtain haploid |
| 26 |
dosages. |
| 27 |
} |