iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
iron <- iron[,c(3,15,"X")]
map <- insert_pseudomarkers(iron$gmap, step=5)
probs <- calc_genoprob(iron, map, error_prob=0.002)
Xcovar <- get_x_covar(iron)
out <- scan1(probs, iron$pheno[,1], Xcovar=Xcovar)
# run just 3 permutations, as a fast illustration
operm <- scan1perm(probs, iron$pheno[,1], addcovar=Xcovar,
n_perm=3, perm_Xsp=TRUE, chr_lengths=chr_lengths(map))
plot(out, map)
add_threshold(map, summary(operm), col="violetred", lty=2)
Run the code above in your browser using DataLab