Debian Codegraph @

pgenlibr/man/ReadHardcalls.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/RcppExports.R
3 \name{ReadHardcalls}
4 \alias{ReadHardcalls}
5 \title{Loads the variant_numth variant, and then fills buf with \{0, 1, 2, NA\}
6 values indicating the number of copies of the first ALT (or user-specified)
7 allele each sample has.}
8 \usage{
9 ReadHardcalls(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() or IntBuf().}
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; you can divide by 2, and then
27 treat 0.5 as NA, if it's actually haploid.
28 }