Skip to main content

CellGemma

Predicts how a cell’s gene expression changes after a perturbation: a drug, a gene knockdown or activation, a cytokine or a clinical treatment. It is Google DeepMind’s open model (Apache 2.0). The result is a hypothesis to test in the lab, not a validated prediction.

Model ID cellgemma

How it works​

CellGemma runs in two stages. A language model reads the baseline cell and the perturbation and writes a ranked list of the genes that change beyond the dataset-wide average response: +GENE for up, -GENE for down. A small decoder trained on one dataset then turns that list into expression and log-fold-change values for every gene.

Inputs​

  • decoder: the dataset the decoder was trained on. Pick the one that matches your assay and cell context. Decoders do not transfer across assays with different normalization or technology. Each decoder takes one kind of perturbation:

    DecodersPerturbation type
    tahoe, l1000, emeraldbay, sciplexsmall_molecule
    hepg2, jurkat, k562, rpe1, vccgene_knockdown
    normangene_activation
    parse, dongcytokine
    tischclinical
  • baseline: the cell the perturbation is applied to. Send {"control_cell": 0} (0 to 99) to use one of the sample control cells from the model card, available for tahoe and k562 only. Otherwise send {"expression": {"GAPDH": 3.2, ...}}: one pseudobulk sample as gene symbol to expression, protein-coding genes, library-size normalized, then log1p. Arca refuses raw counts, negative values, values above 15, and a sample with fewer than 1,000 expressed genes, and says which gene to look at. Symbols the decoder does not know are ignored and counted in the result; if more than a tenth of your expressed genes are unknown the request is refused. Use upper-case HGNC symbols. The decoder’s gene list is the key list of decoders/<name>/mean_delta_global.json in the Hugging Face repository.

  • perturbations: 1 to 8 entries, each with a unique id:

    • small_molecule: drug_name, smiles, concentration_um (micromolar).
    • gene_knockdown, gene_activation, cytokine: gene, an HGNC symbol (for example IFNG for interferon gamma).
    • clinical: treatment, a plain-text name.
    • combination: components, 2 or 3 perturbations of the decoder’s kind, each written in full.
  • samples (optional, 1 to 4): the model samples its answer at temperature 0.7, so each sample differs. Perturbations times samples is at most 16.

  • seed (optional): the same seed gives the same samples on the same GPU type.

Your baseline expression stays private​

A baseline can come from a patient sample. Arca does not log it and does not send it to analytics. It is stored with the job record like any other request so the job can run and appear in your job history, and it is only read by the model service that runs your job.

Results​

result.json lists, for each perturbation and sample, the ranked up and down genes (earlier means a larger predicted change), how many tokens were not decoder genes, and whether the model finished its list. baseline reports how many genes the decoder has, how many your cell expressed, and how many of your genes were ignored. predictions/<id>.tsv holds, for every decoder gene, the control expression, the mean-shift baseline, and the decoded expression and log fold change for each sample.

The decoded values are in the units of your input (library-size normalized, log1p). The log fold change includes the dataset-wide average response.

Speed and cost​

CellGemma runs on one GPU. A production test with one drug on a sample cell took about 231 seconds from queueing to completion, including startup, and used 47 seconds of run time. The model usually writes until its 8,192-token output cap on drug requests, so a short request costs about as much as a long one; 16 generations (8 perturbations times 2 samples) took 55 seconds of run time warm. This is one measurement, not a benchmark. Plan for minutes, not seconds, on a cold start.

Limits of the model​

  • Google DeepMind reports Pearson correlation of predicted against measured change on held-out splits of 10 public datasets, and states that predictions must be validated in the lab. Read its model card and technical report for the numbers; Arca has not measured accuracy on your data.
  • Research use only, not for clinical diagnosis or care.
  • Sample control cells exist only for tahoe and k562. The cytokine and clinical prompts follow the model card’s description of the format; Arca has not checked those outputs against measured data.

Settings​

