set.seed(66787403)
# example map; drop X chromosome
data(map10)
map10 <- map10[1:19]
map10 <- map10[1:4]
# simulate data
x <- simPhyloQTL(4, partition="AB|CD", crosses=c("AB", "AC", "AD"),
map=map10, n.ind=150,
model=c(1, 50, 0.5, 0))
# run calc.genoprob on each cross
if (FALSE) x <- lapply(x, calc.genoprob, step=2)
x <- lapply(x, calc.genoprob, step=0)
# scan genome, at each position trying all possible partitions
out <- scanPhyloQTL(x, method="hk")
# inferred partitions
inferredpartitions(out, chr=3, lodthreshold=3)
# inferred partitions with prob'y threshold = 0.95
inferredpartitions(out, chr=3, lodthreshold=3, probthreshold=0.95)
Run the code above in your browser using DataLab