In qtl package, the genotype data for a backcross is coded as NA = missing, 1 = AA, 2 = AB. For an F2 intercross, the coding is NA = missing, 1 = AA, 2 = AB, 3 = BB, 4 = not BB (i.e. AA or AB), 5 = not AA (i.e. AB or BB).
If pop.typ = "RILn"
the number of generations of selfing is limited to 20 to ensure sensible input. The constructed object is returned as a R/qtl cross
object with the appropriate class structure. For "RILn"
populations the constructed object is given the class "bcsft"
by using the qtl package conversion function convert2bcsft
with arguments F.gen = n
and BC.gen = 0
. For "ARIL"
populations the constructed object is given the class "riself"
.
This function uses the Viterbi algorithm implemented in argmax.geno
of the qtl package to estimate genetic distances. Initial conservative estimates of the map distances are calculated from inverting recombination fractions outputted from est.rf
. These are then passed to argmax.geno
and imputation of missing allele scores is performed along with re-estimation of map distances. This is an adapted version of quickEst
function from ASMap package.