Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

GetRelA

Array with Pairwise Relationships


Description

Generate an array indicating the relationship(s) between all pairs of individuals according to the pedigree.

Usage

GetRelA(Ped = NULL, GenBack = 1, patmat = TRUE)

Arguments

Ped

dataframe with columns id - dam - sire.

GenBack

number of generations back to consider; 1 returns parent-offspring and sibling relationships, 2 also returns grand-parental, avuncular and first cousins.

patmat

logical, distinguish between paternal versus maternal relative pairs? For avuncular pairs, the distinction is never made.

Value

a 3D array indicating if the pair has the specified relationship (1) or not (0). The various relationship considered are in the 3rd dimension:

M
P
FS

full siblings, including double 'other half sibs'

MS
PS
XS

other sibs: mother of A is father of B, or vv

etc.


sequoia

Pedigree Inference from SNPs

v2.3.3
GPL-2
Authors
Jisca Huisman [aut, cre]
Initial release
2021-04-30

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.