mating_tensor: Comptue the Mating Tensor for a Set of Genotypes.

Description Usage Arguments Value

Description

This returns the three-dimensional array whose [i,j,k]th entry is the probability that maternal genotype i and paternal genotype j combine to make offspring genotype k

Usage

1
2
mating_tensor(maternal, paternal = maternal, offspring = maternal,
  sep = "", phased = FALSE)

Arguments

maternal

Character vector of genotypes.

paternal

Character vector of genotypes. [default: same as maternal]

offspring

Character vector of genotypes. [default: same as maternal]

sep

Character separating the two alleles. [default: ”]

phased

Does order matter for the diploid genotypes?

Value

A three-dimensional array, with dimnames. If phased is FALSE then the two paternal alleles are sorted before being combined together into the offspring diploid genotype.


petrelharp/landsim documentation built on May 25, 2019, 2:53 a.m.