Genome-only model predicts which phages infect which bacteria
In short
- A team at Lawrence Berkeley National Laboratory and UC Berkeley, with Penn State, reports a machine-learning workflow that predicts whether a given phage (a virus that infects bacteria) can infect a given bacterial strain, using only the two genomes. It was published in Nature Microbiology on 29 September 2026.
- It was built and tested on six published datasets: 115,037 interactions across 949 bacterial strains and 518 phages. Performance (AUROC) on unseen bacterial strains ranged from 0.67 to 0.94 across datasets.
- In new lab tests of 52 phages against 25 E. coli strains, the model scored AUROC 0.84 on 1,240 interactions, against 0.87 in cross-validation.
- In computer simulations, five model-picked phages had activity against 97.5% of E. coli strains, 87.8% of Klebsiella and 57.5% of Vibrionaceae strains.
115,037 interactions in the six datasets (949 strains, 518 phages); 0.84 AUROC on 1,240 new lab-tested E. coli pairs; 97.5% E. coli strains covered by a 5-phage model-guided cocktail (simulated); 0.55 to 0.60 AUROC when predicting across bacterial genera
Why the right phage is hard to pick
Phages are narrow in what they infect. A phage that kills one E. coli strain may ignore its close relative, so choosing a phage for a given patient's bacteria usually means testing many candidates in the lab. The paper says the datasets that would let a model learn the pattern are slow to produce, and are lopsided: in several published Klebsiella and Vibrionaceae matrices as few as 2–5% of phage–strain pairs are infectious.
Most existing computational tools either classify hosts only at family or genus level, or are built for one genus and one known infection mechanism. The authors set three aims: predict for individual strain–phage pairs, work without knowing the genetic basis of infection, and handle new strains or phages from genomes alone.
How does the model predict which phage infects which bacteria?
(Plain-English summary is ours.) Each genome is turned into a list of which protein families it carries. The workflow trims that list to the informative features and feeds them to an ensemble of gradient-boosted decision trees (CatBoost), with weights per phage to cope with the imbalance. The authors tuned it by training more than 13.2 million models across over 200 parameter settings. Other ways of representing genomes, such as longer k-mers, performed about as well; only 3-mers were clearly worse.
The three tests were a new strain with a known phage, a known strain with a new phage, and both new. The headline numbers below are for unseen bacterial strains.
Performance rose with dataset size (r = 0.60 for AUROC). The authors attribute the weakest result to the small, lopsided dataset rather than to a limit of the method.
AUROC (ours): imagine picking one pair that did infect and one that did not. AUROC is the chance the model gives the infecting pair the higher score. 0.5 is a coin flip, 1.0 is perfect. 0.84 is good but not certain: it is a ranking score, not the share of calls that are right.
Tested on phages it had never seen
Because the phages from an earlier study were unavailable, the team ran its own experiment. It spotted 52 previously unseen BASEL-collection phages on 25 E. coli strains from the ECOR collection: 1,300 interactions, of which 60 (4.6%) showed no clear result. For the remaining 1,240 the model reached AUROC 0.84, a little below the 0.87 in cross-validation, in a different laboratory with different protocols. Efficiency-of-plating checks on 18.5% of interactions supported the spot-assay readings.
The team also screened a library of E. coli ECOR27 mutants against 19 phages (RB-TnSeq), finding 51 host genes important for infection. Of these, 35 (68.6%) had a link to the model's predictive features: 12 directly, 10 within three genes of one, and 13 through a protein-association database. The authors report direct matches at 5.0 times random expectation. They also note that this screen mainly picks up phage receptors and non-essential genes, so it cannot check features tied to essential ones.
From predictions to cocktails
In simulations on held-out strains, the team picked phages by predicted probability and spread them across clusters of phages with different activity patterns. They compared this with cocktails built from the most promiscuous phages.
Share of strains for which at least one chosen phage was active. Against the promiscuity baseline, one-phage gains were 1.1, 3.1 and 2.7 times; five-phage gains were 1.2, 1.7 and 1.5 times. These are in silico results; no cocktail was tested on bacteria in the lab.
What it cannot do yet
Prediction across genera is weak. Leaving out a whole genus gave AUROC of only 0.60 (E. coli), 0.55 (Klebsiella) and 0.57 (Pseudomonas), barely above chance. Merging datasets from different genera did not help, though merging Klebsiella datasets from different groups modestly did. The authors say the approach needs substantial positive-interaction data, so it fits well-studied hosts for now. Assay differences, such as solid versus liquid medium, may also limit pooling.
Terms in plain English
- Phage: a virus that infects bacteria; phage therapy uses them against bacterial infections.
- Strain: a genetically distinct line within a bacterial species.
- Phage cocktail: several phages combined so that bacteria resistant to one may still fall to another.
- Cross-validation: repeatedly holding out part of the data to test a model on examples it did not train on.
- RB-TnSeq: a screen that knocks out genes one at a time in a bacterial pool and sees which mutants survive phage attack.
Where things stand
The code is released as the GenoPHI Python package and the interaction matrices are on Zenodo, per the paper's availability statements. The authors suggest standardised assays for community-built datasets and using model confidence to choose which experiments to run next. We read the published article only and found no later update.
Sources
- Phylogeny-agnostic strain-level prediction of phage–host interactions from genomes using machine learning, Nature Microbiology, 29 September 2026
Sources
Related stories
- GPS tags show migrant and resident mallards feed alike
- Losing a phage's receptor often makes E. coli easier to drug
- Map estimates millions may rely on microplastic-hit groundwater
- Yukon coast erosion may release about 120 kg of mercury a year
- Drug mixtures may exceed a toxicity limit in 13% of river cells
- DeltaCata model predicts how a mutation changes enzyme kinetics
More from Tiny Critters
- Transposon sequencing now works on phages, two papers report
- EMBL images protein-making machinery inside intact bacteria
- Salmonella ST34 spread by losing genes in sequence, authors say
- Plant roots recruit bacteria for their functions, a paper reports
- A CRISPR screen in mice maps which E. coli genes the gut needs