# Example pedigree with two brothers
x = nuclearPed(children = c("B1", "B2"))
### Simulate profiles using built-in freq database
profileSim(x, markers = NorwegianFrequencies[1:3])
### Conditioning on known genotypes for one brother
# Attach two SNP markers with genotypes for B1
y = x |>
addMarker(B1 = "1/2", alleles = 1:2) |>
addMarker(B1 = "1", alleles = 1:2, chrom = "X")
# Simulate 2 profiles of B2 conditional on the above
profileSim(y, N = 2, ids = "B2", seed = 123)
Run the code above in your browser using DataLab