| 1 |
% Generated by roxygen2: do not edit by hand |
| 2 |
% Please edit documentation in R/RcppExports.R |
| 3 |
\name{ReadIntList} |
| 4 |
\alias{ReadIntList} |
| 5 |
\title{Load hardcalls for multiple variants as an integer matrix.} |
| 6 |
\usage{ |
| 7 |
ReadIntList(pgen, variant_subset) |
| 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 |
\value{ |
| 16 |
Integer matrix, where rows correspond to samples, columns |
| 17 |
correspond to variant_subset, and values are in \{0, 1, 2, NA\} indicating |
| 18 |
the number of hardcall ALT allele copies. For multiallelic variants, all |
| 19 |
ALT alleles are combined. |
| 20 |
} |
| 21 |
\description{ |
| 22 |
This function treats the data as diploid; you can divide by 2, and then |
| 23 |
treat 0.5 as NA, if it's actually haploid. |
| 24 |
} |