iron <- read_cross2(system.file("extdata", "iron.zip", package="qtl2"))
iron <- iron[1,"2"] # subset to first individual on chr 2
map <- insert_pseudomarkers(iron$gmap, step=1)
# in presence of a genotyping error, how much does error_prob matter?
iron$geno[[1]][1,3] <- 3
pr_e <- calc_genoprob(iron, map, error_prob=0.002)
pr_ne <- calc_genoprob(iron, map, error_prob=1e-15)
compare_genoprob(pr_e, pr_ne, iron, minmarkers=1, minprob=0.5)
Run the code above in your browser using DataLab