Learning genomic and molecular mediators of genotype-phenotype associations