eduKateSG · Why Science?
Connect every image pixel to a mass spectrum—while preserving coordinates, acquisition geometry, binary arrays, units, hashes and processing history
Choose the closest route, then return to the full index whenever you need the wider evidence chain.
Science learning becomes powerful when students can tell a measured pattern from a model, a statistical decision from a mechanism, and a useful lead from a finished conclusion. imzML is a common data format for mass spectrometry imaging, where measurements are tied to spatial positions across a sample. The official repository describes the project as a common MSI format and publishes the imzML 1.1.0 schema with controlled-vocabulary and reporting resources. The format uses an XML metadata file together with an external binary data file so spectra and coordinates can be exchanged without embedding every numerical array in the XML. A colourful ion image is a computed view of selected spectral values; it does not by itself prove molecular identity, tissue mechanism or clinical meaning. This guide supports Primary Science, PSLE Science, Secondary Science, O-Level Science and STEM education as a longform evidence-reading route; it is not medical advice, a laboratory protocol, an admission promise or a career guarantee.
Related eduKate reading: mzML and open mass-spectrometry data; mass spectrometry, ionisation and mass-to-charge evidence; mzQC and mass-spectrometry quality metrics; Science Learning Hub; Education Hub; STEM Education; Careers by Subject Capability.
Primary and official sources checked on 12 October 2026: imzML official project website, checked 12 October 2026; imzML official specification repository and version 1.1.0 schema, checked 12 October 2026; HUPO-PSI PSI-MS controlled vocabulary, checked 12 October 2026; 2026 Singapore–Cambridge O-Level Biology syllabus; MOE G2/G3 Lower Secondary Science teaching and learning syllabus; 2026 MOE G2 Computing syllabus. Specifications, vocabularies, tools and recommendations can change, so preserve dated documentation, exact source data and software versions.
A deeper reading route
Mass spectrometry imaging samples many positions across a surface and records a spectrum at each position. The result is neither just a photograph nor just a collection of unrelated spectra. imzML joins spatial coordinates, acquisition metadata and spectral arrays so software can reconstruct ion-distribution maps from a shared representation.
The format separates descriptive XML from external binary data, commonly using paired .imzML and .ibd files. The XML records metadata, coordinates and references to numerical arrays; the binary file stores large mass-to-charge and intensity arrays efficiently. The pair is one scientific object and must travel together.
A pixel is a sampling position, not automatically a biological cell. Pixel size, raster spacing, laser spot, tissue preparation and acquisition geometry determine what the position represents. Reviewers should avoid translating a coordinate into a cellular claim without microscopy, segmentation and appropriate validation.
Coordinates usually include x and y and may include z or additional context. Origin, indexing convention and physical units matter. Swapping axes, assuming zero-based when the file uses one-based positions, or ignoring uneven spacing can mirror, shift or stretch an image while leaving plausible colours.
Each spectrum may reference binary arrays by external offset, encoded length, data type and compression information. Readers must seek to the correct byte positions and decode with the declared numerical representation. One wrong offset can associate a pixel with another spectrum.
The XML and binary file can be linked through identifiers and checksums. These integrity fields help detect mismatched pairs or altered bytes. Renaming is usually harmless only if references remain correct; substituting a same-sized binary file is scientifically catastrophic even when the XML opens.
Continuous and processed storage strategies organise mass axes differently. In a continuous representation spectra may share a common mass-to-charge axis; in a processed representation each spectrum can carry its own axis. Software must follow the declared model rather than assume every pixel has identical array positions.
An ion image is generated by choosing a mass-to-charge window and aggregating intensity at each coordinate. Window width, calibration, baseline treatment, normalisation and interpolation can change the displayed pattern. Every figure should preserve those settings and the raw or minimally processed evidence behind it.
Colour maps are visual encodings, not measurements. Automatic scaling can make weak noise look dramatic or hide between-sample differences. Include units, scale, missing-pixel handling and a consistent comparison rule. Colour choices should remain readable and should not imply categories that the data do not support.
Molecular annotation often depends on accurate mass, isotope patterns, fragmentation, standards or database matching. A bright feature at one mass-to-charge value is not automatically a named metabolite, lipid or peptide. Report identification confidence separately from spatial intensity.
Sample preparation affects delocalisation, ion suppression and extraction. Matrix application, washing, section thickness and surface condition can create spatial artefacts. imzML can preserve relevant metadata, but the file format cannot repair a poorly controlled specimen.
Registration with histology or another image requires coordinate transforms and landmarks. A pleasing overlay may be wrong if scale, rotation, cropping or deformation is undocumented. Preserve the original images, transform parameters and residual error rather than saving only the final composite.
For students, imagine a map where every square contains a tiny spectrum. Selecting one mass-to-charge band colours the squares by signal. The model makes spatial data approachable while showing why coordinate systems, scales and honest legends matter.
A classroom activity can use paper grids and short numerical spectra. Students build an ion map, then test how a wider window, swapped axis or normalisation changes the picture. The exercise connects chemistry, coordinate geometry, arrays and visual literacy without using sensitive samples.
Validation should compare declared spectrum count with coordinate count, resolve every external offset, verify array lengths and ranges, test checksums, inspect representative pixels and reconstruct a known ion image. It should also preserve missing or masked positions rather than silently filling them.
A reproducible package includes paired files, schema and CV releases, acquisition geometry, sample preparation, calibration, processing commands, normalisation, mass window, image scale, registration transforms, validation report and hashes. These receipts separate data from later visual choices.
Privacy can arise when tissue images, labels or metadata connect to participants. Spatial patterns may be sensitive even after obvious names are removed. Apply consent, access control and de-identification policies before public sharing.
The optimistic promise of imzML is that spatial spectra can move between tools without losing their map. That openness supports new questions and independent checks, provided teams preserve the pair, the coordinate model and the evidence limits.
Spatial resolution is more than pixel count. The effective detail in an ion image depends on sampling pitch, beam or spray size, analyte diffusion, section preparation and signal quality. Interpolating a coarse grid onto a smooth image can improve presentation without creating new measured locations. Authors should state both the acquisition spacing and any display resampling so readers can separate recorded resolution from graphical smoothness.
Comparing two ion images requires a common rule. Independent auto-scaling can make weak and strong signals look equally bright, while one shared scale may hide subtle patterns. Researchers should decide whether the question concerns within-image localisation or between-sample magnitude, then choose and disclose the scale accordingly. Values, colour limits and normalisation should remain downloadable so the visual judgement can be checked numerically.
Coordinate registration deserves a verification receipt. At least several landmarks should be traced from the original optical or histological image through cropping, rotation, scaling and deformation into the mass-spectrometry grid. Residual disagreement should be measured rather than hidden. When tissue warping is substantial, a beautiful overlay is a hypothesis about alignment, not a perfect map of molecular position.
For classroom use, students can reconstruct the same fictional dataset under two mass windows and two colour scales. They quickly see that a pattern is partly measurement and partly a declared viewing choice. The lesson is cheerful rather than suspicious: transparent settings let different readers reproduce the picture, debate it and discover more from the same spatial evidence. That is scientific visual literacy in action.
| Stage | Question | Evidence | Responsible output |
|---|---|---|---|
| Acquire | Where was each spectrum measured? | Pixel coordinates, geometry and acquisition metadata | A spatial sampling record |
| Store | Where are numerical arrays kept? | XML references plus external binary offsets and types | A paired data object |
| Render | How is an ion image made? | Mass window, intensity rule, scale and missing pixels | A reproducible visualisation |
| Interpret | What can the pattern support? | Calibration, identification, controls and registration | A bounded spatial claim |
Inside this guide
1–12 · Foundations and design
- 1. Start with the spatial question
- 2. Treat the pair as one object
- 3. Record format version
- 4. Read dataset identity
- 5. Read coordinate axes
- 6. Read physical units
- 7. Read pixel geometry
- 8. Read spectrum references
- 9. Read binary offsets
- 10. Read encoded lengths
- 11. Read numerical types
- 12. Read compression
13–24 · Models and estimation
- 13. Distinguish continuous storage
- 14. Distinguish processed storage
- 15. Read mass calibration
- 16. Read intensity meaning
- 17. Build an ion image
- 18. Choose an honest colour scale
- 19. Handle missing pixels
- 20. Document normalisation
- 21. Document smoothing and interpolation
- 22. Validate paired-file integrity
- 23. Validate spectrum-coordinate counts
- 24. Validate a known image
25–36 · Diagnostics and interpretation
- 25. Protect sensitive specimens
- 26. Separate pixel from cell
- 27. Separate signal from identity
- 28. Connect to Primary Science
- 29. Connect to Secondary Science
- 30. Connect to mathematics
- 31. Connect to computing
- 32. Connect to pathways
- 33. Did you know?
- 34. Write a reader-ready image note
- 35. Build a validation ladder
- 36. Finish with a reproducible bundle
Section 1 of 36
1. Start with the spatial question
imzML connects mass spectra to sampling positions.
Working checkpoint — imzML: Name sample and intended map. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Section 2 of 36
2. Treat the pair as one object
The XML and external binary file are jointly required.
Working checkpoint — mass spectrometry imaging: Keep them together and hashed. Read every coloured pixel beside its spectrum, mass window, scale, missing-data rule and molecular annotation evidence.
For future study, connect chemistry to microscopy, coordinates and computing while checking official pathways separately.
Section 3 of 36
3. Record format version
The official repository publishes an imzML 1.1.0 schema.
Working checkpoint — spatial spectrum: Pin schema and CV releases. Preserve raw coordinates and spectra; a rendered image is not the complete spatial measurement.
For scientific writing, cite paired files, geometry, mass window, processing, scale and identification confidence.
Section 4 of 36
4. Read dataset identity
Identifiers and integrity metadata connect the paired files.
Working checkpoint — pixel coordinate: Verify the exact partner file. Separate spatial signal from molecular identity, tissue mechanism and clinical meaning.
For students, ask which spectrum, coordinate and colour rule produced each pixel.
Section 5 of 36
5. Read coordinate axes
x, y and possible z positions locate spectra.
Working checkpoint — ibd binary file: Document origin and index convention. Treat axes, units, offsets, precision and orientation as scientific inputs: one silent swap can redraw the tissue.
For parents, ask whether a striking image keeps its scale and evidence chain visible.
Section 6 of 36
6. Read physical units
Pixel number and physical distance are not interchangeable.
Working checkpoint — ion image: Record unit and scale. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Section 7 of 36
7. Read pixel geometry
Raster spacing and spot size shape spatial resolution.
Working checkpoint — imzML: Distinguish sampling from cell size. Read every coloured pixel beside its spectrum, mass window, scale, missing-data rule and molecular annotation evidence.
For future study, connect chemistry to microscopy, coordinates and computing while checking official pathways separately.
Section 8 of 36
8. Read spectrum references
Each coordinate points to numerical arrays in the binary file.
Working checkpoint — mass spectrometry imaging: Validate every external reference. Preserve raw coordinates and spectra; a rendered image is not the complete spatial measurement.
For scientific writing, cite paired files, geometry, mass window, processing, scale and identification confidence.
Section 9 of 36
9. Read binary offsets
Offsets locate array bytes within the external file.
Working checkpoint — spatial spectrum: Test boundary and overlap. Separate spatial signal from molecular identity, tissue mechanism and clinical meaning.
For students, ask which spectrum, coordinate and colour rule produced each pixel.
Section 10 of 36
10. Read encoded lengths
Declared lengths must match data type and array count.
Working checkpoint — pixel coordinate: Reject truncated arrays. Treat axes, units, offsets, precision and orientation as scientific inputs: one silent swap can redraw the tissue.
For parents, ask whether a striking image keeps its scale and evidence chain visible.
Section 11 of 36
11. Read numerical types
Precision and byte representation affect decoded values.
Working checkpoint — ibd binary file: Use the declared encoding. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Section 12 of 36
12. Read compression
Compressed arrays require compatible, correctly ordered decoding.
Working checkpoint — ion image: Test an independent reader. Read every coloured pixel beside its spectrum, mass window, scale, missing-data rule and molecular annotation evidence.
For future study, connect chemistry to microscopy, coordinates and computing while checking official pathways separately.
Section 13 of 36
13. Distinguish continuous storage
Shared mass axes can reduce repeated coordinates.
Working checkpoint — imzML: Confirm the declared model. Preserve raw coordinates and spectra; a rendered image is not the complete spatial measurement.
For scientific writing, cite paired files, geometry, mass window, processing, scale and identification confidence.
Section 14 of 36
14. Distinguish processed storage
Per-spectrum mass axes can differ across pixels.
Working checkpoint — mass spectrometry imaging: Do not align by array index alone. Separate spatial signal from molecular identity, tissue mechanism and clinical meaning.
For students, ask which spectrum, coordinate and colour rule produced each pixel.
Section 15 of 36
15. Read mass calibration
Small mass errors can move signals between image windows.
Working checkpoint — spatial spectrum: Preserve calibration details. Treat axes, units, offsets, precision and orientation as scientific inputs: one silent swap can redraw the tissue.
For parents, ask whether a striking image keeps its scale and evidence chain visible.
Section 16 of 36
16. Read intensity meaning
Intensity is instrument response under stated acquisition and processing.
Working checkpoint — pixel coordinate: Avoid concentration claims without calibration. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Section 17 of 36
17. Build an ion image
A mass window and aggregation rule produce one spatial layer.
Working checkpoint — ibd binary file: Record centre, width and rule. Read every coloured pixel beside its spectrum, mass window, scale, missing-data rule and molecular annotation evidence.
For future study, connect chemistry to microscopy, coordinates and computing while checking official pathways separately.
Section 18 of 36
18. Choose an honest colour scale
Palette and range can amplify or hide differences.
Working checkpoint — ion image: Publish legend and limits. Preserve raw coordinates and spectra; a rendered image is not the complete spatial measurement.
For scientific writing, cite paired files, geometry, mass window, processing, scale and identification confidence.
Section 19 of 36
19. Handle missing pixels
Masked, absent and zero-intensity positions are different.
Working checkpoint — imzML: Preserve state explicitly. Separate spatial signal from molecular identity, tissue mechanism and clinical meaning.
For students, ask which spectrum, coordinate and colour rule produced each pixel.
Section 20 of 36
20. Document normalisation
Total-ion or other normalisation changes relative patterns.
Working checkpoint — mass spectrometry imaging: Name formula and scope. Treat axes, units, offsets, precision and orientation as scientific inputs: one silent swap can redraw the tissue.
For parents, ask whether a striking image keeps its scale and evidence chain visible.
Section 21 of 36
21. Document smoothing and interpolation
Display processing can invent visual continuity.
Working checkpoint — spatial spectrum: Keep raw pixels recoverable. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Section 22 of 36
22. Validate paired-file integrity
Identifiers, checksums and offsets detect mismatch.
Working checkpoint — pixel coordinate: Fail closed on a wrong pair. Read every coloured pixel beside its spectrum, mass window, scale, missing-data rule and molecular annotation evidence.
For future study, connect chemistry to microscopy, coordinates and computing while checking official pathways separately.
Section 23 of 36
23. Validate spectrum-coordinate counts
Every stored spectrum needs the intended spatial position.
Working checkpoint — ibd binary file: Audit duplicates and gaps. Preserve raw coordinates and spectra; a rendered image is not the complete spatial measurement.
For scientific writing, cite paired files, geometry, mass window, processing, scale and identification confidence.
Section 24 of 36
24. Validate a known image
Reconstruct selected masses in independent software.
Working checkpoint — ion image: Compare values and orientation. Separate spatial signal from molecular identity, tissue mechanism and clinical meaning.
For students, ask which spectrum, coordinate and colour rule produced each pixel.
Section 25 of 36
25. Protect sensitive specimens
Spatial tissue data and labels may identify participants.
Working checkpoint — imzML: Apply governance before sharing. Treat axes, units, offsets, precision and orientation as scientific inputs: one silent swap can redraw the tissue.
For parents, ask whether a striking image keeps its scale and evidence chain visible.
Section 26 of 36
26. Separate pixel from cell
A sampling spot may mix several structures.
Working checkpoint — mass spectrometry imaging: Use microscopy and segmentation carefully. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Section 27 of 36
27. Separate signal from identity
A mass feature is not automatically a confirmed molecule.
Working checkpoint — spatial spectrum: Report annotation confidence. Read every coloured pixel beside its spectrum, mass window, scale, missing-data rule and molecular annotation evidence.
For future study, connect chemistry to microscopy, coordinates and computing while checking official pathways separately.
Section 28 of 36
28. Connect to Primary Science
A grid of tiny graphs shows how place and measurement combine.
Working checkpoint — pixel coordinate: Use fictional data. Preserve raw coordinates and spectra; a rendered image is not the complete spatial measurement.
For scientific writing, cite paired files, geometry, mass window, processing, scale and identification confidence.
Section 29 of 36
29. Connect to Secondary Science
Imaging MS supports lessons about particles, evidence, controls and maps.
Working checkpoint — ibd binary file: Compare signal and interpretation. Separate spatial signal from molecular identity, tissue mechanism and clinical meaning.
For students, ask which spectrum, coordinate and colour rule produced each pixel.
Section 30 of 36
30. Connect to mathematics
Coordinates, arrays, scales and windows build spatial quantitative reasoning.
Working checkpoint — ion image: Reconstruct one layer. Treat axes, units, offsets, precision and orientation as scientific inputs: one silent swap can redraw the tissue.
For parents, ask whether a striking image keeps its scale and evidence chain visible.
Section 31 of 36
31. Connect to computing
Paired files, offsets, checksums and rendering show data engineering.
Working checkpoint — imzML: Test one mismatch. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Section 32 of 36
32. Connect to pathways
Imaging mass spectrometry joins chemistry, biology, microscopy and software and can illuminate STEM education and career pathways.
Working checkpoint — mass spectrometry imaging: Verify current routes separately. Read every coloured pixel beside its spectrum, mass window, scale, missing-data rule and molecular annotation evidence.
For future study, connect chemistry to microscopy, coordinates and computing while checking official pathways separately.
Section 33 of 36
33. Did you know?
An ion image can be rebuilt by selecting a mass-to-charge window from the spectrum stored at every pixel.
Working checkpoint — spatial spectrum: Publish the window and scale. Preserve raw coordinates and spectra; a rendered image is not the complete spatial measurement.
For scientific writing, cite paired files, geometry, mass window, processing, scale and identification confidence.
Section 34 of 36
34. Write a reader-ready image note
State files, coordinates, pixel size, mass window, processing, palette, identification and limits.
Working checkpoint — pixel coordinate: Place it beside the figure. Separate spatial signal from molecular identity, tissue mechanism and clinical meaning.
For students, ask which spectrum, coordinate and colour rule produced each pixel.
Section 35 of 36
35. Build a validation ladder
Check pair identity, offsets, arrays, coordinates, orientation, window, scale and controls.
Working checkpoint — ibd binary file: Stop at the first unexplained pixel. Treat axes, units, offsets, precision and orientation as scientific inputs: one silent swap can redraw the tissue.
For parents, ask whether a striking image keeps its scale and evidence chain visible.
Section 36 of 36
36. Finish with a reproducible bundle
Deliver paired files, schemas, CVs, acquisition, processing, transforms, validator report and hashes.
Working checkpoint — ion image: Make every colour traceable. Keep paired files, identifiers, hashes, offsets, coordinate model, acquisition, processing and validation together.
For a classroom model, rebuild ion maps from fictional spectra on a grid.
Contents · Previous section · Continue to the Science Learning Hub
