R/getGenoDefinedParentGenotypes.R
getGenoDefinedParentGenotypes.Rd
Assigns parental genotype contributions to an IDs genotype by attributing alleles to sire or dam
getGenoDefinedParentGenotypes(alleles, genotype, id, sire, dam, n)
alleles | data.frame |
---|---|
genotype | A dataframe containing known genotypes. It has three
columns: |
id | A character vector of length one having the ID of interest |
sire | character vector with unique identifier for an
individual's father ( |
dam | character vector with unique identifier for an
individual's mother ( |
n | 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.