Quantitative trait locus (QTL) mapping is performed using the F2 generation to ensure individuals exhibit a 3:1 genotype ratio and have recombinant genotypes. This approach allows for the quantification of inbreeding effects. Additionally, it ensures that the individuals are representative of Hardy-Weinberg equilibrium.