Description Usage Arguments Details Value See Also
Compute rate of Mendelian inconsistency between an individual and possible mother-father pairs.
1 | mendel.distance(gty, parents, verbose = TRUE, ...)
|
gty |
a |
parents |
a |
verbose |
logical; if |
... |
ignored |
Define the "Mendel distance" between an individual and two possible parents as the mean
rate of Mendelian inconsistencies – that is, markers at which zero alleles are shared IBS between
one parent and one offspring – across the pairs (father, offspring) and (mother, offspring). Given
a set of possible parents (in parents
), this function creates all possible male-female pairs
and computes the Mendel distance between each pair and a single target individual (in gty
).
If the sex of the target individual is non-missing, the sex chromosomes will be handled specially: for males, chrY is compared to the father's chrY and chrX to the mother's chrX; for females, chrX is compared to both parents and chrY is ignored. If the sex of the target individual is missing, the sex chromosomes will be ignored, and mitochondrial markers are always ignored because they are so few in number and tend to be homoplasic.
a dataframe of mother-father pairs and corresponding Mendel distances
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.