Allele frequencies of multi-allelic markers (such as microsatellites) in
two reference groups, for hybrid_scores_microsat() and for simulating
reference histories (microsat in simulate_hybrid_zone() and
build_reference()). Microsatellites rarely have alleles fixed between
species, so each animal's hybrid index and interspecies heterozygosity
are estimated by likelihood from these frequencies.
Arguments
- alleles
Integer matrix of allele sizes, two columns per locus (named
locus.a1,locus.a2), animals in rows;NAfor missing.- groups
Group label of each animal.
- ref1, ref2
Labels of the two reference groups.
- prior
Pseudo-count added to every allele seen in either group, so that an allele absent from one reference sample is rare, not impossible, in that species.