Sample (many) genotypes for pedigree members according to allele frequencies by allele dropping and possibly taking linkage into account by simulating recombination.
sample_many_pedigree_genotypes.Rd
Sample (many) genotypes for pedigree members according to allele frequencies by allele dropping and possibly taking linkage into account by simulating recombination.
Arguments
- pedigree
ped object
- freqs
Allele frequencies (see read_allele_freqs)
- loci
Character vector of locus names (defaults to
names
attribute offreqs
)Character vector with names of any additional unrelated persons. Defaults to length zero.
- linkage_map
A linkage map specifying the recombination fractions between loci. If NULL, loci are assumed to be independent.
- number_of_replicates
An integer specifying the number of replicate genotype samples to generate. Defaults to 1.
- sex_locus_name
Character vector, defaults to "AMEL"