Parquet for Previous Releases¶
From release 1.2.0, only the current line (v1/1.2/) has published Parquet. A frozen line keeps its bundles and
no Parquet (ADR 0008): the bundle is the record, and the
tables are derived from it. This page shows how to build the tables of a frozen line yourself, with
gkm-bundle-parquet 2.0.0 and a column set ClinVar-GKM publishes, so that you get compact
tables and can prove that no value was lost.
| Line | Bundle schema_version |
Build its Parquet |
|---|---|---|
v1/1.1/ |
1.1.0 |
with the 1.1.0 column set, on this page |
v1/1.0/ |
1.0.1 |
not supported: build from the v1/1.1/ bundle of the same release; see The 1.0 line |
These are the 2.0 tables, not the old 1.1 tables
gkm-bundle-parquet 2.0.0 writes table spec sections 2.0: one table per bundle section, 20 for a 1.1.0
bundle. These are not the 22 tables the 1.1 line published at v1/1.1/parquet/ (exported from BigQuery,
with other names and columns), and queries written for those need rewrites; see
Moving from the 1.1 Tables to 2.0. The tables differ from the
20 tables of the 1.2 line only where the 1.1.0 schema differs from 1.2.0.
Why a column set¶
The tool generates a bundle's tables from its JSON Schema. With no column set, every property the schema allows becomes a column. The 1.2.0 schema narrows ClinVar-GKM's classes to what the pipeline writes, so its default is the published tables. The 1.1.0 schema leaves many classes as general as the GA4GH classes they extend, so its default is much wider than the data:
| Built from the 2026-10-31 weekly delta (495,547 records) | Top-level columns | Leaf columns | JSON-text columns |
|---|---|---|---|
| 1.1.0 schema, generated default | 339 | 553 | 122 |
| 1.1.0 schema, ClinVar-GKM's 1.1.0 column set | 163 | 366 | 0 |
Both sets rebuild the same records. The default's extra columns are properties no 1.1 bundle holds (always NULL), and positions it keeps as JSON text because the schema leaves them open. The column set lists only the properties the 1.1 pipeline writes, each with a type.
The column set is a named projection (projection: clinvar-gkm-1.1.0-producer): the tool labels every file
and the manifest with that name and the column set's sha256, so the tables can't be mistaken for the default.
A projection could lose data if it left out a property a record holds, but in 2.0.0 that can't happen silently:
the build stops on any record holding a property the column set doesn't list, naming the record. A build that
completes kept every value, and the round-trip check below proves it record by record.
The 1.1.0 column set¶
| File | clinvar-gkm-1.1.0.columns.yaml |
| URL | https://clinvar-gkm.org/1.2/assets/column-sets/clinvar-gkm-1.1.0.columns.yaml |
| For | bundles of schema_version 1.1.0: every bundle in v1/1.1/ |
| Schema it pairs with | --bundle-schema https://w3id.org/clingen/schema/clinvar-gkm/1.1.0/clinvar-gkm-bundle.schema.json |
| Tool | gkm-bundle-parquet 2.0.0 |
--column-set takes the file or the URL. The set is the tool's own 1.1.0 test fixture, with one change: it
names the schema $id that the 1.1.0 URL actually serves (…/1.1.0/json/ClinvarGkmBundle, from the 1.1.0 tag),
so it pairs with that URL. The tool's fixture names the $id corrected after the tag, which the URL doesn't
serve, and is refused with it.
Build the tables¶
The commands run the tool with uvx, which runs a pinned release without installing it; with the tool installed
(Install), write gkm-bundle-parquet in place of uvx gkm-bundle-parquet@2.0.0.
They work in bash and zsh.
Prerequisites
- uv for
uvx(tested with 0.6.14), orgkm-bundle-parquet2.0.0 installed withpipxorpip(Install); it needs Python 3.10 or later (tested with 3.14). curl,python3(step 1) andshasum(macOS) orsha256sum(Linux).- Data: a
v1/1.1/bundle, found in step 1 and downloaded in step 2. A delta is 2 to 150 MB; the 24 MB delta in the examples built in 37 seconds with a 3.1 GB memory peak and verified in 29 seconds on a 16 GB Apple M2 Pro. For a monthly, see Time and memory first. - Each step continues from the one before: step 2 downloads a path that step 1 prints, and steps 3 and 4
read the file step 2 downloaded and the
parquet/folder step 3 writes.
1. Find the bundle¶
Read the paths from the line's own index.json. A frozen line keeps every path, but the folders differ by
month (the line's last month of deltas is in deltas/, earlier months in deltas/YYYY-MM/), so copy the path
rather than guess it.
curl -sSf --retry 5 -o index.json https://data.clinvar-gkm.org/v1/1.1/index.json && python3 -c '
import json
d = json.load(open("index.json"))
for m in d["datasets"]["monthly"]:
print("monthly", m["release"], m["source_release"], m["size"], m["path"])
for x in d["deltas"]:
print("delta ", x["release"], x["bundle"]["size"], x["bundle"]["path"])'
-f makes curl stop with the HTTP error when a request fails, instead of saving the server's error page, and
&& runs Python only when the download succeeded; --retry 5 rides out a brief server error (HTTP 5xx).
A monthly is a full bundle (4.5 to 4.8 GB compressed, about 90 million records); its source_release is the
weekly release it holds. The newest monthly is listed twice: under its own name and as
clinvar-gkm_00-latest.json.gz, a copy of it. A delta holds only what changed in one weekly release (2 to
150 MB). To get a full bundle for a week between monthlies, replay the deltas onto the monthly first with
replay-bundle.py --line v1/1.1; see Parquet for one weekly release
and Rebuild a past week.
2. Download it and check its sha256¶
B=v1/1.1/deltas/2026-09/clinvar-gkm-delta_2026-0928.json.gz
curl -f --retry 5 -O "https://data.clinvar-gkm.org/$B" -O "https://data.clinvar-gkm.org/$B.sha256"
shasum -a 256 -c "$(basename "$B").sha256"
B is a path from step 1. On Linux, sha256sum -c does the same as shasum -a 256 -c. The commands on this
page hold no # comments: zsh, unlike bash, reads # in a pasted command as text unless
setopt interactivecomments is on.
3. Build¶
uvx gkm-bundle-parquet@2.0.0 build --full clinvar-gkm-delta_2026-0928.json.gz \
--bundle-schema https://w3id.org/clingen/schema/clinvar-gkm/1.1.0/clinvar-gkm-bundle.schema.json \
--column-set https://clinvar-gkm.org/1.2/assets/column-sets/clinvar-gkm-1.1.0.columns.yaml \
--out parquet/
--column-set also takes the downloaded file. For a monthly, give the monthly's file name, and see
Time and memory first.
The tool reads the .sha256 sidecar beside the bundle and records it in manifest.json. A build that
completes lists the 20 tables and their rows; a build that stops names the section, the record key and the
property no column covers:
error: table submitter: … record: key clinvar.submitter:509943: top-level field(s) no column covers: [name]
No published 1.1 bundle stops the build (see What is verified). If one does, build that
bundle with no --column-set (the wide default) and open an issue.
If the build stops with a DuckDB Parallel CSV Reader error
On one of the 18 deltas (2026-08-16), gkm-bundle-parquet 2.0.0 stops with NotImplementedException: Not
implemented Error: The Parallel CSV Reader currently does not support a full read on this file, with or
without a column set. It comes from DuckDB reading the tool's own staging files, not from the bundle. Run the
same command again with --threads 1, and pass --threads 1 to verify too: both then complete, and the
round trip is identical.
4. Prove that nothing was lost¶
--roundtrip --full rebuilds the records from the tables and compares them with the bundle's own records, by
their canonical form (round trip).
To keep the rebuilt bundle, run rebuild parquet/ -o rebuilt.json.gz instead: it ends with
record-identical to the source when every record matches.
Time and memory¶
| Bundle | build (time, peak memory) |
verify --roundtrip |
Where |
|---|---|---|---|
| 2026-10-31 delta, 495,547 records | 22 s, 2.4 GB | 16 s, 0.9 GB | a 16 GB laptop |
| 2026-09-23 delta, 4,530,457 records (the largest) | 82 s, 3.3 GB | 66 s, 1.7 GB | a 16 GB laptop |
| a full bundle, about 92 million records | 3 h 19 min, 10.0 GiB | over 2 h | a 16 GB cloud machine |
| a full bundle, about 92 million records | 38 min, 65 GiB | 30 min | a 128 GiB machine |
Every delta builds on a laptop. The full-bundle figures are for the 1.2 line's 2026-11-15 weekly full
(A full bundle); a 1.1.0 monthly with this column set is the same size of job.
On a 16 GB machine it needs about 30 GB free in --work-dir and a few hours; a monthly was not built on a laptop
for this page. If you need only
part of a release, cut a mini-bundle instead: select takes the same
--bundle-schema and --column-set.
What is verified¶
Run on 2026-11-20 and 2026-11-21 with gkm-bundle-parquet 2.0.0, the published 1.1.0 column set and the 1.1.0
schema URL. No monthly was built whole (a job of hours, as above); the two monthlies at the ends of the line
were scanned instead, and every other v1/1.1/ bundle is made of their records and the deltas':
- Every published
v1/1.1/delta (18 deltas, 2026-07-06 to 2026-10-31, 10,267,303 records): each built,rebuildreported it record-identical to the source,verify --roundtrip --fullpassed, and a separate record-by-record comparison of the rebuilt bundle with the source, keeping array order, found no difference. The 2026-08-16 delta needed--threads 1(see the note under Build). - The newest monthly,
clinvar-gkm_2026-11.json.gz(source release 2026-10-31, 91,854,927 records), was streamed once, and every property each record holds was listed with the JSON kind of its value and the section each#/…pointer names, then compared with what the verified deltas hold. 528 records hold something no delta holds: the 38therapyand 10therapyGrouprecords, 463 somatic clinical impact propositions that point to a therapy, a therapy group or a condition set or carry a condition qualifier, and 17 statements and evidence lines with a method or condition extension no delta has. Built on their own with the column set, those 528 round-trip identically. Every other record holds only what the verified deltas hold. The scan took 26 minutes on the laptop. - The oldest monthly,
clinvar-gkm_2026-07.json.gz(source release 2026-06-27, 86,810,319 records), was streamed the same way on 2026-11-21: no key appears twice, and its sha256 matches its sidecar. Compared with what the verified deltas and the 2026-11 monthly hold, 14variationrecords hold something new: extensions nested inside anucleotideExpression(for exampleinvalidClinvarExpressionwith a string value, andexpressionMergedwith a boolean). Built on their own with the column set, those 14 round-trip identically (verify --roundtrip --fullidentical;rebuildrecord-identical). - The monthlies between (2026-08, 2026-09 and 2026-10) were not scanned on their own. Each equals the 2026-07 monthly plus the deltas after it, as the delta-reconstruction check proved for each release when it was published, so each of their records is a record of the 2026-07 monthly or of a verified delta.
So every record any published v1/1.1/ bundle holds is covered by the 2026-07 and 2026-11 monthlies and the 18
deltas, and no published 1.1 bundle stops the build. A full bundle you
rebuild for one week is made of the same records.
The 1.0 line¶
The 1.0 line (v1/1.0/, schema 1.0.1) can't be built with gkm-bundle-parquet, with or without a column
set, for two reasons:
- Its schema closes each part of a class. In the 1.0.1 schema each class combines a GA4GH class with a
ClinVar-GKM part (
allOf), and the ClinVar-GKM part saysadditionalProperties: false. Read strictly, as the tool reads it, a variation may then hold onlyextensions, and a statement onlyextensions,propositionandhasEvidenceLines. The generated default has no column forid,typeorconstraints, and a column set can't add a property the schema doesn't allow, so the build stops on the first variation. The 1.1.0 schema fixed this. - Some bundles hold a key twice. In 10 of the 15 published
v1/1.0/deltas, one to sevenallelekeys appear twice, with differentexpressions. The tool refuses a bundle with a repeated key (section allele, key ga4gh:VA.…: appears 2 times).
Use the 1.1 line instead. v1/1.1/ holds a bundle for every release v1/1.0/ holds: the same monthlies
(2026-07 to 2026-10) and the same weekly deltas (2026-07-06 to 2026-10-11), built from the same ClinVar
releases with schema 1.1.0. Build the tables from the v1/1.1/ bundle of the release you need, as above. The
1.0 bundles themselves stay published unchanged; see Previous Releases.