Assigns parental genotype contributions to an IDs genotype by attributing alleles to sire or dam
getGenoDefinedParentGenotypes(alleles, genotype, id, sire, dam, n)
data.frame id, parent, V1 ... Vn
A data.frame providing the maternal and paternal alleles for an animal
for each iteration. The first two columns provide the animal's ID and
whether the allele came from the sire or dam. These are followed by
n
columns indicating the allele for that iteration.
A dataframe containing known genotypes. It has three
columns: id
, first
, and second
. The second and third
columns contain the integers indicating the observed genotypes.
A character vector of length one having the ID of interest
character vector with unique identifier for an
individual's father (NA
if unknown).
character vector with unique identifier for an
individual's mother (NA
if unknown).
integer indicating the number of iterations to simulate.
data.frame id, parent, V1 ... Vn
A data.frame providing the maternal and paternal alleles for an animal
for each iteration. The first two columns provide the animal's ID and
whether the allele came from the sire or dam. These are followed by
n
columns indicating the allele for that iteration.
This is not correct for situations where one haplotype is not known.