Skip to content

Output "Bundle" Format Overview

What this page answers

How a ClinVar-GKM bundle is laid out: its sections, how one record points to another, and the schema that validates it. Read it first, before the statement and variation pages, or whenever you open a bundle or a Parquet table and need to know where a record lives. For the ideas behind the data, start with Key Concepts.

The ClinVar-GKM release file uses a bundle format — a single JSON object with named sections at the root level. A bundle is a dictionary-style approach to organizing a large amount of data across heterogeneous classes in a single file, where each section is a keyed collection of objects of the same class. The key is the object's unique identifier, and the value is the complete object.

This design eliminates duplication (a sequence reference shared by thousands of locations appears once), keeps individual objects compact, and enables efficient lookups by ID.

Orientation

The 20 sections hold four kinds of record. Each record names the others it depends on with a #/section/key pointer, so a reader follows pointers from a statement down to the sequence:

Kind Sections What it holds Points to
Statements scv, vcv, rcv A classification: one submission (SCV), or ClinVar's aggregate for a variant (VCV) or a variant and condition (RCV) Its proposition; its submitters; its evidence lines
Evidence lines evidenceLine The statements an aggregate counts (contributing) or sets aside (non-contributing), and an SCV's somatic evidence The scv, vcv or rcv statements it cites; an SCV's line, the proposition it targets
Propositions propositionPathogenicity, propositionOncogenicity, propositionSomaticClinicalImpact, propositionClinvarCustom What a statement claims: a variant (subject) related to a condition or therapy (object) — see proposition variation; condition, conditionSet, therapy or therapyGroup
Variants and concepts variation, allele, copyNumberCount, copyNumberChange, location, sequenceReference, gene, condition, conditionSet, therapy, therapyGroup, submitter The ClinVar variation as a Cat-VRS categorical variant and its VRS alleles and locations; conditions and condition sets; therapies; submitters variation → allele, copyNumberCount, copyNumberChange or location; those → location → sequenceReference; variation → gene; conditionSet → condition or conditionSet

A typical path: an scv statement → its proposition → the variation it is about → that variation's allele → location → sequenceReference. A vcv or rcv statement reaches its SCVs through evidenceLine records. Every published bundle resolves every pointer; a delta holds only the records that changed, so some of its pointers name records in the full bundle.


Structure

The root object, one key per section (a bundle carries only the sections it has records for):

{
  "sequenceReference": { "<key>": { ... }, ... },
  "location":          { "<key>": { ... }, ... },
  "allele":            { "<key>": { ... }, ... },
  "copyNumberCount":   { "<key>": { ... }, ... },
  "copyNumberChange":  { "<key>": { ... }, ... },
  "gene":              { "<key>": { ... }, ... },
  "variation":         { "<key>": { ... }, ... },
  "condition":         { "<key>": { ... }, ... },
  "conditionSet":      { "<key>": { ... }, ... },
  "therapy":           { "<key>": { ... }, ... },
  "therapyGroup":      { "<key>": { ... }, ... },
  "submitter":            { "<key>": { ... }, ... },
  "propositionPathogenicity":         { "<key>": { ... }, ... },
  "propositionOncogenicity":          { "<key>": { ... }, ... },
  "propositionSomaticClinicalImpact": { "<key>": { ... }, ... },
  "propositionClinvarCustom":         { "<key>": { ... }, ... },
  "evidenceLine":         { "<key>": { ... }, ... },
  "scv":               { "<key>": { ... }, ... },
  "vcv":               { "<key>": { ... }, ... },
  "rcv":               { "<key>": { ... }, ... }
}

Sections

Variation Data Sections

These sections contain the VRS and Cat-VRS variant data:

sequenceReference — Reference sequences (chromosomes, transcripts) with refget accessions, molecule type, and assembly information. Keyed by refget accession (e.g., SQ.0iKlIQk2oZLoeOG9P1riRU6hvL5Ux8TV).

