Learn R Programming

pedtools (version 2.12.0)

inbreedingLoops: Inbreeding loops

Description

Returns a list of all inbreeding loops in the pedigree. Note that this may be large (and slow) in heavily inbred pedigrees. For example, fullSibMating(10) has 8144 loops. For finding loop breakers and breaking loops, see findLoopBreakers() and breakLoops(), which are much more efficient for large pedigrees, and do not require enumerating all loops.

Usage

inbreedingLoops(x)

Value

A list of inbreeding loops, where each loop is a list with entries top, bottom, pathA and pathB. The top and bottom entries give the IDs of the individuals at the top and bottom of the loop, while pathA

and pathB give the IDs of the individuals along the two paths from top to bottom (excluding top and bottom themselves).

Arguments

x

A ped object.

See Also

findLoopBreakers(), breakLoops()

Examples

Run this code
x = cousinPed(1, child = TRUE)
loops = inbreedingLoops(x)

Run the code above in your browser using DataLab