Allele recoding
allele.recode(a1, a2, miss.val = NA)
a1
first allele.
a2
second allele.
miss.val
missing value.