Abstract
Nature has settled for L-chirality for proteinogenic amino acids and D-chirality for the carbohydrate backbone of nucleotides. Here we asked the question whether stereochemical patterns might also exist among natural products (NPs) such that their stereochemistry could be assigned automatically. Indeed, we report that a language model can be trained to assign the stereochemistry of NPs using the open access NP database COCONUT. In detail, our language model, called NPstereo, translates an NP structure written as absolute SMILES into the corresponding isomeric SMILES notation containing stereochemical information with 80.1% per-stereocenter accuracy for full assignments and 86.3% per-stereocenter accuracy for partial assignments across various NP classes including secondary metabolites such as alkaloids, polyketides, lipids and terpenes. NPstereo might be useful to assign or correct the stereochemistry of newly discovered NPs.