zo1 / README.md
dbrilli's picture
zo1 release
769fb89
|
Raw History Blame Contribute Delete
10.2 kB
metadata
license: apache-2.0
extra_gated_heading: Request access to zo1
extra_gated_description: >-
  Access is reviewed manually. Your Hugging Face username, email and the answers
  below are shared with the repository owner and recorded with your request.
extra_gated_button_content: Submit access request
extra_gated_fields:
  Full name: text
  Affiliation: text
  Country: country
  Role:
    type: select
    options:
      - Academic researcher
      - Student
      - Industry researcher
      - label: Other
        value: other
  Intended use: text
  I agree to cite the zo1 paper when using this model: checkbox
tags:
  - biology
  - single-cell
  - perturbation-response

zo1: predicting how cells respond to perturbations

zo1 predicts how a cell's gene expression changes when you knock down a gene or treat the cell with a drug, in a cell type where that experiment has not been run.

It learns from experiments in other cell types, measuring how responses in those "donor" contexts translate into the target context. The core is small and fast, a closed-form linear model, so most predictions need only numpy. For single-cell predictions, an optional neural flow head (20M parameters) adds realistic cell-to-cell variation around the predicted mean.

What's in this repository

Model Perturbation Task Folder
Replogle-Nadig CRISPRi gene knockdown predict one cell line (K562, RPE1, Jurkat or HepG2) from the other three weights/replogle_nadig/<line>/
Tahoe drugs (small molecules) predict a held-out cancer cell line from the other cell lines in Tahoe-100M weights/tahoe/<line>/
Systema CRISPRi / CRISPRa perturbations never seen in any context, using the STRING gene network weights/systema/<dataset>/
PerturBench drugs, gene knockouts, gene combinations the PerturBench benchmark tasks weights/perturbench/<task>/

The code is in code/: infer.py makes predictions, train.py retrains on new data, and zo1/ holds the modules both use.

Quick start

pip install -r code/requirements.txt

# Average expression change for two knockdowns in HepG2 (numpy only, takes seconds)
python code/infer.py mean --model weights/replogle_nadig/hepg2 --perts ABCB7 GAR1 --out means.npz

# 200 simulated single cells per knockdown, built from your own HepG2 control cells (needs torch)
python code/infer.py cells --model weights/replogle_nadig/hepg2 --perts ABCB7 \
    --controls my_hepg2_controls.npy --n_cells 200 --out cells.npz

# A drug in a held-out cancer cell line (Tahoe)
python code/infer.py tahoe --model weights/tahoe/PANC-1 --perts "[('Bortezomib', 0.05, 'uM')]" --out drug.npz

# A gene that was never perturbed in training (Systema; uses the STRING network)
python code/infer.py systema --model weights/systema/rpe1 --perts POLR2A --out gene.npz

# A PerturBench model: a drug in K562
python code/infer.py perturbench --model weights/perturbench/srivatsan20 --context k562 --perts "AT9283" --out p.npz

Every command writes an .npz file with the predictions and the gene names. tahoe conditions use Tahoe-100M's drugname_drugconc strings; weights/tahoe/donor_table.json lists them all.

Input format. Each model works on a fixed gene list (config.json["genes"]). Replogle-Nadig models use log1p(counts per 10,000); Tahoe models use log1p(raw counts) on Tahoe's 2,000 variable genes; Systema and PerturBench models use each benchmark's own processing (config.json["expression_space"] says which). Control cells you pass in must use the same genes, in the same order, and the same normalisation.

What a perturbation needs. zo1 transfers responses between contexts. A perturbation must have been measured in at least one other context the model was trained on. If it wasn't, you get the target context's average response, and the tool tells you so. The Systema models are the exception: they handle new genes through the STRING network.

How well it works

Scores below are Pearson correlations between predicted and measured expression changes (vs. control), across genes, averaged over perturbations the model never saw during training. Higher is better.

Replogle-Nadig. Validation perturbations of the held-out line. Each number comes from a model trained without those perturbations; the released weights are then refit with them included.

held-out line validation perturbations Pearson Δ
K562 283 0.410
RPE1 327 0.578
Jurkat 320 0.430
HepG2 278 0.482

Tahoe (drugs). Validation drug-dose conditions of each held-out cell line (56 per line), from a model fitted without them. Score: Pearson correlation of predicted vs measured expression change, as above.

held-out cell line folder Pearson Δ
C32 weights/tahoe/C32 0.904
HOP62 weights/tahoe/HOP62 0.956
HepG2/C3A weights/tahoe/HepG2_C3A 0.897
Hs 766T weights/tahoe/Hs_766T 0.917
PANC-1 weights/tahoe/PANC-1 0.955

