Skip to main content
Back

drGT Predicts Cancer Drug Response and Reveals the Genes Behind It

A graph transformer model predicts cancer drug sensitivity while attention coefficients expose which genes drive the response, offering biological explanations for each prediction.

Pro

  • drGT builds a unified drug-cell-gene heterogeneous graph and runs a Graph Transformer over it for drug sensitivity prediction.
  • Attention coefficients on drug-gene edges give per-prediction biological attribution, evaluated against DrugBank, PubMed, and DeepPurpose.
  • Hits 94.5% AUROC on NCI60 random-split classification and best-in-class R squared across all four regression benchmarks.
  • Only tested model with positive R squared on leave-drug-out GDSC2; leads all baselines on GDSC1 to GDSC2 zero-shot transfer.
  • 63.67% of novel predicted drug-gene links are supported by PubMed abstracts or DeepPurpose scores.
  • Code, pretrained NCI60 weights, and processed datasets available at github.com/sciluna/drGT.

Predicting whether a cancer drug will work on a specific cell line has been a deep learning success story for years, but the models that do it well tend to be inscrutable. A new heterogeneous graph model called drGT attacks both problems at once: it hits state-of-the-art regression accuracy on standard pharmacogenomic benchmarks and uses attention weights on drug-gene edges to point at the specific genes driving each prediction, many of which line up with published biology.

Why interpretability is the hard part

Cancer drug response prediction models typically ingest gene expression profiles from cell lines plus a chemical representation of a drug, then output an IC50 value or a sensitive/resistant label. The catch is translational: although deep learning models achieve high predictive accuracy, their internal decision-making often lacks transparency, and in biomedical contexts, performance metrics alone are insufficient because models must also provide biologically plausible explanations to be useful in hypothesis generation.

Prior interpretable approaches like DRPreter and SubCDR bolted biological structure onto the input side (pathway subgraphs, chemical substructures) but both models remain limited to drug-cell representations and do not construct an integrated drug-cell-gene graph, preventing joint reasoning across all three entity types. drGT's contribution is treating drugs, cell lines, and genes as first-class nodes in a single unified graph, then reading off attention coefficients (ACs) on the drug-gene edges as a direct measure of gene contribution.

How the graph is wired

The pipeline has four stages: build a heterogeneous drug-cell-gene graph, project each node type into a shared latent space with an RBF kernel followed by linear layers, run Graph Transformer layers over it, and finally extract attention scores for interpretation.

The unified adjacency matrix stitches together three association matrices:

  • Drug-cell (A_dc): the response matrix itself, binarized per drug using a mean plus/minus one standard deviation margin for classification, or continuous pIC50 values for regression.
  • Cell-gene (A_cg): derived from standardized gene expression, keeping only positive z-scored values so each cell line connects to genes it highly expresses.
  • Drug-gene (A_dg): known drug-target interactions from DrugBank, zero-padded for unknown pairs.

The GT layer is the TransformerConv operator from PyTorch Geometric, which extends Transformer-style attention to graph-structured data and computes masked multi-head self-attention only over edges present in the adjacency matrix, folding edge features (response values, DTI flags, expression levels) into the key and value projections. To prevent leakage, test-set drug-cell entries are zeroed out before graph construction, though gene-related edges stay in place, which makes this a transductive setup where you assume expression and known targets are available before screening.

Benchmark numbers

The team evaluated on four benchmark pharmacogenomic datasets, GDSC1, GDSC2, CTRP, and NCI60, using AUROC for classification and R squared for regression, across three settings: random 20% masking with 5-fold CV, leave-one-drug or cell-line-out, and cross-dataset zero-shot transfer from GDSC1 to GDSC2.

The classification results are competitive but not dominant. Under random masking, drGT lands third overall on AUROC (topping out at 94.5% on NCI60) behind NIHGCN and MOFGCN. The regression numbers are where it separates from the pack: in the regression task, drGT achieved the highest coefficient of determination across all datasets, demonstrating superior accuracy in estimating continuous drug responses, reaching R squared of 0.690 on NCI60 where GraphCDR and SubCDR both went negative.

The leave-one-out generalization tests are more revealing. On unseen drugs in GDSC2, the transition from negative to slightly positive R squared indicates improved robustness rather than strong absolute predictive accuracy: drGT is the only model producing a positive R squared (0.022) when every other method lands somewhere between -0.1 and -7.5. On the zero-shot transfer from GDSC1 to GDSC2, drGT ranks third on seen pairs but first on unseen pairs, whereas NIHGCN performs best on seen pairs but drops to fifth on unseen pairs, hinting that competing bipartite GNNs are memorizing the training distribution.

What the attention actually points at

The interpretability story is where the paper gets interesting. For each drug, the top-5 genes ranked by averaged attention are compared against three evidence sources: DrugBank known DTIs, PubMed co-occurrence in abstracts, and predictions from DeepPurpose (a structure-based DTI predictor).

Heatmap of top-5 predicted drug-gene interactions for kinase inhibitors versus known DTI

Across 976 NCI60 drugs, drGT extracted 4,880 drug-gene associations. Of these, 36.9% of the drug's known DTIs are recovered by the top-5 attention picks, and 2,436 of 3,826 novel DGAs (63.67%) were supported by either PubMed co-occurrence or DeepPurpose predictions. Concrete examples the paper walks through include vemurafenib flagging DDR2 (which vemurafenib has been shown to inhibit), erlotinib associating with PIK3C3/VPS34 (a known sensitizer), and recurring hits on underexplored genes like NRN1 and SLC43A3 that show up for multiple kinase inhibitors.

Beyond edge-level attribution, top-100 AC-ranked genes per drug feed into over-representation analysis using MSigDB Hallmark gene sets. The resulting groupings recover expected biology: kinase inhibitors showed enrichment for a broad spectrum of biological processes, including epithelial-mesenchymal transition, KRAS signaling, and IL-2/STAT5 signaling, and DNA-damaging agents enrich for p53 signaling and apoptosis.

Using it in practice

The code, preprocessed datasets, and a pretrained NCI60 checkpoint are on GitHub, with data on Zenodo. Inference against the pretrained model is a short call:

from drGT import drGT
from drGT.metrics import evaluate_predictions
probs, true_labels, attention = drGT.predict(
    'best_model.pt', sampler, params
)
evaluate_predictions(true_labels, probs)

The repo notes retraining is required if you swap datasets, add new drugs or cell lines, change the split strategy, or want to interpret attention on your own data. Everything is built on PyTorch Geometric with hyperparameter tuning via Optuna, and the authors report training on an NVIDIA A100.

The honest limitations are worth flagging. The model surfaces gene associations without saying whether a gene is activated, inhibited, or acting through a compensatory pathway, and drug-level regression under leave-drug-out remains hard for every method tested. But as a way to pair a competitive predictor with hypotheses about mechanism, drGT is a useful step toward drug response models that a biologist can actually cross-examine.