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.