User Story: Harmonizing ClinVar by VRS Identity¶
Why this matters
ClinVar is the largest public collection of expert interpretations linking genetic variants to health conditions. But using it alongside other resources has meant reconciling how each one describes a variant — HGVS strings, genomic coordinates, assembly versions — even when they mean the exact same change. ClinVar-GKM republishes ClinVar in the GA4GH Genomic Knowledge Model (GKM): every variant carries a computed VRS identifier — a content-based fingerprint that is identical wherever that same change appears — and every classification is a structured VA-Spec statement with its evidence and provenance attached. So you can look up a variant's ClinVar classifications by identity, and line ClinVar up against any other VRS-aware dataset, without translating coordinates.
At a glance
- Implementer — ClinGen / ClinVar-GKM (a transformation of NCBI ClinVar)
- Products — VRS, Cat-VRS, VA-Spec, GKM-Core
- Pattern — Cross-source variant harmonization
- Tools — vrs-python and va-spec-python; the published clinvar-gkm bundle
- Status — In production: generally available since 1.1.0; current line 1.2
New to GKM datasets?
The GA4GH GKM Starter Kit is the best place to get oriented — it collects the reference libraries, the GKM Toolkit for loading and exploring bundles, and other user stories showing how projects put GKM to work. clinvar-gkm is one such producer.
The challenge¶
A lab or knowledgebase that wants to annotate its variants with ClinVar's classifications has to answer "is my variant the same variant ClinVar classified?" — a surprisingly hard question when the two sides use different HGVS transcripts, 0- vs 1-based coordinates, or different genome builds. Teams end up maintaining brittle normalization code just to join two tables, and the join silently misses variants whose descriptions don't line up. And once a match is found, ClinVar's flat XML says what the classification is but not, in a machine-actionable way, who made it, how, or against which method.
What GKM enables¶
clinvar-gkm removes both frictions:
- Identity, not description. Each ClinVar variant is represented as a Cat-VRS
CategoricalVariantover one or more VRS alleles. The VRS allele id (ga4gh:VA.…) is a digest of the normalized sequence change, so the same change computed from any other source produces the same id — the join is an equality check, no coordinate math. - Structured knowledge with provenance. Each classification is a VA-Spec
Statementasserting aProposition(variant → condition) with its strength, review status, submitterContributions, and citations — the same shape whether it came from a single submitter (SCV), a variant-level aggregate (VCV), or a condition-level aggregate (RCV). - One self-describing file. Everything is delivered as a bundle of
named sections that reference each other by
#/section/idpointers, so a variant, its classifications, conditions, and submitters are all reachable from one download.
The data¶
Take the ClinVar expert-panel call on BRCA1 c.68_69del (a pathogenic frameshift). In the bundle it
is a small connected graph — the classification statement points at a proposition, which points at the
variant, which resolves down to a VRS allele:
// scv/ — the expert-panel classification statement
{
"id": "clinvar.submission:SCV004101425.2",
"type": "Statement",
"classification": { "name": "Pathogenic", "primaryCoding": { "code": "pathogenic", "system": "ACMG Guidelines, 2015" } },
"quality": { "conceptType": "Quality", "name": "expert panel" },
"proposition": "#/propositionPathogenicity/SCV004101425-PATH",
"contributions": [ { "contributor": "#/submitter/clinvar.submitter:509268", "activityType": "evaluated", "date": "2024-06-11" } ]
}
// propositionPathogenicity/ — what it asserts
{ "type": "VariantPathogenicityProposition", "predicate": "isCausalFor",
"subject": "#/variation/clinvar:17662", "object": "#/condition/clinvar.trait:76328" }
// variation/ → allele/ → the VRS identity you can join on
{ "id": "clinvar:17662", "type": "CategoricalVariant", "members": [ "#/allele/ga4gh:VA.EE08XW4IpzeWhJAwComKOSmsPHTcP-1R" ] }
Any dataset that computes the same ga4gh:VA.EE08XW4IpzeWhJAwComKOSmsPHTcP-1R allele — a VCF annotation
pipeline, gnomAD, another knowledgebase — matches this ClinVar classification exactly, and can then read
its strength, review status, submitter, and condition straight from the bundle.
The same join with the Parquet tables¶
The published Parquet tables answer the same question with one query, with no bundle to parse. Given VRS allele
ids for your variants (computed with vrs-python, or read from a VRS-annotated VCF), look them up in variation
and read ClinVar's call from vcv.
Prerequisites
The DuckDB CLI (tested with 1.5.4) and curl, in bash or zsh. The
query reads two published tables of the newest release, variation.parquet (1.7 GB) and vcv.parquet
(148 MB); it finishes in about 2 seconds on a laptop. Tested on the 2026-11-15 release.
BASE="https://data.clinvar-gkm.org/v1/1.2/parquet"
curl -fO "${BASE}/variation.parquet"
curl -fO "${BASE}/vcv.parquet"
WITH mine AS ( -- your VRS allele ids
SELECT * FROM (VALUES ('ga4gh:VA.EE08XW4IpzeWhJAwComKOSmsPHTcP-1R')) AS t(vrs_id)
),
v AS ( -- each ClinVar variant and its VRS allele
SELECT id, name, unnest(members).id AS member_id FROM 'variation.parquet'
),
call AS ( -- ClinVar's germline pathogenicity call per variant
SELECT 'clinvar:' || CAST(substr(id, 4, 9) AS INTEGER) AS variation_id,
classification.name AS clinvar_call, quality.name AS level
FROM 'vcv.parquet'
WHERE regexp_matches(id, '-G-PATH$')
)
SELECT m.vrs_id, v.id AS variation_id, v.name AS variation_name, c.clinvar_call, c.level
FROM mine m
JOIN v ON v.member_id = m.vrs_id
LEFT JOIN call c ON c.variation_id = v.id;
vrs_id variation_id variation_name clinvar_call level
ga4gh:VA.EE08XW4IpzeWhJAwComKOSmsPHTcP-1R clinvar:17662 NM_007294.4(BRCA1):c.68_69del (p.Glu23fs) Pathogenic expert panel
Run it in duckdb started in the folder holding the two files. For many ids, replace mine with a file
(read_csv('my-vrs-ids.txt', header = false, columns = {'vrs_id': 'VARCHAR'})). For every ClinVar variant at
once, keyed by VRS id and by VCF position, see the
VRS-keyed harmonization table recipe.
The tools used¶
- vrs-python — compute the VRS allele id for your own variants
to join against clinvar-gkm's
allelesection (GKM-Core + VRS). - va-spec-python — construct and validate the classification
Statements /Propositions as typed Python models. - GKM Toolkit (
ga4gh.gkm) — validates the bundle against the ClinVar-GKM schemas you supply. Its loader (load_bundle,resolve,export) needs upstream updates before it reads ClinVar-GKM bundles, so follow the#/…pointers with a dictionary lookup, as in Working in Python. - The clinvar-gkm bundle — the monthly full plus weekly deltas on Cloudflare R2.
How to explore this¶
- Get the data — Downloads.
- Understand the shape — Output Format and
ID References (including a small
resolve()helper for pointers). - Pull one variant's full graph —
gkm-bundle-parquet selectcuts a variant's propositions and statements out of a published bundle into a mini-bundle (a second pass adds what those statements point to); see One variant. - See more GKM use cases — the GKM Starter Kit's user stories.