Calculates number of inconsistencies and total comparable SNPs for a parent-child pair.

check.mendelian.inconsistencies.pair(g1, g2)

Arguments

g1

Genotype vector for parent.

g2

Genotype vector for child.

Value

Numeric vector: [# inconsistencies, # comparable SNPs].

Examples

g1 <- c(1, 1, 3, 3, 2)
g2 <- c(3, 1, 1, 3, 2)
check.mendelian.inconsistencies.pair(g1, g2)
#> [1] 2 4