eduKateSG · Why Science?
Resolve mixtures of cell types across spatial capture locations with a Bayesian model, then test how references, priors, technology and independent tissue evidence shape every abundance map
Reading routes
Science learning becomes useful when a familiar object or observation is turned into a system of quantities, mechanisms and claim limits. This guide owns one applied evidence-reading job inside eduKateSG’s wider Science estate. It connects naturally to Why Science Spatial Transcriptomics Tissue Coordinates Gene Expression Evidence; Why Science Single Cell Rna Sequencing Barcodes Transcriptome Heterogeneity Evidence; Why Science Slide Seq Dna Barcoded Bead Pucks Spatial Transcriptome Evidence; Why Science Pixel Seq Polony Gel Stamping Single Cell Spatial Evidence; Education Hub; Singapore Secondary School Directory; Career Adulthood Hub. It also keeps current school and public claims traceable to visible primary sources: cell2location primary study; cell2location PubMed record; Official Bayraktar Lab cell2location repository; Wellcome Sanger Institute cell2location overview; 2026 Singapore–Cambridge O-Level Biology syllabus; MOE G2/G3 Lower Secondary Science syllabus. The sources describe the scientific scope; this article translates that scope into a calm route for Primary Science, PSLE Science, Secondary Science, O-Level Science, STEM exploration, school choices and career pathways without inventing admission or employment outcomes.
cell2location is a Bayesian model for estimating the abundance of fine-grained cell types at spatial transcriptomics locations by combining spatial counts with reference signatures learned from single-cell RNA sequencing. The Nature Biotechnology study accounted for technical variation and shared information across locations, then demonstrated the approach in mouse brain, human lymph node and human gut. Those abundance maps are statistical estimates rather than direct cell photographs. Reference completeness, related cell types, prior assumptions, spatial assay sensitivity and orthogonal validation remain essential evidence boundaries.
Inside this guide
1–12 · Foundations and models
- 1. Begin with mixed capture locations
- 2. Learn reference signatures first
- 3. Use a Bayesian generative model
- 4. Account for technical variation
- 5. Borrow strength across locations
- 6. Estimate abundance, not merely presence
- 7. Keep the published demonstrations specific
- 8. Build a representative single-cell reference
- 9. Audit annotation evidence
- 10. Quality-control spatial counts
- 11. Align gene identifiers and biology
- 12. Choose priors from measurement
13–24 · Evidence, testing and applications
- 13. Fit the model reproducibly
- 14. Summarise posterior uncertainty
- 15. Practise with an invented location table
- 16. Read the mouse-brain result
- 17. Read the lymph-node result
- 18. Read the gut result
- 19. Analyse neighbourhoods after mapping
- 20. Replicate donors and specimens
- 21. Confirm with orthogonal evidence
- 22. Challenge an incomplete reference
- 23. Challenge correlated signatures
- 24. Challenge prior sensitivity
25–36 · Learning, decisions and pathways
- 25. Challenge technical confounding
- 26. Compare cell2location with Tangram
- 27. Compare with direct imaging
- 28. Treat absence as a detection statement
- 29. Build a classroom mixture model
- 30. Connect to Primary Science classification
- 31. Strengthen PSLE Science process skills
- 32. Extend into Secondary and O-Level Science
- 33. Use the topic for school choices
- 34. See the career pathways
- 35. Did You Know? Rare does not mean invisible
- 36. Keep the final claim bounded
Section 1 of 36
1. Begin with mixed capture locations
Many spatial transcriptomics spots contain RNA from several neighbouring cells. A spot-level count matrix therefore blends cell types and technical effects. cell2location estimates how much of each reference cell type is present at each location, converting mixed expression into an abundance map while keeping the result statistical rather than photographic.
Section 2 of 36
2. Learn reference signatures first
The model begins with single-cell RNA-sequencing data and estimates characteristic expression signatures for annotated cell types. These signatures should reflect the tissue and condition being mapped. Mislabelled cells, doublets, missing states or large batch differences can make two cell types appear interchangeable downstream.
Section 3 of 36
3. Use a Bayesian generative model
cell2location describes how reference signatures, cell abundances and technical factors could generate observed spatial counts. Bayesian inference estimates a posterior distribution over unknown quantities. That framework supports uncertainty-aware reasoning, but priors and model structure still matter; Bayesian does not mean assumption-free.
Section 4 of 36
4. Account for technical variation
Spatial platforms differ in detection sensitivity and background. The model includes components intended to separate biological abundance from location- or experiment-level technical variation. If a technical pattern aligns perfectly with anatomy or treatment, however, no equation can identify the cause without balanced design and controls.
Section 5 of 36
5. Borrow strength across locations
Related locations help stabilise estimates where counts are sparse. This can reveal fine cell populations more clearly than treating each spot alone. Sharing information also risks smoothing true sharp boundaries, so raw counts, posterior abundance and tissue morphology should be viewed together.
Section 6 of 36
6. Estimate abundance, not merely presence
A cell type can have a continuous estimated abundance at each location. Thresholding that value into present or absent discards uncertainty and can manufacture crisp borders. Report posterior summaries, detection limits and how results change across reasonable thresholds.
Section 7 of 36
7. Keep the published demonstrations specific
The study mapped fine-grained cell types in mouse brain, human lymph node and human gut. Reported examples included astrocyte subtypes in thalamus and hypothalamus, rare pre-germinal-centre B cells in lymph node and immune populations in gut follicles. These demonstrations do not guarantee identical resolution in another specimen.
Section 8 of 36
8. Build a representative single-cell reference
Sample the same tissue compartment, biological condition and relevant donors where possible. Retain enough cells for rare populations and related subtypes. A reference dominated by common cells can make rare signatures noisy and inflate confident assignments to the nearest abundant class.
Section 9 of 36
9. Audit annotation evidence
Every reference label should be supported by marker genes, clustering context and appropriate expertise. Closely related immune or glial populations require particular care. Preserve uncertain or hierarchical labels instead of forcing fine names that the reference data cannot distinguish.
Section 10 of 36
10. Quality-control spatial counts
Inspect tissue coverage, library size, genes detected, background, edge effects and histology. Spatial locations with little RNA can yield unstable mixtures; locations over folds or damaged areas can carry misleading signal. Map exclusions rather than hiding them in a spreadsheet.
Section 11 of 36
11. Align gene identifiers and biology
Reference and spatial datasets must share consistent gene identifiers and comparable biology. Duplicated symbols, missing genes and different genome annotations silently shrink the informative overlap. Record the exact shared set and assess whether subtype markers survived that intersection.
Section 12 of 36
12. Choose priors from measurement
Priors such as expected cells per location should be informed by spot size, nuclear density, tissue morphology or calibration. They regularise sparse problems, but a prior tuned for one tissue can distort another. Sensitivity analyses should vary plausible values and report which regions change.
Section 13 of 36
13. Fit the model reproducibly
Record software version, random seeds, hardware, training settings and diagnostics. Convergence or a low training loss does not validate cell identity. Inspect posterior stability across runs and compare inferred total abundance with independent estimates of tissue cellularity.
Section 14 of 36
14. Summarise posterior uncertainty
Posterior means make clean maps, but intervals or quantiles reveal where evidence is weak. Related cell types may trade abundance while their combined lineage remains stable. Report both fine and broad annotations when the data support different levels of certainty.
Section 15 of 36
15. Practise with an invented location table
This fictional table shows why abundance and confidence belong together.
| Location | Astrocyte estimate | B-cell estimate | Posterior uncertainty | First reading |
|---|---|---|---|---|
| L1 | 5.8 | 0.1 | low | astrocyte-rich |
| L2 | 2.9 | 2.7 | high | mixed, uncertain |
| L3 | 0.2 | 4.9 | low | B-cell-rich |
| L4 | 0.4 | 0.3 | high | weak evidence |
Values are invented and are not biological benchmarks.
Section 16 of 36
16. Read the mouse-brain result
In mouse brain data, the study resolved spatial distributions of astrocyte subtypes across regions including thalamus and hypothalamus. The evidence combines reference signatures and measured spatial counts. It should be described as model-supported localisation, with subtype markers and anatomy used as validation.
Section 17 of 36
17. Read the lymph-node result
In human lymph node, cell2location helped identify a rare pre-germinal-centre B-cell population and its tissue context. Rare-population claims need reference support, posterior evidence and orthogonal markers. A small estimated abundance is not automatically a newly discovered cell type.
Section 18 of 36
18. Read the gut result
The human gut analysis mapped fine immune populations in and around lymphoid follicles. Follicle morphology offers an independent frame for checking distributions. Donor variation and section choice still matter; many locations from one section are not many independent people.
Section 19 of 36
19. Analyse neighbourhoods after mapping
Once abundance maps exist, researchers may study which cell types co-occur. Define spatial radius and null model before testing. Co-location can suggest a tissue niche, but it does not prove communication, direction or causal influence.
Section 20 of 36
20. Replicate donors and specimens
Spots are nested inside sections, sections inside specimens and specimens inside people or animals. Generalisation should use independent biological units. Hierarchical models or specimen-level summaries prevent thousands of locations from creating false precision.
Section 21 of 36
21. Confirm with orthogonal evidence
Immunostaining, RNA imaging, morphology or another spatial platform can test selected cell distributions. Validation targets should include common, rare and confusingly similar populations. Use markers not already decisive in constructing the reference when possible.
Section 22 of 36
22. Challenge an incomplete reference
Remove a known cell type from a benchmark reference and observe where its signal goes. This reveals how the model redistributes missing biology. In real studies, keep an unresolved component and inspect residual expression instead of assuming the reference catalogue is complete.
Section 23 of 36
23. Challenge correlated signatures
Closely related cell types may share most expressed genes. Their individual abundances can be unstable even when the combined lineage is reliable. Report signature correlations, marker coverage and aggregated results so fine labels do not outrun molecular separation.
Section 24 of 36
24. Challenge prior sensitivity
Repeat inference across defensible expectations for cellularity, background and overdispersion. A robust region should persist in direction and broad location. If a rare population appears only under one convenient prior, present it as exploratory.
Section 25 of 36
25. Challenge technical confounding
Capture sensitivity, tissue thickness, batch and chemistry may vary across the slide. Compare abundance maps with library size, background and processing metadata. A cell type apparently enriched along an edge may instead mark weaker capture or different tissue contact.
Section 26 of 36
26. Compare cell2location with Tangram
cell2location estimates cell-type abundance through a Bayesian count model; Tangram learns a cell-to-space mapping and can project genes. Their outputs are not interchangeable. Concordance can support a broad pattern, while disagreement invites checks of reference, density, shared genes and model objectives.
Section 27 of 36
27. Compare with direct imaging
Direct RNA or protein imaging can localise selected markers without deconvolving a mixed sequencing spot. It offers a valuable test but has its own sensitivity, panel and segmentation limits. Agreement should be assessed on matched tissue scales rather than by visual impression alone.
Section 28 of 36
28. Treat absence as a detection statement
A near-zero estimate may mean true scarcity, missing reference signatures, low capture or strong uncertainty. Use positive controls and simulations to define the smallest population the workflow could recover. Say ‘not supported above this detection limit’ rather than ‘absent’.
Section 29 of 36
29. Build a classroom mixture model
Students mix coloured counters into paper ‘spots’, observe only combined colour totals and use reference recipes to estimate contents. Two similar recipes demonstrate why uncertainty rises. Changing the expected number of counters shows how priors influence an answer.
Section 30 of 36
30. Connect to Primary Science classification
Young learners can sort counters, compare mixtures and explain that the same total may come from different combinations. They practise distinguishing what was counted from what was inferred, a foundation for careful scientific language.
Section 31 of 36
31. Strengthen PSLE Science process skills
A fictional abundance table supports pattern comparison, variable control and evaluation of evidence. Pupils can identify the uncertain mixed location, suggest another marker and avoid claiming that a low estimate proves no cells exist.
Section 32 of 36
32. Extend into Secondary and O-Level Science
Biology supplies tissues and cell specialisation; Mathematics supplies probability and mixtures; Computing supplies iterative inference and visualisation. The method illustrates current interdisciplinary science while official syllabuses remain the source for examinable learning outcomes.
Section 33 of 36
33. Use the topic for school choices
Students can verify current subject offerings, science facilities and computing opportunities through official school sources. No named-school strength or admission outcome is inferred here. A research topic can guide questions at open houses without becoming an admissions claim.
Section 34 of 36
34. See the career pathways
Building cell maps involves experimental biologists, pathologists, statisticians, software engineers and data stewards. Each role requires training, reproducibility and teamwork. This guide shows connected disciplines; it does not promise a qualification, course place or career outcome.
Section 35 of 36
35. Did You Know? Rare does not mean invisible
A model can pool information across locations and reference genes to support a rare population that no single marker map makes obvious. That strength also demands careful validation, because a rare estimate may be sensitive to priors or a missing related cell type.
Section 36 of 36
36. Keep the final claim bounded
A defensible cell2location conclusion names reference construction, shared genes, priors, spatial assay, posterior uncertainty, cell-type resolution, technical covariates, validation and biological replication. It may report reproducible abundance enrichment. It should not call inferred counts direct cell observations or spatial co-occurrence causal communication.
A rigorous cell2location study begins with reference governance. Archive donor and tissue metadata, quality filters, doublet rules, annotation hierarchy, marker evidence and the numbers of cells per label. Rare and closely related populations need extra scrutiny. When reference labels are uncertain, model broader lineages alongside fine subtypes rather than presenting one resolution as unquestionably true.
Pre-register the spatial platform, specimens, reference construction, shared genes, expected cells per location, technical factors, training settings, posterior summary, primary abundance contrast and validation. Exploratory searches for new niches can follow, but confirmatory maps should be tested in independent tissue with locked choices. Priors should be justified before looking at desired anatomy.
Publish a paired data funnel: starting cells, quality-controlled cells, labels retained, spatial locations, tissue locations, genes shared, locations passing count thresholds and locations used in each result. Map failures and low-count areas onto histology. A posterior estimate in weakly measured tissue should not receive the same visual certainty as one supported by abundant counts.
Reference signatures should be inspected for specificity and correlation. Show top genes, detection rates and how signatures change across batches or donors. For cell types that remain highly correlated, report a combined abundance as the stable result and fine estimates as tentative. Mathematical separation cannot create distinctive markers that the assays did not measure.
Prior sensitivity belongs in the main analysis. Vary expected cellularity, background and other defensible hyperparameters, then quantify rank, direction and spatial overlap of abundance maps. A robust tissue compartment should persist across a reasonable range. A rare cell type that appears only with one narrow setting needs additional evidence before publication.
Posterior uncertainty should be summarised per cell type and region, not hidden behind mean maps. Report credible intervals or quantiles, stability across runs and trade-offs among related cell types. Thresholds for presence should be predeclared and accompanied by sensitivity. Continuous abundance often communicates the evidence better than a binary mask.
Technical covariates require spatial plots. Compare inferred abundance with total counts, detected genes, background, edge position, section thickness and batch. Balance groups across runs and include stable tissue controls. If a technical gradient overlaps a biological region, use independent measurements or experimental redesign rather than relying only on model adjustment.
Validation should test cell identity and quantity separately. Marker imaging may confirm where a population occurs; nuclear or cell counts test whether estimated abundance is calibrated. Select common, rare and confusable populations. Blinded pathology or image scoring and matched tissue sections reduce confirmation bias.
Neighbourhood analyses are downstream of abundance uncertainty. Propagate posterior samples into co-occurrence or niche statistics instead of treating mean abundance as fixed truth. Define spatial radius and null model before testing. A credible niche should appear across independent specimens and survive plausible thresholds and graph choices.
Statistics must respect the hierarchy of donors, specimens, sections and locations. Use biological replicates for generalisation and show every donor-level effect. Large numbers of spatial spots improve within-section detail but cannot compensate for a small or unrepresentative cohort. Report both within-specimen maps and between-specimen uncertainty.
Figures should pair histology, raw molecule density, reference-marker evidence, posterior mean, posterior uncertainty, sensitivity maps and validation. Use common colour scales where comparisons are intended. Mark excluded tissue and reference labels with insufficient support. A beautiful abundance gradient is persuasive only when readers can trace it through counts, signatures and priors.
Reproducibility materials include raw and processed matrices, reference annotations, signature estimates, gene intersection, model configuration, software commit, environment, random seeds, posterior samples, abundance matrices, validation images, analysis code and checksums. Clinical data may require controlled access, but metadata and analytical decisions should remain auditable.
Negative results should be calibrated with synthetic mixtures or held-out regions that resemble the observed platform. Estimate the smallest abundance and spatial area recoverable for each cell-type signature. A near-zero posterior may rule out a large well-marked population while leaving a sparse or poorly distinguished population unresolved. State that boundary directly.
A careful final sentence might say: ‘Across independently processed specimens, a prespecified cell2location model using quality-controlled reference signatures supported reproducible enrichment of defined cell populations, with posterior uncertainty, prior sensitivity and orthogonal markers reported.’ It should not call posterior abundance a direct cell count or turn spatial co-location into observed communication.
Contents · Previous section · Continue to the Science Learning Hub