Drug responses within one cell line are strongly correlated with each other, so even simple baselines score fairly high on this metric. Compare models on the same split, not across benchmarks.

Systema (genes never perturbed in training). GEARS validation perturbations (split seed 1), from the model fitted on the training perturbations. Two scores, both Pearson correlations across genes: vs control (the usual "Pearson Δ") and vs the average perturbation (the harder Systema metric, which removes the response shared by all perturbations).

dataset genes validation perturbations Pearson Δ vs control Pearson Δ vs average perturbation
Replogle RPE1 (CRISPRi) 5,805 106 0.601 0.410
Replogle K562 (CRISPRi) 6,017 136 0.448 0.335
Adamson 2016 (CRISPRi) 5,060 6 0.847 0.402
Norman 2019 (CRISPRa, incl. gene pairs) 5,045 31 0.579 0.522

Adamson has only 6 validation perturbations, so its numbers are noisy. The released Systema models predict mean expression; the single-cell flow head used in our paper is not included for this benchmark.

PerturBench. Test split, scored with PerturBench's own evaluator (cosine similarity of predicted vs measured log fold changes; higher is better).

task what is predicted folder zo1 best published model
Srivatsan 2020 (sci-Plex) drugs in a held-out cell line weights/perturbench/srivatsan20 0.29 0.53 (SAMS-VAE)
Norman 2019 gene pairs from single genes weights/perturbench/norman19 0.79 0.79 (Latent Additive)
Jiang 2024 gene knockouts in a held-out cell line / cytokine weights/perturbench/jiang24 0.07 0.64 (Decoder)

Published numbers are copied from the PerturBench paper (mean of 5 training runs) and were not re-run by us. zo1 is clearly behind on Srivatsan 2020: with only three cell lines, there is too little to transfer from. On Jiang 2024 it is close to chance and below every published model, including the linear baseline (0.17). Our simple baselines also score far below the published ones on this task, so our evaluation setup may differ from the published one; treat this comparison with caution. Each zo1 number is a single evaluation of the configuration chosen on PerturBench's validation split.

Training data

Every model was trained only on public datasets, with their original licences:

data used for licence
Replogle et al. 2022, K562 and RPE1 Perturb-seq (figshare) Replogle-Nadig, Systema CC-BY-4.0
Replogle et al. 2022 supplementary annotations (figshare) Systema CC0
Nadig et al. 2025, HepG2 and Jurkat Perturb-seq (GEO GSE264667) Replogle-Nadig public (NCBI GEO)
Tahoe-100M (Tahoe Bio, Hugging Face) Tahoe CC0
Adamson 2016 and Norman 2019 (GEARS release) Systema public (Harvard Dataverse)
STRING v12 human network Systema CC-BY-4.0
PerturBench datasets (Altos Labs, Hugging Face) PerturBench CC-BY-4.0

All preprocessing is our own and is in code/. Each config.json records the processing rules, cell counts and source-file checksums.

Retraining on your own data

python code/train.py all --raw_dir RAW --work WORK --out my_weights/

This runs four steps, which can also be run separately:

  1. build: raw Perturb-seq .h5ad files to one normalised matrix (knockdown filter, 2,000 variable genes).
  2. split: train/test sets for each held-out cell line.
  3. fit: trains the models. One GPU, about 10 minutes per cell line.
  4. export: writes weights in the format infer.py loads.

train.py --help describes the input format for a new dataset. The Tahoe, Systema and PerturBench training code is in code/zo1/benchmarks/.

Relation to the paper

These weights were refit from the original public data with our own preprocessing (described above), so they are not bit-for-bit the models scored in the paper. The numbers on this card are validation scores of these released weights. The paper's test results were produced with the same methods and hyperparameters, partly on benchmark-provided processed data and splits. The PerturBench models are not in the paper. The reliability head described in the paper is not included yet.

Limitations

  • zo1 transfers responses between contexts. It does not predict a perturbation that was never measured in any of them, except for the Systema models, which use the STRING network.
  • Its accuracy depends on how similar the target context is to the training contexts.
  • Predictions are expression profiles, not phenotypes such as viability.
  • This is a research model and is not validated for clinical use.

License and access

Apache-2.0. Access is free; requests are reviewed by hand, so please fill in the short form above. If you use zo1 in your work, please cite:

@article{brilli2026zo1,
  title   = {Retrieval, not pretraining: Zo-1 sets the state of the art in single-cell perturbation prediction},
  author  = {Brilli, Danai and Georgila, Maria},
  journal = {arXiv preprint arXiv:2612.04139},
  year    = {2026}
}