eduKateSG · Why Science?
Compare category values across genomic regions—while preserving category order, units, sample evidence, aggregation rules and uncertainty
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. UCSC describes barChart as a BED6-plus format for displaying category-specific numeric values over genomic regions, with bigBarChart as its indexed binary form. Each item stores a second label, the number of categories, an ordered list of category values and offsets that can connect the item to optional matrix data. Category names in the track setting must appear in exactly the same order as the values. The browser can show summaries and, when sample information is supplied, more detailed distributions. A taller bar is only meaningful when units, normalisation, aggregation, category definitions and missing-data rules are compatible. 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: bigBed indexed genome annotation tracks; BED and genomic feature coordinates; bigWig indexed genomic signal tracks; Science Learning Hub; Education Hub; STEM Education; Careers by Subject Capability.
Primary and official sources checked on 12 October 2026: UCSC Genome Browser barChart and bigBarChart Track Format, checked 12 October 2026; UCSC Genome Browser bigBed Track Format, checked 12 October 2026; MOE G2/G3 Lower Secondary Science Teaching and Learning Syllabus, 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 dated documentation, exact source data, coordinate rules and software versions.
A deeper reading route
barChart answers a multivariable question at one genomic location. Instead of drawing one continuous signal, it attaches an ordered vector of values to a feature such as a gene and renders one bar per category. That is useful for expression by tissue, condition or cell type, yet the vector is not self-describing. The category names, colours, metric and unit in the track configuration are part of the scientific record.
The schema begins with BED6: chromosome, start, end, name, score and strand. UCSC then adds name2, expCount, expScores, _dataOffset and _dataLen. name2 supplies a more descriptive label, expCount states how many category values follow, and expScores contains the comma-separated numeric vector. The final two fields can locate supporting matrix information used for richer details.
Order is a hard contract. UCSC states that the order of barChartBars must exactly match the order of expScores. A file can remain syntactically valid after two labels are exchanged, while every visible bar becomes scientifically mislabelled. Validation should therefore compare the declared category count, label list, colour list and every row vector before conversion.
A category value can represent a mean, median, maximum or another summary chosen by the producer. UCSC permits a metric and unit to be displayed, but it cannot infer how values were normalised or aggregated. A responsible methods note names the transformation, denominator, replicate policy, handling of zeros and missing values, and whether categories contain comparable sample numbers.
Optional matrix and sample files can support detailed pages and boxplot-like summaries. That distinction matters: a bar showing a category median is not the distribution, and two equal medians can hide very different spread, outliers or sample counts. Keep the sample identifiers and category assignments versioned with the matrix so detailed evidence cannot drift away from the summary track.
UCSC documents bigBarChart as the binary, indexed bigBed form and recommends it for web-accessible storage and command-line workflows. Construction uses the barChart autoSql schema and bedToBigBed with a bed6+5 declaration. Input coordinates must match the assembly, rows must be correctly sorted, and the category vector still needs semantic validation before indexing.
Display width, padding and category colours can change without changing underlying values. Those settings are useful for reading a crowded locus, but screenshots are not neutral measurements. A reproducible figure records the track stanza, browser window, visibility, barChartMetric, barChartUnit, category order and any width or padding choices.
Missingness deserves explicit treatment. A numeric zero can mean measured absence, a value below a defined threshold or an imputed value; it should not silently stand for a missing sample. If the format or producing pipeline uses a sentinel or excludes categories, document that rule and ensure expCount still matches the actual vector and declared labels.
Cross-track comparisons require shared units and compatible processing. Counts, transcripts per million, log-transformed values and z-scores can all produce attractive bars, but their heights answer different questions. Normalising each track independently can reverse apparent rankings. Comparison should begin with one data dictionary and, where possible, one harmonised processing workflow.
For students, a barChart track resembles a science graph pinned to a map. The genomic interval tells us where the item belongs, the category labels tell us what each bar represents, and the unit tells us how height was measured. The cheerful habit is to read the legend and denominator before deciding which category is largest.
Scientific interpretation remains bounded. Higher expression in one category does not prove that a gene causes that tissue state, that every cell behaves alike or that another assay would agree. Biological replication, experimental design, confounding, sample composition and independent evidence remain necessary for stronger claims.
A durable package includes source measurements, category and sample manifests, normalisation and aggregation code, prepared barChart table, autoSql schema, chromosome sizes, optional matrix and sample files, track stanza, conversion command, hashes and visual plus numerical tests. That bundle lets another analyst distinguish a changed value from a changed label or display.
Category design is itself an analytical decision. Tissue labels can combine anatomical regions, developmental stages or cell mixtures; treatment labels can hide dose and time; disease labels can hide diagnostic heterogeneity. Before calculating one bar, define inclusion criteria and preserve the original metadata. A polished category name should never erase the distinctions needed to reproduce or challenge the comparison.
Quality control should connect visual summaries to numerical checks. For each item, confirm finite values, the declared vector length and expected range. Across the file, inspect category-wise distributions, constant columns, impossible negatives, extreme outliers and systematic missingness. Then select representative genes or regions and recalculate summaries directly from the matrix. This catches mistakes that schema validation alone cannot see.
Accessibility improves scientific accuracy. Colour alone should not be the only way to identify categories, and palettes should remain distinguishable under common colour-vision differences. Text labels, stable order and the details page give readers more than one route to the meaning. Responsive layouts should also be checked so narrow screens do not detach a bar from its label.
A comparison across releases needs an explicit change log. Gene models can move, identifiers can split or merge, sample annotations can be corrected and normalisation pipelines can change. Version the feature set and category manifest, then report which rows were added, removed or remapped. Otherwise an apparent biological change can be a release-management change in disguise.
| Stage | Question | Evidence | Responsible output |
|---|---|---|---|
| Locate | Which genomic item owns the comparison? | BED6 coordinates, name and strand | An assembly-specific feature |
| Order | Which category does each number represent? | expCount, expScores and matching barChartBars | A correctly labelled value vector |
| Explain | How were values measured and summarised? | Metric, unit, normalisation, matrix and sample metadata | A reproducible comparison |
| Judge | What conclusion is supported? | Replication, uncertainty, distributions and controls | A bounded category-value claim |
Inside this guide
1–12 · Foundations and design
- 1. Start with the comparison question
- 2. Separate location from measurement
- 3. Read chromosome and bounds
- 4. Read the primary name
- 5. Read score and strand narrowly
- 6. Read the second label
- 7. Count the categories
- 8. Read the ordered scores
- 9. Match bars to values
- 10. Match colours to categories
- 11. Define the metric
- 12. Define the unit
13–24 · Models and estimation
- 13. Distinguish summary from distribution
- 14. Read matrix offsets carefully
- 15. Version the sample manifest
- 16. Handle missing values explicitly
- 17. Keep category sizes visible
- 18. Normalise before comparing
- 19. Sort the input
- 20. Use the official schema
- 21. Build as bed6+5
- 22. Use assembly-matched sizes
- 23. Host for ranged access
- 24. Record display choices
25–36 · Diagnostics and interpretation
- 25. Round-trip representative rows
- 26. Audit the whole dataset
- 27. Separate association from cause
- 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 chart note
- 35. Build a validation ladder
- 36. Finish with a reproducible bundle
Section 1 of 36
1. Start with the comparison question
barChart and bigBarChart attach several category values to one genomic feature.
Working checkpoint — barChart: Name the feature, categories and intended comparison. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Section 2 of 36
2. Separate location from measurement
BED fields locate the feature while the score vector carries the category summaries.
Working checkpoint — bigBarChart: Validate both layers independently. Read every bar beside sample count, distribution, missing-data rule and compatible processing.
For future study, connect graph literacy to biology, mathematics and computing while checking official pathways separately.
Section 3 of 36
3. Read chromosome and bounds
chrom, chromStart and chromEnd use BED-compatible zero-based half-open coordinates.
Working checkpoint — category value: Resolve them against the exact assembly. Preserve excluded samples and unreported categories; the displayed summary is not the complete experiment.
For scientific writing, cite the feature set, category order, metric, unit, samples and processing.
Section 4 of 36
4. Read the primary name
name identifies the indexed item and supports browser labels.
Working checkpoint — gene expression: Keep a stable namespace and release. Separate correct plotting and attractive colour from measurement validity, biological mechanism and causation.
For students, ask what each bar measures, which unit applies and how many observations created it.
Section 5 of 36
5. Read score and strand narrowly
score and strand follow BED display conventions and may not encode the category measurement.
Working checkpoint — genomic region: Do not infer values from display darkness. Treat category order as a scientific input: a silent label swap can reverse the story.
For parents, ask whether an appealing graph keeps its source values and uncertainty visible.
Section 6 of 36
6. Read the second label
name2 can carry a more descriptive label for the details page.
Working checkpoint — data visualisation: Keep it mapped to the primary identifier. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Section 7 of 36
7. Count the categories
expCount states how many values the item contains and is limited by the documented schema.
Working checkpoint — barChart: Compare it with every vector length. Read every bar beside sample count, distribution, missing-data rule and compatible processing.
For future study, connect graph literacy to biology, mathematics and computing while checking official pathways separately.
Section 8 of 36
8. Read the ordered scores
expScores is a comma-separated list of category values.
Working checkpoint — bigBarChart: Parse numbers and preserve their order. Preserve excluded samples and unreported categories; the displayed summary is not the complete experiment.
For scientific writing, cite the feature set, category order, metric, unit, samples and processing.
Section 9 of 36
9. Match bars to values
barChartBars must list categories in exactly the same order as expScores.
Working checkpoint — category value: Fail validation on any order mismatch. Separate correct plotting and attractive colour from measurement validity, biological mechanism and causation.
For students, ask what each bar measures, which unit applies and how many observations created it.
Section 10 of 36
10. Match colours to categories
barChartColors supplies the visual mapping for the declared categories.
Working checkpoint — gene expression: Keep an accessible labelled legend. Treat category order as a scientific input: a silent label swap can reverse the story.
For parents, ask whether an appealing graph keeps its source values and uncertainty visible.
Section 11 of 36
11. Define the metric
barChartMetric tells readers whether the statistic is a mean, median or another summary.
Working checkpoint — genomic region: Publish the exact aggregation rule. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Section 12 of 36
12. Define the unit
barChartUnit labels the numerical scale shown to readers.
Working checkpoint — data visualisation: State transformations and denominators. Read every bar beside sample count, distribution, missing-data rule and compatible processing.
For future study, connect graph literacy to biology, mathematics and computing while checking official pathways separately.
Section 13 of 36
13. Distinguish summary from distribution
One bar cannot reveal sample count, spread or outliers.
Working checkpoint — barChart: Provide matrix and sample detail where relevant. Preserve excluded samples and unreported categories; the displayed summary is not the complete experiment.
For scientific writing, cite the feature set, category order, metric, unit, samples and processing.
Section 14 of 36
14. Read matrix offsets carefully
_dataOffset and _dataLen can locate additional matrix information for an item.
Working checkpoint — bigBarChart: Verify offsets against exact source bytes. Separate correct plotting and attractive colour from measurement validity, biological mechanism and causation.
For students, ask what each bar measures, which unit applies and how many observations created it.
Section 15 of 36
15. Version the sample manifest
Sample files connect columns to categories and biological context.
Working checkpoint — category value: Hash them beside the matrix. Treat category order as a scientific input: a silent label swap can reverse the story.
For parents, ask whether an appealing graph keeps its source values and uncertainty visible.
Section 16 of 36
16. Handle missing values explicitly
Missing, below-threshold and measured-zero observations are different states.
Working checkpoint — gene expression: Document and test each state. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Section 17 of 36
17. Keep category sizes visible
A summary based on two samples differs from one based on two hundred.
Working checkpoint — genomic region: Report n with every category. Read every bar beside sample count, distribution, missing-data rule and compatible processing.
For future study, connect graph literacy to biology, mathematics and computing while checking official pathways separately.
Section 18 of 36
18. Normalise before comparing
Counts and transformed values are not interchangeable across processing workflows.
Working checkpoint — data visualisation: Use one compatible scale. Preserve excluded samples and unreported categories; the displayed summary is not the complete experiment.
For scientific writing, cite the feature set, category order, metric, unit, samples and processing.
Section 19 of 36
19. Sort the input
bedToBigBed expects correctly ordered genomic rows.
Working checkpoint — barChart: Check chromosome order and numeric starts. Separate correct plotting and attractive colour from measurement validity, biological mechanism and causation.
For students, ask what each bar measures, which unit applies and how many observations created it.
Section 20 of 36
20. Use the official schema
barChartBed.as defines BED6 plus the five additional fields.
Working checkpoint — bigBarChart: Pin and hash the schema. Treat category order as a scientific input: a silent label swap can reverse the story.
For parents, ask whether an appealing graph keeps its source values and uncertainty visible.
Section 21 of 36
21. Build as bed6+5
The documented conversion supplies bed6+5 and the autoSql schema to bedToBigBed.
Working checkpoint — category value: Record the exact command and version. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Section 22 of 36
22. Use assembly-matched sizes
chrom.sizes constrains legal sequence names and interval ends.
Working checkpoint — gene expression: Reject aliases and overflow. Read every bar beside sample count, distribution, missing-data rule and compatible processing.
For future study, connect graph literacy to biology, mathematics and computing while checking official pathways separately.
Section 23 of 36
23. Host for ranged access
bigBarChart is retrieved regionally from a web-accessible URL.
Working checkpoint — genomic region: Test anonymous byte ranges and redirects. Preserve excluded samples and unreported categories; the displayed summary is not the complete experiment.
For scientific writing, cite the feature set, category order, metric, unit, samples and processing.
Section 24 of 36
24. Record display choices
Width and padding can change the picture without changing data.
Working checkpoint — data visualisation: Store the full track stanza with figures. Separate correct plotting and attractive colour from measurement validity, biological mechanism and causation.
For students, ask what each bar measures, which unit applies and how many observations created it.
Section 25 of 36
25. Round-trip representative rows
Extracted bigBed rows should reproduce labels, counts, scores and offsets.
Working checkpoint — barChart: Compare every field and number. Treat category order as a scientific input: a silent label swap can reverse the story.
For parents, ask whether an appealing graph keeps its source values and uncertainty visible.
Section 26 of 36
26. Audit the whole dataset
A correct locus cannot reveal dropped features or swapped categories elsewhere.
Working checkpoint — bigBarChart: Compare counts, vector lengths and hashes. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Section 27 of 36
27. Separate association from cause
A tall category bar does not prove a causal biological mechanism.
Working checkpoint — category value: Seek independent evidence for stronger claims. Read every bar beside sample count, distribution, missing-data rule and compatible processing.
For future study, connect graph literacy to biology, mathematics and computing while checking official pathways separately.
Section 28 of 36
28. Connect to Primary Science
A labelled classroom bar graph on a paper map links place, category, value and unit.
Working checkpoint — gene expression: Use fictional measurements and equal scales. Preserve excluded samples and unreported categories; the displayed summary is not the complete experiment.
For scientific writing, cite the feature set, category order, metric, unit, samples and processing.
Section 29 of 36
29. Connect to Secondary Science
Category tracks support lessons about variables, fair comparisons, sampling and uncertainty.
Working checkpoint — genomic region: Compare summaries with raw values. Separate correct plotting and attractive colour from measurement validity, biological mechanism and causation.
For students, ask what each bar measures, which unit applies and how many observations created it.
Section 30 of 36
30. Connect to mathematics
Vectors, ordering, averages, medians and distributions make precise quantitative practice.
Working checkpoint — data visualisation: Recalculate one category summary. Treat category order as a scientific input: a silent label swap can reverse the story.
For parents, ask whether an appealing graph keeps its source values and uncertainty visible.
Section 31 of 36
31. Connect to computing
Schemas, arrays, offsets and indexes show how visualisations depend on structured data.
Working checkpoint — barChart: Test a deliberately swapped label order. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Section 32 of 36
32. Connect to pathways
Genomic data visualisation joins biology, statistics, design and software and can illuminate STEM education and career pathways.
Working checkpoint — bigBarChart: Verify current study routes separately. Read every bar beside sample count, distribution, missing-data rule and compatible processing.
For future study, connect graph literacy to biology, mathematics and computing while checking official pathways separately.
Section 33 of 36
33. Did you know?
In barChart, the category-name order must exactly match the order of values in every expScores vector.
Working checkpoint — category value: Check labels before reading bar height. Preserve excluded samples and unreported categories; the displayed summary is not the complete experiment.
For scientific writing, cite the feature set, category order, metric, unit, samples and processing.
Section 34 of 36
34. Write a reader-ready chart note
Name assembly, feature set, categories, units, metric, normalisation, samples and display settings.
Working checkpoint — gene expression: Keep it beside the track. Separate correct plotting and attractive colour from measurement validity, biological mechanism and causation.
For students, ask what each bar measures, which unit applies and how many observations created it.
Section 35 of 36
35. Build a validation ladder
Check coordinates, counts, order, units, missingness, matrix links, conversion, hosting and extraction.
Working checkpoint — genomic region: Stop at the first swapped category. Treat category order as a scientific input: a silent label swap can reverse the story.
For parents, ask whether an appealing graph keeps its source values and uncertainty visible.
Section 36 of 36
36. Finish with a reproducible bundle
Deliver source values, manifests, schemas, commands, settings, hashes and bounded interpretations.
Working checkpoint — data visualisation: Make every bar traceable to its samples. Keep assembly, feature identifiers, ordered categories, units, normalisation, aggregation and source matrix together.
For a classroom model, use fictional categories, equal scales and a visible legend.
Contents · Previous section · Continue to the Science Learning Hub
