View source: R/add_pedigree_sex_column.R
This just uses the occurrence of each each individual in the pedigree as Ma or Pa to figure out its sex. Individuals with no offspring are randomly assigned to be females (2) with probability fem_prob, and are males (1) otherwise. This function does not check for sex inconsistencies.
1 | add_pedigree_sex_column(P, fem_prob = 0.5)
|
P |
the pedigree with columns Kid Pa Ma |
fem_prob |
prob that unknown sex indiv is assigned as female. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.