# NOT RUN {
set.seed(1234)
test_map <- qtl::sim.map(len=rep(20,5),n.mar=3,include.x=FALSE)
test_cross <- qtl::sim.cross(test_map,n.ind=50)
test_smap <- cbind(runif(50,1,100),runif(50,1,100))
test_genoprobs <- qtl::calc.genoprob(test_cross,step=2)
nei_eff <- sim_nei_qtl(genoprobs=test_genoprobs, a2=0.5, d2=0.5,
smap=test_smap,
scale=20, n_QTL=1)
test_scan <- scan_neighbor(genoprobs=test_genoprobs,
pheno=nei_eff$nei_y,
smap=test_smap, scale=20
)
plot_nei(test_scan)
# }
Run the code above in your browser using DataLab