eduKateSG · Why Science?
Integrate spatial-transcriptomics datasets with graph attention and triplet learning, then align slices without confusing corrected embeddings, landmark choices or reconstructed stacks with direct anatomical truth
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 Stagate Graph Attention Autoencoders Spatial Domain Evidence; Why Science Graphst Self Supervised Graph Learning Spatial Domain Evidence; Why Science Giotto Spatial Omics Workflows Cell Neighbourhood Evidence; Education Hub; Singapore Secondary School Directory; Career Adulthood Hub. It also keeps current school and public claims traceable to visible primary sources: STAligner primary study; STAligner PubMed record; Official STAligner repository; Official STAligner documentation; 2026 Singapore–Cambridge O-Level Biology syllabus; 2026 MOE G2 Computing 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.
STAligner is a graph-attention method for integrating and aligning multiple spatial-transcriptomics datasets across samples, technologies, conditions and developmental stages. Its 2023 Nature Computational Science paper learns spatially aware, batch-corrected embeddings and uses cross-dataset relationships to support consensus domains and slice alignment, including three-dimensional reconstruction. Integration and registration remain separate evidence steps: genes, graphs, triplet selection, batch–biology confounding, landmarks, coordinate transforms and independent anatomy constrain the final claim.
Inside this guide
1–12 · Foundations and models
- 1. Begin with integration and alignment as two jobs
- 2. Represent each slice as a spatial graph
- 3. Use graph attention to weight neighbours
- 4. Learn batch-corrected embeddings
- 5. Use triplet learning across datasets
- 6. Identify consensus spatial domains
- 7. Keep the published scope specific
- 8. Audit identifiers and coordinate orientation
- 9. Map quality and batch before integration
- 10. Harmonise gene features cautiously
- 11. Build graphs in physical context
- 12. Define cross-dataset pairs transparently
13–24 · Evidence, testing and applications
- 13. Track attention and triplet optimisation
- 14. Keep registration transformations separate
- 15. Practise with an invented integration table
- 16. Read integrated embeddings with two metrics
- 17. Read consensus domains without forcing sameness
- 18. Align slices with explicit landmarks
- 19. Build three-dimensional stacks conservatively
- 20. Compare conditions after protecting biology
- 21. Replicate across donors and technologies
- 22. Audit graph scale
- 23. Audit triplet and anchor sensitivity
- 24. Audit batch–biology confounding
25–36 · Learning, decisions and pathways
- 25. Validate geometry and molecular identity
- 26. Compare with non-integrated and simpler baselines
- 27. Preserve failed and unmatched regions
- 28. Turn alignment disagreements into experiments
- 29. Build a classroom model before code
- 30. Start with Primary Science habits
- 31. Use PSLE Science to practise claim limits
- 32. Connect Secondary and O-Level Science
- 33. Let Computing support the science
- 34. Choose school opportunities by fit
- 35. See the connected career families
- 36. Finish with a bounded scientific claim
Section 1 of 36
1. Begin with integration and alignment as two jobs
Multiple spatial datasets differ through biology, technology and handling. STAligner first learns a shared representation and then supports coordinate alignment. A corrected embedding and a registered tissue stack answer related but distinct questions.
Section 2 of 36
2. Represent each slice as a spatial graph
Spots become nodes with expression features and coordinate-defined edges. Graph structure helps preserve local tissue organisation during integration. The edges remain analytical neighbourhoods, not observed cell contacts.
Section 3 of 36
3. Use graph attention to weight neighbours
Attention layers learn which neighbouring signals matter for a spot representation. Learned weights can improve flexibility, yet they are not automatically biological interaction strengths. They depend on features, training and graph construction.
Section 4 of 36
4. Learn batch-corrected embeddings
The method seeks a latent space where related domains across datasets are closer despite technical differences. Removing batch is useful only if genuine condition, stage or platform biology remains available.
Section 5 of 36
5. Use triplet learning across datasets
Triplet relationships encourage matched spots or domains to align while separating dissimilar ones. The way positives and negatives are identified shapes integration. Incorrect matches can propagate expected anatomy into the representation.
Section 6 of 36
6. Identify consensus spatial domains
A shared embedding can support domains repeated across samples and reveal differences. Cluster algorithm, resolution and batch correction remain downstream choices. Consensus should not erase specimen-specific regions.
Section 7 of 36
7. Keep the published scope specific
The 2023 Nature Computational Science paper evaluated integration across conditions, technologies and developmental stages and demonstrated slice alignment and 3D reconstruction. Those examples establish capabilities under reported datasets, not universal registration accuracy.
Section 8 of 36
8. Audit identifiers and coordinate orientation
Confirm barcode order, coordinate units, axis direction, duplicates and slice labels. Keep a raw-to-node mapping for each dataset. A graph model can produce stable embeddings from consistently misassigned coordinates.
Section 9 of 36
9. Map quality and batch before integration
Display depth, detected genes, background, tissue damage and acquisition fields for every sample. State which biology is confounded with batch. No algorithm can unambiguously separate them without design or external information.
Section 10 of 36
10. Harmonise gene features cautiously
Document gene intersection, variable-feature selection, normalisation and scaling. Cross-technology integration may leave a small shared set. Missing informative genes can force alignment through generic housekeeping structure.
Section 11 of 36
11. Build graphs in physical context
Report neighbour number or radius, symmetrisation, distance units and tissue-gap rules. Compare edge lengths across platforms with different spot density. Identical k values do not imply identical biological scale.
Section 12 of 36
12. Define cross-dataset pairs transparently
Explain how mutual nearest neighbours, domains or other anchors generate training relationships. Protect a held-out set for evaluation. Anchors chosen from labels cannot later serve as independent validation.
Section 13 of 36
13. Track attention and triplet optimisation
Save losses, early stopping, random seeds, graph settings, latent dimension, software commit and hardware. Similar loss can conceal different cross-dataset matches. Quantify embedding and domain stability.
Section 14 of 36
14. Keep registration transformations separate
After embedding integration, spatial alignment may use matched spots or landmark domains and coordinate transforms. Record this second-stage configuration. A strong embedding does not guarantee a geometrically accurate transform.
Section 15 of 36
15. Practise with an invented integration table
This fictional table teaches diagnosis, not benchmarking.
| Pair | Batch mixing | Domain conservation | Landmark error | Seed stability | First reading |
|---|---|---|---|---|---|
| A–B | high | high | small | high | supported |
| B–C | high | medium | local shift | high | possible overcorrection |
| C–D | low | high | medium | medium | incomplete integration |
| D–E | high | low | large | low | reject alignment |
Section 16 of 36
16. Read integrated embeddings with two metrics
Measure technical mixing and biological conservation separately. Maximum mixing is undesirable when datasets represent real conditions or stages. A method should remove nuisance variation while retaining supported differences.
Section 17 of 36
17. Read consensus domains without forcing sameness
Repeated domains across samples can support a shared atlas. Keep an unresolved or sample-specific path for regions without convincing counterparts. Not every tissue must contain every domain.
Section 18 of 36
18. Align slices with explicit landmarks
When landmark domains or matched spots guide coordinate registration, publish their selection and uncertainty. Manual expertise can be valuable, but it should not disappear behind an automated-looking final stack.
Section 19 of 36
19. Build three-dimensional stacks conservatively
Show measured planes, slice spacing and transforms. Inspect crossings, compression and tearing. A visually continuous volume may still contain local misregistration or developmental differences between samples.
Section 20 of 36
20. Compare conditions after protecting biology
Differential analysis on integrated data should return to original counts and specimen-level replication. The embedding can organise comparisons; it should not become the measurement scale for every biological test.
Section 21 of 36
21. Replicate across donors and technologies
Evaluate same-platform technical replicates, independent biological specimens and, separately, cross-technology data. These tests answer different questions. A success in one category cannot certify all others.
Section 22 of 36
22. Audit graph scale
Vary k or radius within a prespecified range and measure domains, anchors and alignment. Broad graphs may oversmooth compact structures; narrow graphs may fragment sections and reduce cross-sample matches.
Section 23 of 36
23. Audit triplet and anchor sensitivity
Repeat representative runs with stricter and looser cross-dataset matches. Track which spots repeatedly anchor and which migrate. Alignment dominated by a few anchors needs explicit review.
Section 24 of 36
24. Audit batch–biology confounding
Create negative controls where condition and batch are deliberately inseparable, or analyse held-out conditions. If the model removes known positive biology, narrow its use and report the failure.
Section 25 of 36
25. Validate geometry and molecular identity
Use histology, protein imaging, held-out genes and known anatomy. Validate both where spots land and what domains mean. Agreement in the embedding alone is not independent evidence.
Section 26 of 36
26. Compare with non-integrated and simpler baselines
Show per-sample clustering, a non-graph integration and a simple rigid registration under matched inputs. STAligner should add stable cross-dataset structure without creating implausible geometry.
Section 27 of 36
27. Preserve failed and unmatched regions
Some areas may lack anchors because of real biology, damaged tissue or missing features. Leave them unmatched when necessary. Forced completeness can turn uncertainty into a false shared atlas.
Section 28 of 36
28. Turn alignment disagreements into experiments
Select a region that changes identity or position across settings, then collect targeted imaging or another section. Disagreement reveals which evidence is missing and can guide the most informative next measurement.
Section 29 of 36
29. Build a classroom model before code
Give students three graph maps of related but non-identical neighbourhoods. Ask them to preserve local streets while aligning common landmarks, then show how one wrong landmark warps the whole map. Keep measured values, derived quantities, assumptions and conclusions in separate columns. The goal is not to imitate specialist software; it is to make the evidence chain visible enough to question.
Section 30 of 36
30. Start with Primary Science habits
Primary Science already teaches the habits beneath STAligner: observe carefully, compare fairly, record consistently and avoid a conclusion larger than the test. A simple map of plant height, shade or water can show that location changes interpretation without introducing advanced statistics.
Section 31 of 36
31. Use PSLE Science to practise claim limits
PSLE Science rewards links between observation, process and explanation. STAligner offers a modern reminder that a pattern is not automatically a cause. Students can ask what was changed, what was measured, what stayed uncontrolled and what extra observation would distinguish competing explanations.
Section 32 of 36
32. Connect Secondary and O-Level Science
Secondary Science and O-Level Biology develop cells, organisation, variation, experimental design and evaluation. STAligner adds a contemporary case where molecular measurements and tissue position meet. The useful learning outcome is controlled reasoning, not memorising a package name.
Section 33 of 36
33. Let Computing support the science
Computing contributes data structures, algorithms, visualisation, optimisation and reproducibility. Biology supplies the specimen, mechanism and validation. STAligner shows why reliable code is necessary but insufficient: an algorithm can execute perfectly on mismatched coordinates or a biased sample.
Section 34 of 36
34. Choose school opportunities by fit
Families should verify research programmes, Biology, Computing, mathematics, laboratory access, CCAs and mentorship on current official school and MOE pages. A school mention of genomics, AI or data science does not guarantee depth, admission or a career outcome. Look for sustained inquiry, careful teaching, accessible mentoring and time to explain evidence.
Section 35 of 36
35. See the connected career families
Reasoning used in STAligner appears in graph machine learning, spatial biology, developmental biology, pathology, biomedical imaging and data engineering. Routes can pass through polytechnic, junior college, university or continuing education with different blends of biology, mathematics, statistics, computing and communication. Current course requirements must be checked directly; one project cannot guarantee entry or employment.
Section 36 of 36
36. Finish with a bounded scientific claim
A defensible conclusion says exactly what STAligner estimated and under which inputs, settings and specimens. STAligner learns shared embeddings and supports coordinate registration; it does not make attention weights interactions, corrected batches identical tissues or reconstructed stacks directly measured volumes. Report uncertainty, sensitivity, replication, negative results and orthogonal validation together. That boundary is not weakness; it is what makes the result testable and reusable.
A rigorous STAligner project begins with a multi-dataset contract. Record biological condition, donor or animal, technology, batch, specimen, coordinate units, expression layer, gene intersection, graph rule and intended comparison. Mark every factor that is confounded with batch; integration cannot mathematically recover a contrast absent from experimental design.
Pre-register separate success criteria for integration and registration. Technical mixing, biological conservation, consensus-domain recovery, landmark error and 3D geometry are not interchangeable. A shared embedding can succeed while coordinate alignment fails, or a registration can look plausible while erasing condition-specific molecular structure.
Publish quality maps for each dataset before graph learning. Depth, detected genes, background, damaged areas, acquisition fields and masks should be shown in the original coordinate system. Graph attention can propagate locally coherent technical variation as readily as biological structure.
Cross-dataset triplets or anchors require an audit trail. Record how positives and negatives are constructed, which genes influence them and how many spots repeatedly serve as anchors. Known domain labels used to select anchors cannot also act as independent proof of alignment.
Integration evaluation should put batch removal and biological conservation side by side. Use technical replicates as positive controls for mixing and known condition or developmental signals as positive controls for preservation. Maximum mixing is not the objective when biology genuinely differs.
Registration evaluation needs coordinate evidence. Show landmarks, residual vectors, local distortion, unmatched regions and sensitivity to landmark choice. If iterative closest point or another transform follows embedding integration, document that second stage rather than attributing every geometric result to the neural network.
Graph sensitivity should compare physical edge lengths, not only k. Different technologies and spot densities make the same neighbour number represent different tissue scales. Block edges across tears or disconnected regions and evaluate whether domains persist under a nearby graph choice.
Seed and optimisation stability should be measured using neighbours, clusters, anchors and downstream transforms after accounting for latent rotations. Similar loss curves do not guarantee the same tissue correspondence. Preserve run-to-run uncertainty at boundaries and rare domains.
Three-dimensional stacks should show measured planes, spacing and transformations. Keep condition and specimen labels visible. Never present a multi-donor integrated volume as one continuous organism, and do not interpolate through unmeasured tissue without explicit notation.
Reproducibility materials include raw and processed matrices, coordinates, masks, graph edges, feature lists, anchors or triplets, model configuration, seeds, checkpoints, embeddings, domains, transforms, landmark tables, evaluation, software commit, hardware and checksums. Archive failed or partially matched samples.
Did you know? Attention weights are sometimes described as the model ‘looking’ at important neighbours. Mathematically they are learned coefficients inside a prediction system. They may help performance, but they do not automatically reveal biological influence or cellular communication.
A bounded conclusion might say: ‘STAligner produced a shared spatial representation and slice registration that retained prespecified biological controls, reduced supported technical variation and remained stable across graph, anchor, seed and landmark checks.’ It should not turn attention into mechanism, mixing into equivalence or a reconstructed stack into directly measured 3D anatomy.
A helpful student exercise is to integrate two synthetic slices that share anatomy but contain one deliberately shifted biological domain. If settings force complete mixing, the true difference disappears; if settings preserve everything, technical batches remain separate. Plotting both outcomes teaches the central integration trade-off: remove variation supported as technical while retaining variation supported as biology.
Technology mixing needs special care. Platforms differ in spot size, gene sensitivity and field of view, so their graphs encode different physical neighbourhoods. Harmonise gene identifiers, document feature selection and compare edge-length distributions in real units. When possible, evaluate within-technology replicates before asking the model to bridge technologies. That sequence reveals whether success comes from biological correspondence or from a platform shortcut.
Consensus domains should be audited with a disagreement map. For every location, show whether domain assignments agree across seeds, graph choices and integration subsets. Boundary uncertainty is scientifically informative: it may identify gradual transitions, sparse sampling or inconsistent registration. Publishing only the final hard label hides the very places where another assay or denser section could be most valuable.
Leave-one-sample-out analysis is especially useful in a multi-slice study. Build the shared representation without one slice, then project or align the held-out slice using a documented procedure. Compare landmarks, neighbourhoods and domain recovery with the full analysis. This test asks whether the learned organisation generalises or merely memorises the particular collection used during training.
For developmental or disease comparisons, preserve the experimental hierarchy. Spots are nested within sections, sections within specimens and specimens within conditions. Thousands of spots do not replace independent biological replicates. Downstream uncertainty and hypothesis tests should reflect specimens, while integrated embeddings serve as exploratory and alignment tools rather than automatic evidence of population-level effects.
The evidence ladder runs from stable embeddings, to retained positive controls, to accurate held-out landmarks, to replication across specimens or technologies. Independent histology and perturbation add stronger rungs. This ladder keeps graph attention in its proper role: a powerful computational component that can organise difficult data while leaving causal interpretation to converging experiments.
Before publication, prepare a model card for the analysis: intended use, unsuitable uses, training datasets, preprocessing, graph construction, hyperparameters, compute, evaluation, known failures and responsible contact. A model card will not solve biological ambiguity, but it prevents a reusable embedding from losing its experimental context when shared. It also gives future researchers a clear checklist for deciding whether the workflow fits a new tissue or technology.
Contents · Previous section · Continue to the Science Learning Hub
