# NOT RUN {
x = nuclearPed(father = "fa", mother = "mo", children = "child")
# A rare SNP marker for which the child is heterozygous
m = marker(x, child = 1:2, alleles = 1:2, afreq = c(0.01, 0.99))
# Sometimes it is useful to attach the marker to the pedigree
x = setMarkers(x, m)
# A marker with a "proportional" mutation model,
# with different rates for males and females
mutrates = list(female = 0.1, male = 0.2)
marker(x, alleles = 1:2, mutmod = "prop", rate = mutrates)
# }
Run the code above in your browser using DataLab