View source: R/check_pedigree.R
check_pedigree | R Documentation |
Perform a series of checks on the tabular data for a pedigree, checking for problems
check_pedigree(pedigree, ignore_sex = FALSE)
pedigree |
Numeric matrix or data frame with four columns: ID,
mom ID, dad ID, sex. Sex is coded as |
ignore_sex |
If TRUE, ignore the sex values completely (appropriate for hermaphroditic species.) |
The parents should be listed before any of their
offspring. Founders should have 0's for mother and father; all
others should have non-zero values for the parents, and the parents
should appear in the pedigree. Father should be male and mothers
should be female (unless ignore_sex=TRUE
). Individual
identifiers should be unique and non-zero. There should be no
missing values anywhere. (NA
s are allowed in the sex column
if ignore_sex=TRUE
.)
TRUE (invisibly) if everything is okay; otherwise gives an error.
sim_from_pedigree()
,
sim_ril_pedigree()
tab <- sim_ril_pedigree(7)
check_pedigree(tab)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.