SamplePedigree: Simulate a haplotypes in a pedigree
Description
Simulates haplotypes within a given pedigree. Haplotypes for a base
individual are sampled from a list of base haplotypes. Parameters for
sampling haplotypes are passed to function SampleHaplotype.
Usage
SamplePedigree(orig,ped,...)
Value
A list with a pedigree and a list of objects of class
haplotype.
Arguments
orig
List of objects of class haplotype. Haplotypes for
base individuals are the result of a meiosis event between two
haplotypes in this list.
ped
data.frame of three columns. Column 1 contains id's,
column two and three id's of parental individuals. Pedigree is
first ordered with function orderPed from the package
pedigree.
...
Arguments to be passed to function SampleHaplotype.
Details
Samples haplotypes for individuals in a pedigree and returns a
pedigree with two additional columns which identify the two haplotypes
of an individual together with a list of haplotypes. Uses function
SampleHaplotype to sample a meiosis event between two parental
haplotypes.