a matrix with counts, a 3D array or a 4-column dataframe, depending
on Return
, with by default (GenBack=1, patmat=FALSE
) the
following 7 relationships:
SSelf (not in counts)
MPParent
OOffspring (not in counts)
FSFull sibling
HSHalf sibling
UUnrelated, or otherwise related
XEither or both individuals not occurring in both pedigrees
Where in the array and dataframe, 'MP' indicates that the second (column)
individual is the parent of the first (row) individual, and 'O' indicates the
reverse.When GenBack=2, patmat=TRUE, the following relationships are
distinguished:
SSelf (not in counts)
MMother
PFather
OOffspring (not in counts)
FSFull sibling
MHSMaternal half-sibling
PHSPaternal half-sibling
MGMMaternal grandmother
MGFMaternal grandfather
PGMPaternal grandmother
PGFPaternal grandfather
GOGrand-offspring (not in counts
FAFull avuncular; maternal or paternal aunt or uncle
HAHalf avuncular
FNFull nephew/niece (not in counts
HNHalf nephew/niece (not in counts
FC1Full first cousin
DFC1Double full first cousin
UUnrelated, or otherwise related
XEither or both individuals not occurring in both pedigrees
Note that for avuncular and cousin relationships no distinction is made
between paternal versus maternal, as this may differ between the two
individuals and would generate a large number of subclasses. When a pair is
related via multiple paths, the first-listed relationship is returned.When GenBack=1, patmat=TRUE the categories are (S)-M-P-(O)-FS-MHS-PHS-
U-X. When GenBack=2, patmat=FALSE, MGM, MGF, PGM and PGF are combined
into GP, with the rest of the categories analogous to the above.
Note that in the dataframe each pair is listed twice, e.g. once as P and once
as O, or twice as FS.
When Return = "Counts" (the default), a matrix with counts is
returned, with the classification in Ped1 on rows and that in Ped2 in
columns. Counts for 'symmetrical' pairs ("FS", "HS", "MHS", "PHS", "FC1",
"DFC1", "U","X") are divided by two.
When Return = 'Summary', the counts table is distilled down into a matrix
with four columns, which names assuming Ped1 is the true pedigree:
ntotal number of pairs with that relationship in Ped1
OKNumber of pairs with same relationship in Ped2 as in Ped1
loNumber of pairs with 'lower' relationship in Ped2 as in Ped1 (see
ranking above), but not unrelated in Ped2
hiNumber of pairs with 'higher' relationship in Ped2 as in Ped1
When Return = "Array", the first dimension is 1=Ped1, 2=Ped2,
the 2nd and 3rd dimension are the two individuals of the pair.
When Return = "Dataframe", the columns are
id.AFirst individual of the pair
id.BSecond individual of the pair
RC1the relationship category in Ped1, as a factor with all
considered categories as levels, including those with 0 count
RC2the relationship category in Ped2