hlaCheckAllele: Check SNP alleles

Description Usage Arguments Value Author(s) See Also Examples

View source: R/DataUtilities.R

Description

Check SNP reference and non-reference alleles.

Usage

1
hlaCheckAllele(allele1, allele2)

Arguments

allele1

two alleles for the first individual, like c("A/G", "C/G")

allele2

two alleles for the second individual, like c("A/G", "C/G")

Value

Return a logical vector, where TRUE indicates the alleles are matching at that locus.

Author(s)

Xiuwen Zheng

See Also

hlaCheckSNPs

Examples

1
hlaCheckAllele(c("A/G", "T/G", "0/A"), c("G/A", "C/A", "G/0"))

Example output

HIBAG (HLA Genotype Imputation with Attribute Bagging)
Kernel Version: v1.5 (64-bit, AVX2)
[1]  TRUE  TRUE FALSE

HIBAG documentation built on March 24, 2021, 6 p.m.