View source: R/mendelianCheck.R
mendelianCheck | R Documentation |
Check marker data for Mendelian inconsistencies
mendelianCheck(x, remove = FALSE, verbose = !remove)
x |
a |
remove |
a logical. If FALSE, the function returns the indices of
markers found to incorrect. If TRUE, a new |
verbose |
a logical. If TRUE, details of the markers failing the tests are shown. |
A numeric containing the indices of the markers
that did not pass all tests, or (if remove = TRUE
) a new ped
object where the failing markers are removed.
Magnus Dehli Vigeland
x = nuclearPed()
# Add a SNP with Mendelian error
m = marker(x, '1' = "1/1", '2' = "1/1", '3' = "1/2")
x = setMarkers(x, m)
mendelianCheck(x)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.