File size: 6,068 Bytes
dbd8041 4bf6d3d dbd8041 797c4a3 dbd8041 797c4a3 dbd8041 797c4a3 be3216d dbd8041 4bf6d3d dbd8041 bbec8ed | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 | ---
license: other
license_name: alphagenome
license_link: https://deepmind.google.com/science/alphagenome/model-terms
library_name: alphagenome-ft-mpra
tags:
- biology
- genomics
- dna
- mpra
- starr-seq
- alphagenome
- regulatory-genomics
---
# AlphaGenome Encoder — fine-tuned MPRA / STARR-seq checkpoints
Fine-tuned **AlphaGenome encoder** checkpoints for massively parallel reporter assays.
The AlphaGenome transformer is bypassed: a regression head is trained on the raw encoder
output (128 bp resolution), which is both far cheaper and — on these short-sequence
reporter tasks — more accurate than using the full model.
Four benchmarks, in both JAX (Haiku) and PyTorch where available:
- **lentiMPRA** (Agarwal et al.) — K562, HepG2, WTC11
- **lentiMPRA** (Gosai et al.) — K562, HepG2, SKNSH
- **Drosophila STARR-seq** (DeepSTARR; de Almeida et al.) — developmental + housekeeping
- **Plant STARR-seq** (Jores et al. 2021) — tobacco leaf and maize protoplast, 3 data modes
- **Plant multi-condition MPRA** (Jores et al. 2026) — 5 conditions (cold/dark/light/warm/maize)
Code: [Al-Murphy/alphagenome_FT_MPRA](https://github.com/Al-Murphy/alphagenome_FT_MPRA)
---
## ⚠️ Licence
These are **fine-tuned derivatives of AlphaGenome**. The model parameters, their outputs,
and any derivatives thereof remain subject to Google DeepMind's
[AlphaGenome Model Terms](https://deepmind.google.com/science/alphagenome/model-terms),
**including the restriction to non-commercial use**. The base parameters were created by
Google DeepMind and are the property of Google LLC.
Only the fine-tuning *code* is Apache-2.0. We are not relicensing the weights.
Loading also requires the base AlphaGenome weights
([`google/alphagenome-all-folds`](https://huggingface.co/google/alphagenome-all-folds)),
which are **access-gated** — accept the terms there and `huggingface-cli login` first.
## Usage
```bash
pip install git+https://github.com/Al-Murphy/alphagenome_FT_MPRA
```
```python
from alphagenome_ft_mpra.hub import list_pretrained, load_pretrained
list_pretrained()
model = load_pretrained('plant-starrseq-leaf-combined') # JAX, fine-tuned
model = load_pretrained('mpra_K562') # PyTorch
preds = model.predict_sequences(['ACGT...'], construct_mode='promoter_barcode')
```
`load_pretrained` reads each checkpoint's `config.json` to build the right head at the
right width — see the repo's [docs/model_weights.md](https://github.com/Al-Murphy/alphagenome_FT_MPRA/blob/main/docs/model_weights.md)
for the manual path and the gotchas.
## Contents
`stage1` = frozen encoder (head only trained); `stage2` = encoder fine-tuned.
### `torch/` — test Pearson r
| Checkpoint | Task | frozen | fine-tuned |
|---|---|---|---|
| `mpra_K562` | lentiMPRA K562 | 0.8580 | **0.8785** |
| `mpra_HepG2` | lentiMPRA HepG2 | 0.8688 | **0.8876** |
| `mpra_WTC11` | lentiMPRA WTC11 | 0.8278 | **0.8344** |
| `starrseq_drosophila` | DeepSTARR (dev + hk) | 0.6184 | **0.7468** |
| `jores_multicondition` | Jores 2026 plant MPRA (5 cond.) | — | **0.841** |
Drosophila is the mean of the two tasks (fine-tuned: dev 0.7193, hk 0.7744).
`jores_multicondition` is the mean across 5 conditions (cold 0.822, dark 0.887,
light 0.873, warm 0.853, maize 0.770). Its head is `MPRAHead(num_outputs=5)`
(`head_type="mpra"`), so it loads with the **standard** `alphagenome-encoder-ft` like
the other torch checkpoints — output columns `[cold, dark, light, warm, maize]`.
### `jax/` — plant STARR-seq (Jores 2021), test Pearson r
Every value below was re-verified by loading the released checkpoint and re-running
inference.
| Tissue | Mode | probe (stage1) | fine-tuned (stage2) |
|---|---|---|---|
| leaf | combined | 0.7821 | **0.8899** |
| leaf | enhancer | 0.7660 | **0.8749** |
| leaf | promoter_only | 0.6876 | **0.7802** |
| proto | combined | 0.7884 | **0.8795** |
| proto | enhancer | 0.6870 | **0.8036** |
| proto | promoter_only | 0.7015 | **0.7683** |
Plus `jax/{mpra-K562,mpra-HepG2,mpra-WTC11,deepstarr}-optimal` (see the paper for
their metrics).
### `jax/` — Gosai et al. lentiMPRA (`Gosai-<cell>-optimal`)
Cell-averaged Pearson r (from the paper's 4-panel figure):
| Panel | Probing (S1) | Fine-tuned (S2) |
|---|---|---|
| Genomic Reference | 0.877 | 0.910 |
| High-Activity Designed | 0.709 | 0.776 |
| SNV Effects (Ref−Alt) | 0.364 | 0.400 |
Reproduced here: loading `Gosai-K562-optimal/stage2` and scoring the held-out chr7+13
K562 set gives Pearson 0.9195.
## Notes
- **Plant `stage1` is a ridge probe, not a model.** It carries no encoder weights — the
features come from the *unmodified pretrained* encoder. Use `load_plant_probe()`.
- **Plant head width varies per cell** (4096 / 2048 / 1024). It's recorded in each
checkpoint's `config.json`; don't assume a default.
- **Inputs are reporter constructs**, not bare genomic sequence — each checkpoint expects
the construct it was trained on (promoter+barcode, library adapters, or 35S
enhancer + core promoter + 5′ UTR + barcode). See the repo docs.
- Plant test constructs use a random barcode per row, so Pearson reproduces to ~±0.0001;
quote plant numbers to 3 decimals.
## Citation
A paper is in preparation. Until it is available, please cite the blog post:
> Murphy, A., Durán, A., & Koo, P. K. (2026). *Adapting AlphaGenome to MPRA data.* Genomics x AI Blog, 20 February 2026. https://genomicsxai.github.io/blogs/2026-002/. https://doi.org/10.5281/zenodo.20272900
```bibtex
@article{Murphy2026,
author = {Murphy, Alan and Dur{\'a}n, Alejandra and Koo, Peter K.},
title = {Adapting AlphaGenome to MPRA data},
journal = {Genomics x AI Blog},
year = {2026},
month = {February},
day = {20},
url = {https://genomicsxai.github.io/blogs/2026-002/},
doi = {10.5281/zenodo.20272900}
}
```
Please also cite [AlphaGenome](https://deepmind.google.com/science/alphagenome) (Google
DeepMind) and the underlying datasets (Agarwal et al.; Gosai et al.; de Almeida et al.;
Jores et al. 2021).
|