Learn R Programming

RVsharing (version 1.7.0)

ped2trio: Conversion of a

Description

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

Usage

ped2trio(ped)

Arguments

ped
a pedigree object

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

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.

See Also

pedigree,Trio

Examples

Run this code
data(ped.list) 
ped.trio1 = ped2trio(ped.list[[1]])

Run the code above in your browser using DataLab