Learn R Programming

HIBAG (version 1.8.3)

hlaCheckAllele: Check SNP alleles

Description

Check SNP reference and non-reference alleles.

Usage

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.

See Also

hlaCheckSNPs

Examples

Run this code
hlaCheckAllele(c("A/G", "T/G", "0/A"), c("G/A", "C/A", "G/0"))

Run the code above in your browser using DataLab