Checks IBS status for two genotypes.

check.ibs(gen)

Arguments

gen

Numeric vector of length two with genotype codes.

Value

Integer: 2 if identical non-heterozygotes, 0 if opposite homozygotes, -1 otherwise.

Author

Roberto Higa

Examples

check.ibs(c(1, 1))
#> [1] 2
check.ibs(c(1, 3))
#> [1] 0