Description Usage Arguments Details Value Author(s) Examples
View source: R/trio_consistency.R
Simple tests to chech the consistency of the pedigree trio family data. Currently the following checks are undertaken: 1) that no duplicates ids are found; 2) that the primary id is not missing for anyone; 3) that founders have both the father and mother id missing; 4) that individuals are not both classified as male (fathers and mothers);
1 | validate_trio_consistency(id, fid, mid, sex = NULL)
|
id |
Numeric. The id of the individual. These values should be unique |
fid |
Numeric. The father id. NA or 0 are used for missing. |
mid |
Numeric. The mother id. NA or 0 are used for missing. |
sex |
An optional numeric vector with the sex of the individual. Only four values should be present 1 (male), 2 (female), 0 or NA (missing) |
There are no checks of persons being both mother and father, nor being its
own parent and incest checks are not performed. In other words, the
obj
is assumed to be sane, but possibly immoral.
Throws an error if an inconsistency is found. Otherwise returns TRUE.
Claus Thorn Ekstrøm, ekstrom@sund.ku.dk
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.