inbreedingLoops: Inbreeding loops

View source: R/ped_loops.R

inbreedingLoopsR Documentation

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)

Arguments

x

A ped object.

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).

See Also

findLoopBreakers(), breakLoops()

Examples

x = cousinPed(1, child = TRUE)
loops = inbreedingLoops(x)


pedtools documentation built on Nov. 5, 2026, 5:06 p.m.