# NOT RUN {
### Example 1: Siblings
x = nuclearPed(children = c("sib1", "sib2"))
# Simluate 200 equifrequent SNPs
x = markerSim(x, N = 200, alleles = 1:2, verbose = FALSE)
# Estimate IBD coefficients (exact = (0.25, 0.5, 0.25))
est = IBDestimate(x, ids = c("sib1", "sib2"))
showInTriangle(est, labels = TRUE)
### Example 2: Unrelated singletons
y = list(singleton(1), singleton(2))
y = markerSim(y, N = 200, alleles = 1:2, verbose = FALSE)
IBDestimate(y, ids = 1:2)
# }
Run the code above in your browser using DataLab