Methods and appendices · CellGemma

CellGemma methods: data preparation and evaluation protocol

The technical appendices describe cell representations, priors, data processing, decoders and benchmark protocols.

Representing a cell profile

The methods formulate transcriptional change as sequence generation. The control profile is normalized and converted into a cell sentence ordered by expression level. The model receives this cellular context, a perturbation description and response priors.

For genetic and cytokine perturbations, the authors serialize a biological neighborhood derived from STRING. Partners are selected using a confidence threshold, with a more permissive threshold for less-documented targets, and the network text is kept short enough for the prompt. Exact hyperparameters and formats are documented in the methods and supplementary tables.

Data preparation and aggregation

Processing depends on the dataset and assay. The report describes quality control, normalization and log transformation to construct the profiles used by the model. For some evaluations, cells are grouped into micro-pseudobulks by balancing groups through clustering in PCA space. The aim is to reduce single-cell noise without discarding experimental group structure.

Perturbed responses are matched to controls using the procedure described by the authors, including optimal-transport matching in relevant evaluations. Because filtering thresholds and preprocessing details are dataset-specific, consult the corresponding appendix before transferring the pipeline.

Generation and numerical reconstruction

The model generates a signed sequence of differentially expressed genes. A reconstruction MLP then maps that sequence to continuous values. The authors describe an asymmetric loss that penalizes overestimation of change magnitude more strongly.

Report ablations compare this reconstruction with a symmetric loss and isolate the effects of residual formulation, network priors and the decoder. The results cannot be reduced to the model weights alone: the prior, input format and decoder all contribute to the predictive pipeline.

Separating training and test data

The 32 evaluation settings span seven novelty regimes. Depending on the regime, a perturbation, cell context, donor, study, mechanism of action or gene pair is held out. This design aims to measure different forms of transfer and limit information leakage.

Comparisons are made at the level of conditional responses or population means where required by the benchmark. Cell-to-cell agreement should not be assumed if the protocol compares conditional summaries. Reproducing a score requires the exact split and model-eligibility rules.

Baselines and quality metrics

The paper compares CellGemma with published models and simpler references, including a no-change control and the mean response. Magnitude metrics (Pearson Δ, DEG R²) and gene-ranking metrics (including ROC-AUC) emphasize different qualities. Some measures are normalized against replicate agreement to estimate an empirical attainable ceiling.

Prediction availability varies with the capabilities required by each architecture. The raw score and the mean over supported cases are presented separately. See definitions and comparative findings.

A suggested route through the appendices

  1. M.1 — Model: cell-sequence representation, prompt, residual and reconstruction.
  2. Data and training sections: preprocessing, perturbation datasets and training parameters.
  3. Evaluation sections: splits, controls and metric definitions.
  4. Appendix A: ablations and additional comparisons, including scaling.
  5. Supplementary figures and tables: details by assay and regime.

The headings above describe the report’s technical topics; use the PDF pagination to locate the exact official version.

Open the methods in the official report (PDF) ↗.

Explore

CellGemma mind map

Open a branch, then select a page in the guide.

Drag to pan · zoom with buttons or two-finger pinch · use Tab and Enter on a keyboard

Branches open indexable pages about the paper, its methods and findings.