Correction to: Nature Genetics https://doi.org/10.1038/s41588-023-01546-0, published online 6 November 2023.

In the version of this article initially published, there were errors in figures and text. In the Fig. 2a legend, in the text now reading “Names of synteny blocks are on top and right,” right replaces “left”; in the Fig. 3a legend, in the text now reading “Red stars indicate positive selection,” red replaces “Purple”; in Fig. 4d, in the flavanols structure, the current OH double bond was originally drawn incorrectly, while the labels for Dihydromyricetin and Dihydroquercetin (at left and right, resp.) were swapped; in the Fig. 4d legend, “Putative flavonoid” replaces “Flavanoid”; in the Fig. 4e legend “Spatial expression of genes (FLS and LTP)”, FLS replaces "CHS"; in the Extended Data Fig. 9a legend, now reading “Spatial expression patterns of genes (CHS, CHIL, CHI, F3H, F3'H, LTP2 and LTP3),” the genes were updated from “(CHI, F3H, F3'H, FLS, LTP2, and LTP3)”; in the Results “Evolution of allicin/isoallicin pathway in Allium” section, the text now reads “Furthermore, the allicin/isoallicin synthesis pathway genes were mainly distributed on chromosome 2 in onion and its homologs chromosome 3 in Welsh onion and chromosome 1 in garlic (Extended Data Fig. 6)” rather than “…on chromosome 2 in Welsh onion and onion…”; in the Results “Spatial pattern of secondary metabolism in onion bulbs” section, in the text reading “Previous study has shown that, in the onion bulbs … with quercetin, kaempferol, and myricetin being as major flavonoids in onion47,” kaempferol and myricetin are now included; reference 47, Zhang, C. et al. Sci. Rep. 8, 14109 (2018), as a specific study on flavonol biosynthesis, replaces Khandagale, K. & Gawande, S. J. Hortic. Sci. Biotech. 94, 522–532 (2019); the Supplementary Table 46 title has been clarified to replace “allinin biosynthesis” for “allicin/isoallicin biosynthesis”. The changes are made in the HTML and PDF versions of the article.