Data Availability
Code for reproducing all the main analyses in R is available online at https://locksk.github.io/cogs-symptoms/). Additional scripts for calling pharmacogenomic star alleles and calculating polygenic scores is available online at https://github.com/locksk/symptoms-medication-pgx. To comply with the ethical and regulatory framework of the CardiffCOGS project, access to individual-level data requires a collaboration agreement with Cardiff University. Requests to access deidentified datasets, data dictionaries, and other summaries from the CardiffCOGS project should be directed to James Walters (waltersjt{at}cardiff.ac.uk)