GetAlleleCode: Look up an allele code.

View source: R/RcppExports.R

GetAlleleCodeR Documentation

Look up an allele code.

Description

Look up an allele code.

Usage

GetAlleleCode(pvar, variant_num, allele_num)

Arguments

pvar

Object returned by NewPvar().

variant_num

Variant index (1-based).

allele_num

Allele index (1-based).

Value

The allele_numth allele code for the variant_numth variant. allele_num=1 corresponds to the REF allele, allele_num=2 corresponds to the first ALT allele, allele_num=3 corresponds to the second ALT allele if it exists and errors out otherwise, etc.


pgenlibr documentation built on April 3, 2025, 6:21 p.m.