pedigrees_all_populate_haplotypes_custom_founders.RdPopulate haplotypes from founder and down in all pedigrees.
All founders get a haplotype from calling the user
provided function get_founder_haplotype() that must return a vector of TRUE/FALSE values.
pedigrees_all_populate_haplotypes_custom_founders(pedigrees, mutation_rates, get_founder_haplotype = NULL, progress = TRUE)
| pedigrees | Pedigree list in which to populate haplotypes |
|---|---|
| mutation_rates | Vector with mutation rates |
| get_founder_haplotype | Function taking no arguments returning a haplotype, i.e. a logical vector (TRUE/FALSE values) of length |
| progress | Show progress |
Note, that pedigrees must first have been inferred by build_pedigrees().