Debian Codegraph @

pgenlibr/man/ReadSparseHardcalls.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/RcppExports.R
3 \name{ReadSparseHardcalls}
4 \alias{ReadSparseHardcalls}
5 \title{If HasSparseHardcalls() is true, returns a sparse representation for the
6 (variant, allele) pair. If HasSparseHardcalls() is false, the function
7 fails.}
8 \usage{
9 ReadSparseHardcalls(pgen, variant_num, allele_num = 2L, return_ints = FALSE)
10 }
11 \arguments{
12 \item{pgen}{Object returned by NewPgen().}
13
14 \item{variant_num}{Variant index (1-based).}
15
16 \item{allele_num}{Allele index; 1 corresponds to REF, 2 to the first ALT
17 allele, 3 to the second ALT allele if it exists, etc. Optional, defaults
18 to 2.}
19
20 \item{return_ints}{Whether to make the "counts" component of the return
21 value an IntegerVector instead of a NumericVector; defaults to false.}
22 }
23 \value{
24 Either an empty list, in which case buf is filled in the same
25 mannerObject where "sample_ids" is an increasing sequence of positive
26 integers listing which samples have the allele, and "counts" is a vector
27 listing the allele counts for those samples.
28 }
29 \description{
30 If HasSparseHardcalls() is true, returns a sparse representation for the
31 (variant, allele) pair. If HasSparseHardcalls() is false, the function
32 fails.
33 }