File size: 17,894 Bytes
7325ba1 9a8fe10 7325ba1 23e6a64 7325ba1 9a8fe10 7325ba1 9a8fe10 7325ba1 9a8fe10 7325ba1 9a8fe10 7325ba1 9a8fe10 7325ba1 23e6a64 7325ba1 | 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 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 | ---
license: apache-2.0
library_name: pytorch
tags: [udgamlabs, biology, single-cell, gene-expression, perturbation-prediction, crispr, crispri, crispra, virtual-cell]
---

**UDGAM LABS** · Cell model · 16.3M parameters
# BioCell
### What it is
BioCell is a 16.3M-parameter model from Udgam Labs. It predicts how human cells change when one or two genes are switched off (CRISPRi) or on (CRISPRa). Pick a cell type and a gene, and it returns the predicted change in activity of 3,000 genes. It is a research tool, not medical advice, and not for diagnosis or treatment decisions.
### What you can do with it
- Switch a gene off or on in five human cell types and see which genes it expects to rise or fall.
- Try two genes at once and compare with adding the two single effects.
- Rank ideas before lab time is spent. Each prediction carries a familiarity score: how close the gene and cell type are to what the model has seen.
### The numbers
Arc Institute's Virtual Cell Challenge evaluator (cell-eval 0.8.2, vcc profile), test genes held out of training (two exceptions, below), three model copies averaged.
| Cell type (test genes) | DES | PDS | % of ceiling | KG-kNN baseline % |
|---|---|---|---|---|
| K562, leukaemia (311) | 0.110 | 0.738 | 39.7 | 26.6 |
| RPE1, retina (340) | 0.267 | 0.731 | 48.7 | 33.7 |
| Jurkat, T cell (351) | 0.108 | 0.698 | 36.4 | 23.7 |
| H1, stem cell (22) | 0.102 | 0.688 | 27.6 | 24.7 |
| HepG2, liver, never trained on (327) | 0.097 | 0.609 | 24.4 | 15.0 |
DES: how well it finds which genes change. PDS: how well it tells one switched gene from another (0.5 is chance). Ceiling: what repeating the lab experiment itself scores.
On PDS it is ahead of the simple KG-kNN baseline in four cell types (K562 +0.093, interval +0.071 to +0.115) and level in stem cells. Against the published Scouter model, side by side with no interval, PDS is 0.738 against 0.679 in K562 and 0.731 against 0.691 in RPE1. The two are level on DES (0.110 against 0.112 in K562).
### Where it falls short
- **Far from the ceiling.** 24 to 49% of what repeating the lab experiment scores.
- **Liver line.** Its average error in size (MAE, lower is better) is 0.0833 against 0.0704 to 0.0729 for the simple baselines.
- **Stem cells.** Only 22 test genes. Level with the simple baseline on DES and PDS, worse on MAE (+0.004).
- **Lower than v2.0 in three cell types.** K562 39.7 against 41.3, RPE1 48.7 against 51.2, Jurkat 36.4 against 38.7.
- **Familiarity and fit.** The familiarity score tracks how well it finds the changed genes, in the cell types it trained on, and not PDS on the liver line or stem cells. One training-fit check failed (Jurkat, gene MED27, 0.874 against a 0.90 bar).
- **Scope.** 3,000 genes, not all 20,000. Gene switches only, no drugs or doses. One model copy is weaker on the liver line than three (19.1% against 24.4%). Not medical advice.
### Try it and read more
- **Simulator:** https://huggingface.co/spaces/udgamlabs/biocell · **Model page:** https://udgamlabs.com/models/biocell
- **Weights:** https://huggingface.co/udgamlabs/biocell · **Report:** https://udgamlabs.com/research/biocell · **Write-up:** https://udgamlabs.com/blog/biocell · **Code:** https://github.com/udgamlabs/biocell
## Quick start
Tested by the CTO on 30 Nov 2026 in a clean Python 3.11 environment with only the packages below (CPU, no GPU).
```bash
pip install torch numpy safetensors huggingface_hub
```
Everything the model needs is in this repository: `predict.py` and `models.py`, the three weight files (`model_seed0..2.safetensors`, plain tensors, no pickled code), `config.json`, `inference_pack.npz` and `bio_atlas.json.gz`.
**One gene, switched off**
```python
import sys
from huggingface_hub import snapshot_download
model_dir = snapshot_download("udgamlabs/biocell")
sys.path.insert(0, model_dir)
from predict import UdgamVirtualCell
vc = UdgamVirtualCell.load(model_dir) # all three copies; about 1 second on a laptop CPU
out = vc.perturb(cell_line="k562", genes=["GATA1"], modality="knockdown")
print(out["plain_summary"])
print(out["confidence"]["tier"]) # familiarity: High, Medium or Low
for g in out["top_down"][:5]:
print(g["gene"], g["delta"])
```
`cell_line` is one of `k562`, `rpe1`, `jurkat`, `h1` or `hepg2`. `modality` is `"knockdown"` (switched off) or `"activate"` (switched on). `out["delta_all"]` holds the predicted change for all 3,000 genes, in the order of `vc.hvg_syms`. One prediction takes about 20 to 40 ms on a laptop CPU.
**Two genes at once, switched on**
```python
combo = vc.perturb(cell_line="k562", genes=["CEBPE", "CNN1"], modality="activate")
for g in combo["synergy"]["top_synergy_genes"][:5]:
print(g["gene"], g["additive_delta"], g["predicted_delta"])
```
**Your own control cells**
```python
# cells: a NumPy array, one row per unperturbed cell, one column per gene
# gene_names: the gene symbol for each column
mine = vc.perturb_custom_cells(cells, gene_names, genes=["RPL5"], modality="knockdown", label="My cells")
print(mine["custom_upload"])
```
At least 50 of your gene symbols must match the model's 3,000 genes. Raw counts are detected and converted to log1p counts per 10,000. Predictions on uploaded cells have no score in our results. Treat them as untested.
**Command line**
```bash
python predict.py --model-dir . --line k562 --genes GATA1 --top-k 10
python predict.py --model-dir . --line k562 --genes CEBPE,CNN1 --modality activate
```
The command prints the full result as JSON.
## Results
Every number in this section was scored with Arc Institute's Virtual Cell Challenge evaluator (cell-eval 0.8.2, vcc profile). Intervals are paired bootstrap 95% intervals. The test genes were held out of training, with two exceptions: STIL and PTPN1 were in training as switched-on single genes from the Norman 2019 data (see "Where it falls short"). Unless a line says otherwise, the model is three copies averaged (a 3-seed ensemble).
Four terms, once:
- **DES:** how well it finds which genes change. Higher is better.
- **PDS:** how well it tells one switched gene from another. 0.5 is chance. Higher is better.
- **MAE:** average error in size. Lower is better.
- **Ceiling:** what repeating the lab experiment itself scores. "% of ceiling" averages two shares: DES as a share of the ceiling, and PDS above chance as a share of the ceiling above chance.
### Full table
| Cell type (test genes) | DES | PDS | MAE | % of ceiling | Simple baseline (KG-kNN) % of ceiling | One copy (seed 0) % of ceiling |
|---|---|---|---|---|---|---|
| K562, leukaemia (311) | 0.1102 | 0.7381 | 0.0573 | 39.7 | 26.6 | 40.0 |
| RPE1, retina (340) | 0.2666 | 0.7312 | 0.0715 | 48.7 | 33.7 | 48.0 |
| Jurkat, T cell (351) | 0.1083 | 0.6980 | 0.0670 | 36.4 | 23.7 | 36.3 |
| H1, stem cell (22) | 0.1021 | 0.6880 | 0.0396 | 27.6 | 24.7 | 27.6 |
| HepG2, liver, never trained on (327) | 0.0968 | 0.6090 | 0.0833 | 24.4 | 15.0 (ResMLP 15.2) | 19.1 |
KG-kNN and ResMLP are the simple baselines in our results. The liver line (HepG2) was kept out of training entirely.
### Against the simple baseline
On PDS, BioCell is ahead of KG-kNN with intervals clear of zero in four cell types:
| Cell type | PDS difference | 95% interval |
|---|---|---|
| K562 | +0.093 | +0.071 to +0.115 |
| RPE1 | +0.113 | +0.085 to +0.141 |
| Jurkat | +0.080 | +0.060 to +0.099 |
| HepG2 | +0.071 | +0.049 to +0.094 |
| H1 | +0.006 | -0.037 to +0.050 (level) |
### Against Scouter
Scouter is a published method for the same task (Zhu and Li, Nature Computational Science, 2026). We ran its official code ourselves, with its default model and training settings, giving it the same gene knowledge as BioCell in place of its own language-model gene embeddings, on the same 3,000 genes, early-stopped on the same validation genes. On the same test genes, BioCell scores 0.738 on PDS against Scouter's 0.679 in K562, and 0.731 against 0.691 in RPE1. On DES the two are level: 0.110 against 0.112 in K562, and 0.267 against 0.269 in RPE1.
These scores sit side by side only. Scouter was scored in our earlier v2.0 run, so there is no paired interval between Scouter and this version.
### Two genes at once
Test set: Norman 2019, 24 gene pairs never seen in training, both genes switched on. Comparison: adding the two measured single-gene effects.
- Error (MSE, lower is better): 0.004576 against 0.006397. That is 28.5% lower. The interval on the difference is -0.00332 to -0.00027.
- BioCell is ahead on 18 of the 24 pairs.
- Correlation is level: 0.8755 against 0.8728, and the interval crosses zero.
### Sanity check
With the gene knowledge shuffled, the K562 score falls to chance: PDS 0.505, 2.5% of ceiling. (This check used one copy of the model, not three.) So the scores depend on the gene knowledge it is given.
### Familiarity score (`confidence` in the code)
Each prediction carries a score the code calls `confidence`. It measures familiarity: how close the gene and cell type are to the training data. It is not a probability of being right. It tracks how well the model finds the changed genes (DES), in the cell types it trained on. It does not track PDS for the liver line or the stem cells. See the limits below.
### One copy against three
A single copy of the model (seed 0) is level with the three-copy average on K562, RPE1, Jurkat and H1 for DES and PDS. The intervals cross zero. It is a little worse on MAE everywhere.
On the liver line the single copy is clearly worse: PDS 0.581 against 0.609, a difference of +0.028 for three copies (interval +0.017 to +0.041), and 19.1% of ceiling against 24.4%. Any demo that runs one copy should say so.
## Where it falls short
- **Not a first look at the test genes.** They were scored three times: for our earlier version (v2.0), for one variant we tried, and for this version, and this version was chosen over that variant with those scores in view. About 15% of the K562 and RPE1 test genes (66 of 311 and 61 of 340) were also test genes in our earlier project. Read the scores as somewhat optimistic. In an independent re-check of v2.0, leaving those genes out moved our model, Scouter and the simple baseline about equally, and the PDS lead over Scouter held.
- **Two test genes were seen in training in another form.** STIL (K562 and RPE1) and PTPN1 (RPE1) were in training as switched-on single genes from the Norman 2019 data. That is 1 of 311 and 2 of 340 test genes. In the re-check of v2.0, leaving them out changed nothing beyond the third decimal; we have not re-scored this version without them.
- **The Scouter run may be under-trained.** We ran its official code with its default settings and our gene knowledge, and stopped it early on our validation genes. Its authors might get more from it.
- **A long way from the ceiling.** It reaches 24 to 49% of what repeating the lab experiment scores. Most of the signal is still not captured.
- **Liver line, size of change.** On the cell type it never trained on, MAE is 0.0833 against 0.0704 to 0.0729 for the simple baselines. It is worse by 0.010 to 0.013, with intervals clear of zero.
- **Stem cells.** The H1 test has only 22 genes. The model is level with the simple baseline on DES and PDS, and worse on MAE (+0.004).
- **Lower than our v2.0 on three cell types.** % of ceiling is 39.7 against 41.3 in K562, 48.7 against 51.2 in RPE1 and 36.4 against 38.7 in Jurkat. This version is higher on the liver line and the two-gene pairs.
- **The Scouter comparison has no interval.** The scores are side by side on the same test genes. We do not claim a significant difference for this version. On DES the two are level.
- **The familiarity score is narrow.** It tracks DES in every cell type. It does not track PDS for the liver line or the stem cells, where the intervals cross zero. In stem cells the more confident half scores lower on PDS: 0.641 against 0.688.
- **One training-fit check did not pass.** In Jurkat, the gene MED27 scored 0.874 against a 0.90 bar.
- **3,000 genes, not all 20,000.** Genes outside that set are not predicted.
- **Gene switches only.** No drugs and no doses.
- **Two genes: one test, one direction.** The two-gene result covers 24 pairs with genes switched on. Correlation there is level with simple addition.
- **One copy is weaker on the liver line.** 19.1% of ceiling against 24.4% for three copies.
## How it was trained
BioCell reads a group of unperturbed cells and the identity of one or two genes. It predicts the same group of cells after the switch. The gene's identity comes from three public knowledge sources: which proteins interact (STRING), which genes cells depend on together (DepMap), and what each gene is known to do (Gene Ontology). A separate input tells the model whether the gene is switched off or on.
The model is a transformer with 16.3M parameters. Three copies were trained with different random seeds, and their predictions are averaged. It predicts 3,000 genes shared across the datasets.
It trained on four cell types (K562, RPE1, Jurkat, H1) and on the Norman 2019 two-gene experiments. The liver line (HepG2) was held out for testing.
### Data sources
| Source | Used for | Licence |
|---|---|---|
| Replogle et al. 2022 | K562 and RPE1 cells, genes switched off | CC BY 4.0 (Figshare+ 10.25452/figshare.plus.20029387) |
| Nadig et al. 2025 | Jurkat cells for training; HepG2 cells for testing only | Public NCBI GEO data (GSE264667); no licence stated by the submitters |
| Arc Institute, Virtual Cell Challenge 2025 | H1 stem cells, genes switched off | CC0 1.0 (Arc Virtual Cell Atlas) |
| Norman et al. 2019 | K562 cells, one and two genes switched on | CC BY 4.0, through scPerturb (Zenodo 13350497) |
| STRING v12.0 | Gene knowledge: protein interactions; gene descriptions (UniProt, through STRING) | CC BY 4.0 (STRING and UniProt) |
| DepMap 24Q4 | Gene knowledge: genes that cells depend on together | CC BY 4.0 (Figshare+ 10.25452/figshare.plus.27993248) |
| Gene Ontology | Gene knowledge: what each gene does | CC BY 4.0 (GO and GOA, release 2026-05-21) |
The report: https://udgamlabs.com/research/biocell; the write-up: https://udgamlabs.com/blog/biocell. These sources do not endorse this model.
## Intended use and limitations
BioCell is a research tool. It is not medical advice. Do not use it for diagnosis or for treatment decisions.
**Intended use:** exploring how gene switches might change a cell, ranking ideas before an experiment, teaching, and comparing methods on the same test sets.
**Not intended for:** any clinical or patient decision, drug or dose prediction, or as a replacement for the experiment. A prediction is a hypothesis to test in the lab.
**Keep in mind:**
- All training cells are laboratory cell lines. Cell lines differ from cells in a person.
- Results on a cell type outside the five here have not been scored. The liver line shows that accuracy drops on an unseen cell type.
- Everything under "Where it falls short" applies.
## Licence
- **Weights and code** (`model_seed0..2.safetensors`, `config.json`, `predict.py`, `models.py`): Apache-2.0. See `LICENSE`.
- **Data files** (`inference_pack.npz`, `bio_atlas.json.gz`): CC BY 4.0. They hold data derived from the sources above. We changed it: genes were subset to 3,000 highly variable genes; control cells were sampled (200 per cell line) and normalised; STRING, DepMap and GO were compressed into 256-dimension embeddings; UniProt descriptions were shortened.
- The Jurkat and HepG2 control cells in the data file come from public NCBI GEO data (GSE264667, Nadig et al. 2025), for which the submitters state no licence.
- Credit each source when you use the model. The full text is in `CREDITS.md`.
## Citation
```bibtex
@misc{udgamlabs2026virtualcell,
title = {BioCell},
author = {Udgam Labs},
year = {2026},
url = {https://udgamlabs.com/models/biocell}
}
```
Please also cite the data and knowledge sources:
- Replogle JM, et al. Mapping information-rich genotype-phenotype landscapes with genome-scale Perturb-seq. Cell 185(14):2559–2575 (2022). doi:10.1016/j.cell.2022.05.013
- Nadig A, et al. Transcriptome-wide analysis of differential expression in perturbation atlases. Nature Genetics 57(5):1228–1237 (2025). doi:10.1038/s41588-025-02169-3. Data: NCBI GEO GSE264667
- Norman TM, et al. Exploring genetic interaction manifolds constructed from rich single-cell phenotypes. Science 365(6455):786–793 (2019). doi:10.1126/science.aax4438
- Roohani YH, et al. Virtual Cell Challenge: Toward a Turing test for the virtual cell. Cell 188(13):3370–3374 (2025). doi:10.1016/j.cell.2025.06.008
- Szklarczyk D, et al. The STRING database in 2023. Nucleic Acids Research 51(D1):D638–D646 (2023). doi:10.1093/nar/gkac1000
- DepMap, Broad Institute. DepMap 24Q4 Public. Figshare+ (2024). doi:10.25452/figshare.plus.27993248
- Ashburner M, et al. Gene Ontology: tool for the unification of biology. Nature Genetics 25(1):25–29 (2000). doi:10.1038/75556; and The Gene Ontology Consortium. The Gene Ontology knowledgebase in 2026. Nucleic Acids Research 54(D1):D1779–D1792 (2026). doi:10.1093/nar/gkaf1292
- Zhu O, Li J. Scouter predicts transcriptional responses to genetic perturbations with large language model embeddings. Nature Computational Science 6(1):21–28 (2026). doi:10.1038/s43588-025-00912-8 (comparison; code: github.com/PancakeZoy/scouter, commit fe2a73b)
- Arc Institute. cell-eval 0.8.2 (evaluator, vcc profile). https://github.com/ArcInstitute/cell-eval
---
**About Udgam Labs.** Udgam Labs is an independent AI research lab. We work from first principles: before we build, we understand why things work, whether we are training a model, fine-tuning one or applying AI to a new problem. Udgam (उद्गम) is Sanskrit for origin. [udgamlabs.com](https://udgamlabs.com)
|