location — Sequence locations with start/end coordinates. Each location references its sequence via #/sequenceReference/{key}. Keyed by VRS location ID (e.g., ga4gh:SL.Eg_6kV6Bb4FMjm9kEolHZ_4NhU8lBEsZ).

allele — VRS alleles with state and expressions (SPDI, HGVS, gnomAD). Each allele references its location via #/location/{key}. Keyed by VRS allele ID (e.g., ga4gh:VA.ELQCnIBGqaTl0AEE0Az18XZ2cgIHAQIY).

copyNumberCount — VRS CopyNumberCount records for copy number variants with absolute copy counts. Each references its location via #/location/{key}. Keyed by VRS ID.

copyNumberChange — VRS CopyNumberChange records for copy number variants with relative change types (gain, loss). Each references its location via #/location/{key}. Keyed by VRS ID.

gene — Gene MappableConcepts with NCBI Gene primaryCoding and HGNC mapping. Keyed by ncbigene:{gene_id} (e.g., ncbigene:3077).

variation — ClinVar variations with their defining constraints, cross-references, HGVS expressions, and gene associations. Most variations are represented as CanonicalAlleles with a defining VRS allele (via #/allele/); copy number variants use a defining location (via #/location/); complex variants use a generalized representation. Keyed by clinvar:{variation_id} (e.g., clinvar:10).

Supporting Data Sections

These sections contain the condition, therapy, submitter, and proposition reference data:

condition — Trait and disease concepts from ClinVar, with MedGen primary coding and cross-references to OMIM, MONDO, HPO, Orphanet, and MeSH. Keyed by clinvar.trait:{trait_id} (e.g., clinvar.trait:9580).

conditionSet — Multi-condition groupings with member references (concepts → #/condition/ or #/conditionSet/) and a membership operator (AND or OR). Keyed by clinvar.traitset:{trait_set_id} for a ClinVar trait set (e.g., clinvar.traitset:1234), or clinvar.conditionset:vcv-{md5} for a set minted for a VCV aggregate.

therapy — Individual drug therapies (Therapy MappableConcepts) referenced by therapeutic-response propositions. Content-addressed and deduplicated (therapies have no native ClinVar id). Keyed by clinvar.therapy:{sha256}.

therapyGroup — Combination (multi-drug) therapies (TherapyGroup ConceptSets) whose concepts reference member therapies via #/therapy/, with a membership operator. Content-addressed and deduplicated. Keyed by clinvar.therapygroup:{sha256}.

submitter — Submitting organizations with name and identifier. Keyed by clinvar.submitter:{submitter_id} (e.g., clinvar.submitter:500139).

propositionPathogenicity, propositionOncogenicity, propositionSomaticClinicalImpact, propositionClinvarCustom — Classification propositions defining what a statement asserts (proposition type, predicate, subject, object, qualifiers). Propositions are delivered in four sections grouped by meaning (what kind of claim the proposition makes), so a section holds one kind of claim at every level (SCV, VCV, RCV):

  • propositionPathogenicity — VariantPathogenicityProposition (germline classifications); subject → object (a #/condition/ or #/conditionSet/), with typed qualifiers on SCVs (geneContextQualifier, modeOfInheritanceQualifier, penetranceQualifier).
  • propositionOncogenicity — VariantOncogenicityProposition; subject → object (the tumor type, a #/condition/ or #/conditionSet/).
  • propositionSomaticClinicalImpact — VariantClinicalSignificanceProposition (SCV, VCV, RCV) and the VariantDiagnosticProposition, VariantPrognosticProposition and VariantTherapeuticResponseProposition that SCV evidence lines target. For Therapeutic Response, object references the therapy (#/therapy/ single, or #/therapyGroup/ combination) and the condition moves to conditionQualifier (#/condition/ or #/conditionSet/); the others point object at a condition.
  • propositionClinvarCustom — the 9 Clinvar* types (e.g. ClinvarRiskFactorProposition, ClinvarDrugResponseProposition) plus ClinvarUndefinedProposition — open subtypes of the VA-Spec SubjectVariantProposition base, each carrying its own real type name; subject → object with typed qualifiers (geneContextQualifier, modeOfInheritanceQualifier, penetranceQualifier).

Each contains the SCV, VCV, and RCV propositions of its kind. Keyed by proposition ID (e.g., SCV001234567-PATH for SCVs, VCV000012582-G-PATH-CP for VCVs). A #/proposition<Meaning>/{id} pointer names the exact section a proposition lives in; the section is a function of the proposition type alone.

Statement Sections

These sections contain the classification statements:

evidenceLine — Evidence line records referenced by statements via hasEvidenceLines arrays of #/evidenceLine/ pointers. Merges SCV, VCV, and RCV evidence lines into a single section: somatic clinical impact SCV evidence lines are keyed clinvar.submission:{scv_id}.{version}, and VCV and RCV evidence lines are keyed by their statement id plus .contributing or .non-contributing.

scv — Submitted classification statements. Each SCV carries a classification, strength, direction, proposition reference, contributions (with submitter references), evidence line references, citations, assertion method, and extensions with submitted condition provenance. Keyed by clinvar.submission:{scv_id}.{version}.

vcv — Variation-level aggregate classification statements. VCVs aggregate SCVs across a variation by classification, priority (somatic tiers), and submission level contribution. Evidence line references point to records in #/evidenceLine/. Keyed by the VCV layer ID.

rcv — Condition-level aggregate classification statements. RCVs follow the same aggregation structure as VCVs but are scoped to a specific RCV accession (variation + condition). Evidence line references point to records in #/evidenceLine/.


JSON Pointer References

Objects reference each other using #/{section}/{key} strings instead of embedding full objects inline. This keeps the file compact and enables consumers to resolve references by looking up the key in the named section.

Reference Patterns

Pattern Example Resolves To
#/sequenceReference/{key} #/sequenceReference/SQ.0iKlIQk2oZLoeOG9P1riRU6hvL5Ux8TV Sequence reference object
#/location/{key} #/location/ga4gh:SL.Eg_6kV6Bb4FMjm9kEolHZ_4NhU8lBEsZ Sequence location object
#/allele/{key} #/allele/ga4gh:VA.ELQCnIBGqaTl0AEE0Az18XZ2cgIHAQIY VRS allele object
#/gene/{key} #/gene/ncbigene:3077 Gene object
#/variation/{key} #/variation/clinvar:10 Categorical variant object
#/condition/{key} #/condition/clinvar.trait:9580 Condition object
#/conditionSet/{key} #/conditionSet/clinvar.traitset:1234 Condition set object
#/submitter/{key} #/submitter/clinvar.submitter:500139 Submitter object
#/propositionPathogenicity/{key} #/propositionPathogenicity/SCV001234567-PATH Proposition object (pathogenicity)
#/propositionOncogenicity/{key} #/propositionOncogenicity/SCV002345678-ONCO Proposition object (oncogenicity)
#/propositionSomaticClinicalImpact/{key} #/propositionSomaticClinicalImpact/SCV003456789-TR Proposition object (somatic clinical impact)
#/propositionClinvarCustom/{key} #/propositionClinvarCustom/SCV004567890-RF Proposition object (ClinVar custom)
#/scv/{key} #/scv/clinvar.submission:SCV001234567.1 SCV statement object
#/vcv/{key} #/vcv/VCV000012582.63-G-PATH-CP VCV statement object
#/rcv/{key} #/rcv/RCV000012345.8-G-PATH-CP RCV statement object

Resolving References

To resolve a reference string like #/allele/ga4gh:VA.abc123:

  1. Split on / — the second segment is the section name (allele), the third is the key (ga4gh:VA.abc123)
  2. Look up the key in the named section of the root object
  3. The value at that key is the resolved object

Reference Depth

References are one level deep — a resolved object may itself contain references, but those are always to other root-level sections, never nested references within references. A consumer can fully resolve any object by following at most 2-3 hops (e.g., variation → allele → location → sequenceReference).


MappableConcept Pattern

Several fields across statements use a MappableConcept structure — a typed object with a display name, optional primary coding, and optional extensions:

{
  "conceptType": "Classification",
  "name": "Pathogenic",
  "primaryCoding": {
    "code": "pathogenic",
    "system": "ACMG Guidelines, 2015"
  },
  "extensions": [ ... ]
}

Fields that use this pattern:

  • classification — the clinical significance label (conceptType: "Classification")
  • strength — the evidence strength (conceptType: "Strength")
  • quality — the quality of the assessment, from the review status or submission level (conceptType: "Quality")
  • evidenceOutcome — the evidence line outcome (conceptType: "Outcome")
  • strengthOfEvidenceProvided — the evidence line strength (conceptType: "Strength")

The conceptType identifies the kind of concept. The name is the human-readable display value. The primaryCoding provides a machine-readable code and system when available. SCV classifications and strengths may carry primaryCoding; aggregate VCV/RCV classifications and strengths, qualities, evidence outcomes, and evidence line strengths have only conceptType and name (plus extensions where their class defines them). Each field's ClinVar profile is listed on its Data Model class page.


Bundle Schema

The bundle structure described above is formalized as a JSON Schema, authored to the GKM Starter Kit bundle-schema conventions:

JSON Schema: clinvar-gkm-bundle.schema.json

  • Draft 2020-12, root type: object — each root property is one of the bundle sections, and additionalProperties: false rejects unknown sections.
  • Each section is a keyed map whose keys must match the exact id format the pipeline builds (patternProperties — for example ^ga4gh:VA\.[0-9A-Za-z_-]{32}$ for allele and ^clinvar\.submission:SCV[0-9]{9}\.[0-9]+$ for scv), and whose values $ref a ClinVar profile by versioned W3ID URI — ClinvarAllele, ClinvarCondition, ClinvarScvStatement, the ClinvarVariant*Proposition profiles, and so on. Every section points at a ClinVar profile; the evidenceLine section picks ClinvarSomaticEvidenceLine or ClinvarAggregateEvidenceLine by key.
  • No section is individually required, so the same schema validates a monthly full bundle, a weekly delta, and a sub-bundle extract — each carries only the sections it touches.

Each ClinVar profile is its GA4GH class narrowed to exactly what the pipeline writes, so a record that validates is also a valid GA4GH record. An Implementation Schema explains the narrowing and its rules.

The schema constrains the bundle's shape (which sections may appear, how their keys are formed, and what each value validates against). The starter-kit's companion invariant — that every #/section/key pointer resolves within the bundle — is a producer-side guarantee, not expressible in JSON Schema alone.

Validating with the GKM Toolkit

The GKM Toolkit (ga4gh.gkm) validates a bundle against this schema when you supply the ClinVar-GKM schemas and the GA4GH schemas they reference, as a validator= for validate_bundle_schema. Every published bundle is validated this way before release (Release Validation); Working in Python shows the code. The toolkit's loader (load_bundle, resolve, export) needs upstream updates before it reads ClinVar-GKM bundles.


Parquet Output

In addition to the JSON bundle, the latest release is published as typed Parquet files, one per bundle section (20 tables). They are built from the published bundle by gkm-bundle-parquet 2.0.0, not by the assembler. Every property of a record is a typed column, named after the bundle property, with references as bare ids, which makes them suitable for analytical workloads, DuckDB, pandas, or Apache Spark. The tables hold the records without loss: the tool rebuilds the bundle's records from them.

See Export & Distribute for how the Parquet files are produced (derived from the bundle, latest release only). To query them — every table's columns, how the tables join, and runnable recipes — see Query the Data.


Inlining References

A #/section/key reference resolves with one dictionary lookup in the bundle; ID References shows a small resolve() helper, and Working in Python follows a statement down to its sequence reference. The GKM Toolkit's Bundle.export() inlines references for the bundles it can load; its loader does not yet read ClinVar-GKM 1.1.0 bundles (see Loading bundles).


See Also