Skip to contents

Replays the existing identity-keyed meiosis plan for breed labels, preserving the allele/origin phase at every marker. Founders must be purebred and every offspring must have two known parents. Origin buffers use one byte per copy; genotype buffers remain packed. No fitting or pedigree covariance draws occur.

Usage

gsim_boa_genotypes(
  pedigree,
  founder_haplotypes,
  founder_breed,
  chromosome,
  genetic_position,
  seed = 1,
  maximum_ancestry_bytes = 256 * 1024^2,
  mutation_rate = 0
)

Arguments

pedigree

A gsim_pedigree_from_table() pedigree.

founder_haplotypes

List with binary founder-by-marker h1, h2 matrices with identical animal and marker names.

founder_breed

Named breed labels, exactly one per founder.

chromosome

Chromosome label per marker; chromosomes must be contiguous.

genetic_position

Nondecreasing Morgan positions within chromosome.

seed

Identity-keyed meiosis seed; R's RNG is unused.

maximum_ancestry_bytes

Admission limit for the two byte origin buffers.

mutation_rate

Per-marker, per-transmitted-copy allele-flip probability. Breed origins retain the inherited segment label after mutation.

Value

BOA panel with packed chromosome blocks, zero-based phased origins, pedigree breed fractions, frozen founder frequencies and crossover audits.