R/utils_fQC.R
check.mendelian.inconsistencies.pair.Rd
Calculates number of inconsistencies and total comparable SNPs for a parent-child pair.
check.mendelian.inconsistencies.pair(g1, g2)
Genotype vector for parent.
Genotype vector for child.
Numeric vector: [# inconsistencies, # comparable SNPs].
g1 <- c(1, 1, 3, 3, 2) g2 <- c(3, 1, 1, 3, 2) check.mendelian.inconsistencies.pair(g1, g2) #> [1] 2 4