settings of POST /submit-job and POST /validate-job with "type": "cellgemma". Unknown fields are refused, and an optional field you leave out takes the model's own default. GET /tools/cellgemma/schema returns the same fields as JSON Schema.

FieldTypeRequiredLimits
decoderstringyestahoe, l1000, emeraldbay, sciplex, hepg2, jurkat, k562, rpe1, vcc, norman, parse, dong, tisch
baselineobjectyessee the nested fields
perturbationsarrayyes1 to 8 items
samplesintegerno1 to 4
seedintegerno0 to 2147483647
  • decoder: the dataset the decoder was trained on, which fixes the perturbation kind (see the schema for the list).
  • baseline: {control_cell: 0-99} (sample control cells exist for the tahoe and k562 decoders only) or {expression: {GENE: value}}, your own pseudobulk, library-size normalized then log1p.
  • perturbations: entries with a unique id and a type matching the decoder (small_molecule entries carry drug_name, smiles and concentration_um), or a combination of 2 or 3. samples repeats each prediction.

Example request​

Panobinostat at 0.5 uM on a sample control cell with the tahoe decoder. Send it to validate-job for a quote, then to submit-job.

{
"jobName": "panobinostat-tahoe",
"type": "cellgemma",
"settings": {
"decoder": "tahoe",
"baseline": {
"control_cell": 0
},
"perturbations": [
{
"id": "panobinostat",
"type": "small_molecule",
"drug_name": "Panobinostat",
"smiles": "Cc1[nH]c2ccccc2c1CCNCc1ccc(/C=C/C(=O)NO)cc1",
"concentration_um": 0.5
}
]
}
}

Result files​

Checked against a real result.

  • result.json (JSON): results[] with one entry per perturbation (id, type) and its samples[]: ranked up and down gene lists (earlier is a larger predicted change), new_tokens, unrecognized_tokens and finished. Also baseline (genes, expressed_genes, ignored_genes), decoder, model, seed and phase_seconds.
  • predictions/*.tsv (TSV): One file per perturbation, named for its id: a row per decoder gene with control_expression, mean_shift_baseline and, for each sample n, predicted_expression_n and log_fold_change_n.

Scores:

  • unrecognized_tokens (result.json, results[].samples[].unrecognized_tokens; lower is better): Tokens of the list that were not genes the decoder knows.

  • There is no confidence score. The up and down lists are the model's own ranking, and log_fold_change_n in the TSV is the decoder's value for each gene.

  • finished is false when the list was cut at the 8,192-token limit instead of ending on its own. The captured run (panobinostat on a control cell, one sample) did this: it returned 2,048 up and 2,048 down genes with finished: false, so check it before treating a list as complete.

  • The TSV has a row for every decoder gene (19,720 for the Tahoe decoder), so it is about 700 KB per perturbation.

Runtime and limits​

A job gets at most 300 seconds of run time unless you send maxRuntimeS (up to 3,600 seconds with added credit); its maximum cost is held at that cap. The free tier allows up to 600 seconds. one drug (panobinostat) on a sample A549 control cell, one sample is estimated at $0.14274 (about 46 seconds); POST /validate-job quotes your own request for free. See Pricing.

Per-field limits​

  • drug_name: 1 to 100 characters, no control characters. smiles: 1 to 256 characters of SMILES alphabet. concentration_um: 0.0001 to 10,000.
  • treatment (clinical): 1 to 200 characters on one line. gene: an HGNC symbol.
  • Perturbation id: 1 to 64 letters, digits, _, . or -, unique in the request.
  • baseline.expression: at most 25,000 genes, each value 0 to 15, at least 1,000 above zero, symbols case-insensitive and not repeated.

Licence and benchmarks​

Apache 2.0 for the weights of google/cellgemma-e4b (its base model, Gemma 4 E4B, is also Apache 2.0), as the model card states. The card adds that the model is for research use and not for clinical use. For benchmarks, read Google DeepMind's technical report; Arca has not benchmarked it on your data.

Original Hugging Face repository