PhenoPLIER is a computational framework that maps gene-trait associations through modules of co-expressed genes in a shared latent representation, enabling joint analysis of diseases, genes, and drugs. The latent variable-based approach outperformed single-gene strategies in predicting known drug-disease pairs and prioritized functionally important genes missed by individual gene association tests.