Zero-shot inference only: the pretrained Nicheformer encoder was used as a frozen cell-level feature extractor over all 391,736 cells of the five CCA blocks — nothing was trained or fine-tuned. 510 of 520 panel probes mapped into the model's 20,310-gene vocabulary (99.75% of panel counts). Pooling is the mean over real gene-token positions, which was verified bitwise-identical to the full 1500-token context; 41.1 min for the cohort on local CPU.
This run produced no niches. It is a cell-level embedding, so there is no niche map, no k sweep and no seed stability to explore — hence a report page rather than an explorer. Nicheformer's spatial-context tasks require fine-tuning or linear probing on niche labels.
| embedding | reference | n | ARI | NMI |
|---|---|---|---|---|
| all510 | Clusters | 391736 | 0.3285 | 0.5265 |
| all510 | Compartment | 391736 | 0.2902 | 0.5135 |
| all510 | CompartmentClusters | 391736 | 0.3008 | 0.5175 |
| all510 | block | 391736 | 0.1052 | 0.2789 |
| all510 | leiden | 391736 | 0.3218 | 0.5265 |
| defined299 | Clusters | 391736 | 0.3174 | 0.4975 |
| defined299 | Compartment | 391736 | 0.2573 | 0.4825 |
| defined299 | CompartmentClusters | 391736 | 0.2624 | 0.4867 |
| defined299 | block | 391736 | 0.1174 | 0.2837 |
| defined299 | leiden | 391736 | 0.3364 | 0.4977 |
| all510 | leiden_defined299 | 391736 | 0.4730 | 0.6593 |
The zero-shot embedding recovers substantial cell identity (NMI 0.527 against 17 hand-curated types, never having seen a CCA label) while carrying only weak block structure (NMI 0.279) — it is not simply encoding batch. defined299 is the variant that ranks only the 299 probes with a defined Xenium technology mean; it does not improve agreement.
| leiden_nf_coarse | n_cells | majority_cell_type | majority_frac |
|---|---|---|---|
| 0 | 22909 | T cells | 0.653 |
| 1 | 44541 | T cells | 0.327 |
| 2 | 60810 | Matrix-forming Fibroblasts | 0.438 |
| 3 | 45959 | Macrophage | 0.314 |
| 4 | 24280 | B cells | 0.879 |
| 5 | 33274 | Hepatocytes | 0.968 |
| 6 | 47 | Hepatocytes | 1.000 |
| 7 | 34 | Hepatocytes | 1.000 |
| 8 | 40 | Hepatocytes | 1.000 |
| 9 | 28 | Hepatocytes | 1.000 |
| 10 | 12006 | Myofibroblasts | 0.959 |
| 11 | 24538 | Cholangiocytes | 0.609 |
| block | n_cells | mean_gene_tokens_all510 | median_gene_tokens_all510 | max_gene_tokens_all510 | mean_gene_tokens_defined299 | padding_fraction_of_1497_context |
|---|---|---|---|---|---|---|
| cc25_d53 | 79773 | 38.44 | 37.00 | 117 | 23.71 | 0.97 |
| cc25_d113 | 113223 | 28.55 | 27.00 | 127 | 17.79 | 0.98 |
| cc25_i97 | 126205 | 36.47 | 33.00 | 111 | 20.20 | 0.98 |
| cc25_i147 | 34185 | 26.22 | 24.00 | 99 | 16.76 | 0.98 |
| cc25_p171 | 38350 | 42.73 | 41.00 | 120 | 25.51 | 0.97 |
With a 520-gene panel and ~34 genes detected per cell, 97–98% of the 1497-position context is padding. That is why the published all-position pooling (0.7 cells/s, ~149 h for this cohort) was not used.
defined299 variant bounds the effect and does not improve agreement (NMI 0.498 vs 0.527).