test_ped <- Ped_griffin[21:25,]
# add an incorrect sire to illustrate
test_ped$sire <- as.character(test_ped$sire)
test_ped$sire[5] <- 'i057_2003_M'
Ped_with_probs <- CalcParentProbs(test_ped, Geno_griffin)
print(Ped_with_probs, digits=2)
# Any non-genotyped non-'dummifiable' individuals are automatically skipped
# To get likelihoods for 'all' relationships, not just probabilities for
# PO & (next-)most-likely:
LL_sire_single <- CalcPairLL(
Pairs = data.frame(id1=test_ped$id,
id2=test_ped$sire,
dropPar1='both', # drop both -> id2 as single parent
focal='PO'),
Pedigree = Ped_griffin, # pedigree to condition on
GenoM = Geno_griffin, Plot=FALSE)
Run the code above in your browser using DataLab