eduKateSG · Why Science?
Map coordinates through pairwise alignment blocks—while preserving direction, gaps, assembly identity and unmapped outcomes
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. The UCSC chain format describes pairwise sequence alignments that can contain gaps in both target and query. Each chain begins with a header containing score, target and query names, sizes, strands, interval bounds and an ID. Alignment lines then give an ungapped block size plus distances to the next block on target and query; the final line contains only its block size. Coordinates are zero-based half-open, and negative query-strand coordinates require a documented transformation. UCSC-generated over.chain files are inputs to LiftOver for mapping ranges between assemblies. A mapped interval is an alignment-based transformation, not proof that a feature is conserved, orthologous, functional or unchanged. 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: BED and genomic feature coordinates; refget and globally identifiable reference sequences; FASTA sequence records and reference data; Science Learning Hub; Education Hub; STEM Education; Careers by Subject Capability.
Primary and official sources checked on 12 October 2026: UCSC Genome Browser Chain Format, checked 12 October 2026; UCSC Genome Browser LiftOver tool and documentation, checked 12 October 2026; UCSC Genome Browser chain-file description and downloads guidance, 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, tools and recommendations can change, so preserve the dated documentation, exact source data, coordinate rules and software versions used.
A deeper reading route
A chain is a path through pairwise alignment blocks. Each block represents an ungapped stretch, while dt and dq say how far to advance on target and query before the next block. This supports insertions and deletions on both sequences without forcing every difference into one flat coordinate offset.
The header defines two coordinate spaces. Target fields use tName, tSize, tStrand, tStart and tEnd; query fields use their q counterparts. UCSC’s documentation presents the target strand as plus and explains how a minus query strand must be converted back to forward coordinates using qSize. Swapping source and destination assemblies is not a label edit; it changes the transformation.
LiftOver uses UCSC-generated chain files to convert coordinate ranges between selected assemblies or species. Some input bases may map cleanly, some may split, and some may fail the chosen thresholds. Unmapped output is evidence that must be retained and classified rather than deleted as inconvenient noise.
A chain score ranks an alignment under the producing pipeline, but it is not a probability of biological equivalence. Repeats, duplications, inversions, assembly corrections and lineage-specific sequence complicate mapping. Downstream interpretation should examine multiplicity, coverage and local context rather than treating every successful coordinate as the same feature.
Coordinate mapping is especially risky for boundaries. A feature may span a gap, map in pieces, shrink, expand or reverse. Mapping only a start coordinate can produce an interval whose end came from a different local relationship. Transform the complete feature representation and validate block structure, strand and reference alleles where relevant.
Reproducibility requires the exact chain object. Filenames such as hg19ToHg38 can hide rebuilds or alternative pipelines. Store source and destination assembly releases, download URL, byte hash, chain-file date or release, liftOver version and parameters. Commercial licensing conditions can also matter for UCSC-generated chain files, as stated on the UCSC store page.
Validation should include a truth set of stable, deleted, duplicated, reversed and boundary-spanning intervals. Map forward, map back with the corresponding reverse chain, and compare while remembering that round-trip success is supportive rather than definitive. Check sequences or alleles when the scientific claim depends on exact bases.
For students, chain files make maps wonderfully honest. Two editions of an atlas can describe the same place with shifted or redrawn boundaries. A conversion guide helps, but some landmarks move, split or disappear. The scientific habit is to report those outcomes instead of pretending every old coordinate has one perfect new address.
Mapping rates should be stratified rather than reported as one headline percentage. Separate complete, partial, split, duplicated, reversed and unmapped features; then break results down by feature type, length and contig class. A high overall rate can hide systematic loss of small intervals, alternate contigs or structurally complex regions.
Assembly change can alter more than coordinates. Destination reference alleles, sequence context, transcript models and chromosome names may differ. Downstream tables should be revalidated against destination resources instead of carrying old annotations forward by convenience. Coordinate translation is one step in a migration, not the entire migration.
Chain direction and provenance should be visible in filenames and manifests. Preserve both the original download name and a content hash, but do not infer direction from the name alone; compare header target and query sequences with the intended workflow. A wrong-direction chain can produce failure or a confusing transformation that still looks syntactically valid.
A classroom map exercise can include one street that shifted, one landmark duplicated and one park removed. Students map every object and keep an unmapped list. The lesson makes uncertainty constructive: reporting a failed conversion protects the reader from a false address and is therefore a successful scientific outcome.
Feature geometry deserves explicit policy. A long gene, regulatory region or structural variant may cross several chain blocks and gaps, so mapping only its two endpoints can produce an interval that appears neat while its interior follows no continuous path. Decide whether a feature must map completely, whether splitting is permitted and how much of its length must be covered. Report those rules with counts of accepted, partial and rejected features. For strand-sensitive features, verify orientation after mapping and transform every constituent exon or subfeature, not just the outer span.
Independent sequence checks strengthen high-stakes migrations. After transforming a small variant, compare the source reference allele with the old assembly and the expected destination allele with the new one; normalize and re-annotate under the destination reference rather than copying labels. For intervals, retrieve flanking sequence or conserved landmarks where appropriate. Disagreement does not automatically mean the chain is wrong—it may reveal an assembly correction, gap, repeat or representation change—but it does mean the record needs review before clinical, research or educational conclusions are carried forward. Keep a review reason, reviewer and date for every exception so corrections do not silently disappear into a final coordinate table. Include the source feature identifier and destination assembly release in that review record.
| Stage | Question | Evidence | Responsible output |
|---|---|---|---|
| Define | Which two sequence sets are aligned? | Target and query assemblies, names, sizes and strands | Two explicit coordinate spaces |
| Follow | How do aligned blocks and gaps connect? | Header plus size, dt and dq lines | A pairwise alignment path |
| Map | Which input interval can be transformed? | Chain selection, thresholds and complete feature geometry | A mapped, split or unmapped result |
| Verify | Does the transformed feature retain intended meaning? | Round trips, sequence checks and contextual review | A qualified coordinate translation |
Inside this guide
1–12 · Foundations and design
- 1. Start with two assemblies
- 2. Understand pairwise alignment
- 3. Recognise chain boundaries
- 4. Keep the direction visible
- 5. Read the chain keyword
- 6. Interpret score narrowly
- 7. Read target name and size
- 8. Read target strand
- 9. Read target bounds
- 10. Read query name and size
- 11. Read query strand
- 12. Read query bounds
13–24 · Models and estimation
- 13. Read the chain ID
- 14. Use half-open coordinates
- 15. Transform reverse query coordinates
- 16. Read block size
- 17. Read dt
- 18. Read dq
- 19. Recognise the final line
- 20. Reconstruct the full path
- 21. Understand chain multiplicity
- 22. Use LiftOver as a transformation
- 23. Retain unmapped output
- 24. Preserve complete features
25–36 · Diagnostics and interpretation
- 25. Handle split mappings
- 26. Check alleles after variant liftover
- 27. Round-trip cautiously
- 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 mapping report
- 35. Build a validation ladder
- 36. Finish with a reproducible bundle
Section 1 of 36
1. Start with two assemblies
A chain is meaningful only when source and destination sequence sets are named exactly. Similar assembly labels can hide patches or local modifications.
Working checkpoint — chain format: Record providers, releases and sequence hashes. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Section 2 of 36
2. Understand pairwise alignment
The format describes a pairwise alignment that permits gaps in both sequences simultaneously.
Working checkpoint — pairwise alignment: Do not treat it as a simple global offset table. Read every new interval beside its original bounds, chain block, strand and reference identity.
For future study, connect genomics to piecewise functions and curation while checking pathways separately.
Section 3 of 36
3. Recognise chain boundaries
Each chain starts with one header, contains alignment data lines and ends with a blank line.
Working checkpoint — target and query: Preserve record boundaries during parsing. Preserve split and failed mappings; they are evidence about the transformation.
For scientific writing, report direction, chain, outcomes and sequence checks.
Section 4 of 36
4. Keep the direction visible
Target and query roles are encoded in the header and matter to coordinate transformation.
Working checkpoint — reverse strand: Label source and destination before running liftOver. Separate coordinate conversion, sequence correspondence, feature conservation and biological function.
For students, ask which landmarks moved, split, reversed or disappeared between maps.
Section 5 of 36
5. Read the chain keyword
Every header begins with the literal chain followed by eleven required values.
Working checkpoint — liftOver: Reject a shifted or incomplete header. Treat gaps, orientation, thresholds and full feature geometry as scientific inputs.
For parents, ask whether unmapped items were reported instead of hidden.
Section 6 of 36
6. Interpret score narrowly
score reflects the producing alignment pipeline and supports ranking, not a universal probability of correctness or conservation.
Working checkpoint — coordinate mapping: Compare scores only within compatible builds and methods. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Section 7 of 36
7. Read target name and size
tName and tSize define the reference or target sequence coordinate range.
Working checkpoint — chain format: Validate tName and tSize against the target manifest. Read every new interval beside its original bounds, chain block, strand and reference identity.
For future study, connect genomics to piecewise functions and curation while checking pathways separately.
Section 8 of 36
8. Read target strand
The chain documentation defines tStrand in the header; standard chain use keeps target coordinates in the stated orientation.
Working checkpoint — pairwise alignment: Do not infer strand from names. Preserve split and failed mappings; they are evidence about the transformation.
For scientific writing, report direction, chain, outcomes and sequence checks.
Section 9 of 36
9. Read target bounds
tStart and tEnd are zero-based half-open outer bounds for the chain on target.
Working checkpoint — target and query: Check 0 ≤ start ≤ end ≤ size. Separate coordinate conversion, sequence correspondence, feature conservation and biological function.
For students, ask which landmarks moved, split, reversed or disappeared between maps.
Section 10 of 36
10. Read query name and size
qName and qSize define the second sequence and the arithmetic for reverse-strand conversion.
Working checkpoint — reverse strand: Validate them against the query manifest. Treat gaps, orientation, thresholds and full feature geometry as scientific inputs.
For parents, ask whether unmapped items were reported instead of hidden.
Section 11 of 36
11. Read query strand
qStrand shows whether aligned query sequence follows plus or reverse orientation.
Working checkpoint — liftOver: Carry strand into every mapped feature. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Section 12 of 36
12. Read query bounds
qStart and qEnd bound the chain in query coordinates as documented. Negative-strand values require conversion for forward coordinates.
Working checkpoint — coordinate mapping: Keep raw and forward-transformed bounds. Read every new interval beside its original bounds, chain block, strand and reference identity.
For future study, connect genomics to piecewise functions and curation while checking pathways separately.
Section 13 of 36
13. Read the chain ID
id distinguishes chain records but is not a global biological identifier.
Working checkpoint — chain format: Scope IDs to the exact file and release. Preserve split and failed mappings; they are evidence about the transformation.
For scientific writing, report direction, chain, outcomes and sequence checks.
Section 14 of 36
14. Use half-open coordinates
Starts are included and ends excluded, so interval length is end minus start.
Working checkpoint — pairwise alignment: Test the first base and adjacent intervals. Separate coordinate conversion, sequence correspondence, feature conservation and biological function.
For students, ask which landmarks moved, split, reversed or disappeared between maps.
Section 15 of 36
15. Transform reverse query coordinates
UCSC gives qStartForward = qSize – qEnd and qEndForward = qSize – qStart for minus-strand queries.
Working checkpoint — target and query: Apply both formulas as one tested operation. Treat gaps, orientation, thresholds and full feature geometry as scientific inputs.
For parents, ask whether unmapped items were reported instead of hidden.
Section 16 of 36
16. Read block size
Each alignment data line begins with the size of an ungapped aligned block.
Working checkpoint — reverse strand: Ensure every block remains inside both outer spans. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Section 17 of 36
17. Read dt
dt is the distance from this block end to the next block start on target.
Working checkpoint — liftOver: Use it to advance target position exactly. Read every new interval beside its original bounds, chain block, strand and reference identity.
For future study, connect genomics to piecewise functions and curation while checking pathways separately.
Section 18 of 36
18. Read dq
dq is the corresponding distance on query. Different dt and dq encode gapped relationships.
Working checkpoint — coordinate mapping: Advance query independently from target. Preserve split and failed mappings; they are evidence about the transformation.
For scientific writing, report direction, chain, outcomes and sequence checks.
Section 19 of 36
19. Recognise the final line
The last alignment line contains only the size of the final ungapped block.
Working checkpoint — chain format: Do not expect nonexistent dt and dq values. Separate coordinate conversion, sequence correspondence, feature conservation and biological function.
For students, ask which landmarks moved, split, reversed or disappeared between maps.
Section 20 of 36
20. Reconstruct the full path
Cumulative block sizes and gaps should arrive at the header end coordinates.
Working checkpoint — pairwise alignment: Recalculate both axes and reject drift. Treat gaps, orientation, thresholds and full feature geometry as scientific inputs.
For parents, ask whether unmapped items were reported instead of hidden.
Section 21 of 36
21. Understand chain multiplicity
Duplications and repeats can create several candidate chains for related regions. Mapping policy chooses among them under thresholds.
Working checkpoint — target and query: Inspect alternatives before claiming uniqueness. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Section 22 of 36
22. Use LiftOver as a transformation
UCSC LiftOver consumes a compatible chain file and maps coordinate ranges between supported assemblies.
Working checkpoint — reverse strand: Record tool version, parameters and chain hash. Read every new interval beside its original bounds, chain block, strand and reference identity.
For future study, connect genomics to piecewise functions and curation while checking pathways separately.
Section 23 of 36
23. Retain unmapped output
Failure can reflect deleted sequence, insufficient alignment, thresholds, malformed input or unsupported regions.
Working checkpoint — liftOver: Classify and report every unmapped item. Preserve split and failed mappings; they are evidence about the transformation.
For scientific writing, report direction, chain, outcomes and sequence checks.
Section 24 of 36
24. Preserve complete features
A BED12 gene model has blocks and strand, not merely one start and end. Mapping only the envelope can distort structure.
Working checkpoint — coordinate mapping: Transform and validate all feature components. Separate coordinate conversion, sequence correspondence, feature conservation and biological function.
For students, ask which landmarks moved, split, reversed or disappeared between maps.
Section 25 of 36
25. Handle split mappings
An interval spanning a rearrangement or gap may not map as one contiguous destination.
Working checkpoint — chain format: Choose and document a split-feature policy. Treat gaps, orientation, thresholds and full feature geometry as scientific inputs.
For parents, ask whether unmapped items were reported instead of hidden.
Section 26 of 36
26. Check alleles after variant liftover
A mapped variant coordinate still needs its reference allele checked against the destination sequence and may require normalization.
Working checkpoint — pairwise alignment: Never change assembly label without allele validation. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Section 27 of 36
27. Round-trip cautiously
Forward and reverse mapping can reveal instability but cannot prove biological equivalence because chains and thresholds are directional.
Working checkpoint — target and query: Use round trips as one diagnostic, not a guarantee. Read every new interval beside its original bounds, chain block, strand and reference identity.
For future study, connect genomics to piecewise functions and curation while checking pathways separately.
Section 28 of 36
28. Connect to Primary Science
Two classroom maps with shifted landmarks can model coordinate translation and unmapped objects.
Working checkpoint — reverse strand: Celebrate honest “no mapping” results. Preserve split and failed mappings; they are evidence about the transformation.
For scientific writing, report direction, chain, outcomes and sequence checks.
Section 29 of 36
29. Connect to Secondary Science
Genome assemblies are scientific models that improve over time; changing coordinates reflects changed sequence representation.
Working checkpoint — liftOver: Separate model revision from organism change. Separate coordinate conversion, sequence correspondence, feature conservation and biological function.
For students, ask which landmarks moved, split, reversed or disappeared between maps.
Section 30 of 36
30. Connect to mathematics
Piecewise mappings, intervals, orientation changes and cumulative sums make chains a rich transformation example.
Working checkpoint — coordinate mapping: Reconstruct a three-block path by hand. Treat gaps, orientation, thresholds and full feature geometry as scientific inputs.
For parents, ask whether unmapped items were reported instead of hidden.
Section 31 of 36
31. Connect to computing
Parsing, indexes, transforms, provenance and regression fixtures show how infrastructure protects scientific coordinates.
Working checkpoint — chain format: Test reversals, gaps and boundaries. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Section 32 of 36
32. Connect to pathways
Coordinate mapping joins comparative genomics, software, data curation and research reproducibility and can illuminate STEM pathways.
Working checkpoint — pairwise alignment: Check current official qualifications separately. Read every new interval beside its original bounds, chain block, strand and reference identity.
For future study, connect genomics to piecewise functions and curation while checking pathways separately.
Section 33 of 36
33. Did you know?
A minus-strand query coordinate is converted by subtracting the stored end from qSize for the forward start, and the stored start from qSize for the forward end.
Working checkpoint — target and query: Write the paired formulas before using them. Preserve split and failed mappings; they are evidence about the transformation.
For scientific writing, report direction, chain, outcomes and sequence checks.
Section 34 of 36
34. Write a reader-ready mapping report
Name both assemblies, chain source and hash, direction, tool, parameters, counts, split and unmapped outcomes, and validation.
Working checkpoint — reverse strand: Keep original and transformed features together. Separate coordinate conversion, sequence correspondence, feature conservation and biological function.
For students, ask which landmarks moved, split, reversed or disappeared between maps.
Section 35 of 36
35. Build a validation ladder
Check header, bounds, block path, strands, assembly identity, mappings, unmapped cases, round trips and sequences.
Working checkpoint — liftOver: Stop at the earliest unexplained transformation. Treat gaps, orientation, thresholds and full feature geometry as scientific inputs.
For parents, ask whether unmapped items were reported instead of hidden.
Section 36 of 36
36. Finish with a reproducible bundle
Deliver input, output, unmapped file, chain hash, assembly manifests, commands, fixtures and validation log.
Working checkpoint — coordinate mapping: Make every new coordinate traceable to its old interval and path. Keep source and destination manifests, chain hash, direction, mapping parameters, mapped and unmapped outputs together.
For a classroom model, compare two invented atlas editions with transparent rules.
Contents · Previous section · Continue to the Science Learning Hub
