# A sib-pair with two SNPs. The first child is homozygous 1/1.
x = nuclearPed(children = c("bro1", "bro2")) |>
addMarker(bro1 = "1/1", alleles = 1:2, afreq = c(0.5, 0.5)) |>
addMarker(bro1 = "1/1", alleles = 1:2, afreq = c(0.5, 0.5))
plot(x, marker = 1:2)
# Genotype distribution for the brother depends on linkage
twoMarkerDistribution(x, id = "bro2", rho = 0)
twoMarkerDistribution(x, id = "bro2", rho = 0.5)
### Same example on X
y = setChrom(x, marker = 1:2, chrom = "X")
plot(y, marker = 1:2)
twoMarkerDistribution(y, id = "bro2", rho = 0)
twoMarkerDistribution(y, id = "bro2", rho = 0.5)
Run the code above in your browser using DataLab