# NOT RUN {
### Example 1: Siblings
ids = c("sib1", "sib2")
# Pedigree
x = nuclearPed(children = ids)
# Simulate 100 markers
x = markerSim(x, N = 100, alleles = 1:4, seed = 123, verbose = FALSE)
# Estimate IBD coefficients (exact = (0.25, 0.5, 0.25))
est = IBDestimate(x, ids = ids)
# Show the result in the IBD triangle
ribd::showInTriangle(est, labels = TRUE)
# Contour plot (just a few markers to save time)
IBDestimate(x, ids = ids, markers = 1:10,
contourPlot = TRUE, levels = -(43:50))
### Example 2: Unrelated singletons
y = list(singleton(1), singleton(2))
# Simulate 200 SNP markers
y = markerSim(y, N = 200, alleles = 1:2, verbose = FALSE)
# Estimate
IBDestimate(y, ids = 1:2)
# }
Run the code above in your browser using DataLab