There is an entire field called Pharmacogenomics for it: https://en.wikipedia.org/wiki/Pharmacogenomics#Cytochrome_P4...