ped2trio: Conversion of a 'pedigree' object into a list of trio objects

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Creates trio objects representing the pedigree structure contained in the pedigree object.

Usage

1
ped2trio(ped)

Arguments

ped

a pedigree object

Details

The function processes the pedigree from the bottom generation to the top, adding new trio objects for each non-founder in a generation, with in their offspring list the trio objects associated to their children. At the top generation, there are as many trio objects as the number of founder couples, and these are returned as a list of trio objects. For now, only founders are allowed to have more than one spouse, non-founders can only have one spouse.

Value

object

list of Trio objects, one list for each founder couple of the pedigree

fd.indices

Vector of the IDs of the founders of the pedigree

Author(s)

Alexandre Bureau <[email protected]>

See Also

pedigree,Trio

Examples

1
2
data(ped.list) 
ped.trio1 = ped2trio(ped.list[[1]])

syounkin/RVsharing documentation built on May 31, 2019, 12:47 a.m.