A ped object equal to x except its MARKERS entry, which
consists of the N simulated markers.
Arguments
x
A ped object.
N
A positive integer: the number of markers to be simulated.
alleles
A vector with allele labels.
afreq
A numeric vector of allele frequencies. If missing, the alleles
are assumed to be equifrequent.
ids
A vector containing ID labels of those pedigree members whose
genotypes should be simulated.
Xchrom
A logical: X linked markers or not?
mutmod
A list of mutation matrices named 'female' and 'male'.
seed
An integer seed for the random number generator (optional).
verbose
A logical.
Details
Simple genotype simulation, performed by first distributing alleles randomly
to all founders, followed by Mendelian gene dropping down throughout the
pedigree (i.e., for each non-founder a random allele is selected from each of
the parents). Finally, genotypes of individuals not included in ids are
removed.