Debian Codegraph @

pgenlibr/man/Read.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/RcppExports.R
3 \name{Read}
4 \alias{Read}
5 \title{Loads the variant_numth variant, and then fills buf with numeric dosages
6 in [0, 2] indicating the dosages of the first ALT (or user-specified)
7 allele for each sample, with missing values represented by NA.}
8 \usage{
9 Read(pgen, buf, variant_num, allele_num = 2L)
10 }
11 \arguments{
12 \item{pgen}{Object returned by NewPgen().}
13
14 \item{buf}{Buffer returned by Buf().}
15
16 \item{variant_num}{Variant index (1-based).}
17
18 \item{allele_num}{Allele index; 1 corresponds to REF, 2 to the first ALT
19 allele, 3 to the second ALT allele if it exists, etc. Optional, defaults
20 to 2.}
21 }
22 \value{
23 No return value, called for buf-filling side-effect.
24 }
25 \description{
26 This function treats the data as diploid; divide by 2 to obtain haploid
27 dosages.
28 }