OpenGWASDB at full scale — OGS-00009

All 2,024 UK Biobank ukb-b traits in one Dense Store Release · 19.9 billion associations

Published

September 20, 2026

ImportantWhat this measures

Every UK Biobank ukb-b GWAS in the OpenGWAS collection — all 2,024 traits, 9,847,701 variants, 19.9 billion associations — built into a single Dense Store Release and queried through the public API.

  • 34.68 GB on disk, against 345.01 GB of source GWAS-VCF across 2,024 files — a 9.95x reduction.
  • An indexed query returns in 1.15 ms; a PheWAS across all 2,024 traits in 6.48 ms.
  • Those queries need ~159 MB of RAM. A laptop can open this store.
  • Built in 5.92 hours.

The cost is concentrated in one shape: reading a whole Analysis genome-wide takes tens of seconds and tens of gigabytes. Everything targeted — a variant, a region, a trait’s top hits — is cheap in both time and memory.

Scope

Property Value
Store Release OGS-00009 (ukb-b-full-observed)
Completion state Observed-only
Analyses 2,024
Variants 9,847,701
Associations 19,931,746,824
Reference assembly GRCh38
Encoding z int16_fixed, se int8_residual, eaf int8_residual
Measured at 2026-09-20T07:27:57.589446+00:00
opengwasdb commit 50fe751

Timings are the median of 5 repetitions after a warm-up call, under a warm operating-system cache. Memory is measured separately — see Memory footprint.

Storage

Measure Value
Store Release 34.68 GB
Source GWAS-VCF 345.01 GB across 2,024 files
Compression ratio 9.95x
Bytes per association 1.740 B

The source files are already compressed — this is a reduction against bgzipped VCF, not against plain text. It comes from storing z and standard error in fixed-point and residual codings rather than as text floats, and from sharing one variant axis across all 2,024 Analyses instead of repeating positions and alleles in every file.

Build

Measure Value
Build wall clock 5.92 h (21,298 s)
Workers 32
Throughput 0.9 million associations/s

Query performance

Query Median p95 Results
Top hits for one Analysis (p < 5e-8) 1.15 ms 1.17 ms 2,564
PheWAS: one variant, all Analyses 6.48 ms 7.88 ms 1,088
Region restricted to one Analysis 24.11 ms 50.22 ms 2,954
Random lookup: 10 variants x 100 Analyses 70.72 ms 71.61 ms 654
Random lookup: 100 variants x 10 Analyses 487.98 ms 495.24 ms 628
Region across all Analyses 1.45 s 1.51 s 4,241,966
One Analysis, genome-wide 30.04 s 33.79 s 7,578,651

The spread across these shapes is the point. A top-hits lookup and a whole-Analysis scan differ by more than four orders of magnitude in latency, and they differ by a similar factor in result size — the store is not paying a fixed cost per query, it is paying for what the query actually returns.

Two shapes are worth reading carefully:

  • PheWAS — one variant against all 2,024 traits in 6.48 ms. This is the shape a per-file collection is worst at: it would need 2,024 file opens and 2,024 index seeks. Here it is a single strided read.
  • Whole Analysis, genome-wide — 30.04 s for 7,578,651 associations. This is the shape a per-file collection is best at, because that is exactly how the source data is laid out. The Dense Store is competitive rather than better here, and this is the trade being made.

Memory footprint

Each query shape runs in a fresh interpreter. Baseline is resident memory with the store open but before the query runs; Peak is sampled on a background thread during the query, because intermediate buffers are freed before a query returns and a before/after reading misses them entirely.

Query Baseline Peak Query cost Results
Top hits for one Analysis (p < 5e-8) 158.7 MB 158.8 MB 0.1 MB 2,564
PheWAS: one variant, all Analyses 161.6 MB 166.5 MB 4.9 MB 1,088
Region restricted to one Analysis 157.3 MB 167.9 MB 10.6 MB 2,954
Random lookup: 10 variants x 100 Analyses 162.6 MB 195.2 MB 32.7 MB 654
Random lookup: 100 variants x 10 Analyses 157.5 MB 472.4 MB 314.9 MB 628
Region across all Analyses 157.6 MB 684.1 MB 526.5 MB 4,241,966
One Analysis, genome-wide 157.9 MB 11.74 GB 11.58 GB 7,578,651

Baseline is ~159 MB regardless of which shape follows it, and it does not scale with the store: having 2,024 Analyses and 19,931,746,824 associations available costs about as much resident memory as opening a text editor. Nothing is loaded until it is asked for.

Query cost then tracks result size almost linearly, from 0.1 MB for a top-hits lookup to 11.58 GB for a genome-wide Analysis read. The practical consequence: targeted queries are safe to run concurrently and on modest hardware, while whole-Analysis reads need to be budgeted — 32 concurrent bulk reads would need more memory than most machines have.

Scientific validation

An end-to-end Mendelian randomisation run over the store, as a correctness check that instruments, effect signs and standard errors survive the build.

Property Value
Exposure ukb-b-17805 — Medication for cholesterol, blood pressure, diabetes, or take exogenous hormones: Cholesterol lowering medication
Outcome ukb-b-1668 — Diagnoses - main ICD10: I25.1 Atherosclerotic heart disease
Instruments 34 (from 2,564 before pruning)
IVW beta 0.1497
IVW se 0.0066
IVW p 2.25e-115
WarningThis is not a causal estimate

The exposure is statin use, a treatment proxy, so this estimate is confounded by indication — people prescribed cholesterol-lowering medication are people with high cholesterol. The positive sign is what that confounding predicts, and it is the expected result here.

The original benchmark used self-reported high cholesterol as an LDL proxy. Neither that trait nor the ukb-b collection as a whole carries any LDL or lipid biomarker measurement, so no better instrument was available in this store. This section is a pipeline correctness check — instruments are found, effects have plausible magnitudes, standard errors propagate — and nothing more.

Limitations

  • Observed-only. OGS-00009 stores what the source GWAS-VCFs reported. Missing associations are absent, not imputed. The Reference-Completed twin (OGS-00010) is a separate Store Release, measured in its own report.
  • Warm cache. Timings are taken after a warm-up call with the operating system cache warm. A cold first query against a given region will be slower, bounded by disk rather than by the store format.
  • One machine. Single measurement host; no cross-platform or cross-filesystem comparison.
  • Memory sampling resolution. The peak sampler polls at 5 ms, so a shorter-lived allocation spike inside a sub-millisecond query can be missed. This affects tophits and phewas only, whose reported costs are near zero regardless.
  • The MR is a smoke test, for the reasons above.