Leveraging large-scale genetic data for drug discovery and mechanistic understanding