Correction to: Nature Communications https://doi.org/10.1038/s41467-022-30856-w, published online 07 June 2022.

In the original version of this Article, the positions of “Morphine” and “Codeine” and the associated chemical structures in the morphinan pathway in Fig. 1a were swapped. These have been corrected in both the PDF and HTML versions of the Article.