Assigns standard pedigree relationship labels (e.g., Parent, Child, Sibling, Grandparent, Cousin)
to all pairs of individuals based on their generational distances (gen.x, gen.y)
and kinship coefficients (k), typically produced by get_generations().
label_relatives(tbl)A tibble with the following columns:
Column with family identifier (typically the proband's id).
Identifier for the first individual.
Identifier for the second individual.
Generational distance for id1.
Generational distance for id2.
Kinship coefficient between the two individuals.
Assigned relationship label (e.g., "S", "P", "1C", "H1C", "2GP", etc.).
A tibble or data frame containing at least the following columns:
Column with family identifier (typically the proband's id).
Identifier for the first individual.
Identifier for the second individual.
Number of generations between id1 and their most recent common ancestor with id2.
Number of generations between id2 and their most recent common ancestor with id1.
Estimated kinship coefficient between the two individuals.
This function derives descriptive relationship labels using generational differences and kinship patterns. The labels are written in a short-hand notation, an explaination of a subset is given below:
P - Parent
Ch - Child
S - Sibling
GP - Grandparent
Pib - "Pibling" (parental sibling; aunt/uncle)
Nib - "Nibling" (sibling's child; niece/nephew)
GCh - Grandchild
GPib - Grandpibling (grandparent's sibling)
GNib - Grandnibling (sibling's grandchild)
C - Cousin
1C1R - First Cousin Once Removed
2C2R - Second Cousin Twice Removed
H prefix - Half relationships (e.g., HS for Half-Sibling)
get_generations() for computing the generational and kinship inputs used by this function.
# see vignette on identifying and labelling relatives
Run the code above in your browser using DataLab