Algorithms to link signaling pathways with transcriptional programs for precision medicine