Skip to content

Multi-source reconciliation — scope

Status: Draft scope (not yet approved for build) Date: 2026-07-29

Problem

One person accumulates genomic results from several places: a consumer genotyping export, a targeted panel from a fertility clinic, a pharmacogenomic report, later perhaps exome or genome sequencing. They overlap partially, disagree occasionally, and differ enormously in how much they can be trusted.

The record absorbs each of them. It cannot relate them. Everything below is present today and invisible only because there is one source.

Identity does not survive across files. variants carries vrsDigest but has no unique index — no index at all — and deduplication is a Set scoped to a single import call. The same allele from two sources becomes two unrelated rows, two markers on the chromosome map, two entries in a Phenopacket export.

VRS does not solve it across builds. vrsAllele() uses `${build}:${chrom}` as the sequence reference, so the same variant called on GRCh37 and on GRCh38 yields different digests. The schema comment describes the identifier as "build-stable"; it is stable given a build, which is a weaker claim than it reads as. The module already documents the related limitation that these are not spec-compliant ga4gh:VA. identifiers, since no refget accession is resolved — so they will not match another lab's VRS identifiers either.

Coverage silently drops a build. The page derives one build from variants[0]?.genomeBuild — whichever variant happens to sort first on chromosome 1 — and filters coverage to it. With a GRCh37 array and a GRCh38 panel, one source's coverage disappears from the display with no warning.

Nothing records how far a source can be trusted. sequencingFiles.kind distinguishes an array export from a CRAM, and no code in the genetics module reads it. A chip inference and a targeted-panel call at the same position carry identical ClinVar evidence, because reviewStars measures confidence in the classification — a different axis entirely from confidence in the observation. When two sources disagree, the record has no basis for preferring either.

A negative result has nowhere to go. The clinically meaningful output of a carrier screen is that a named set of genes is clear. lab-report is a kind value with no import path, and coverage intervals model the idea only if the lab supplies a BED file, which clinics do not.

Design

Observation, not variant, is the unit on screen

Keep one row per observation — that is the honest record of what each assay saw, and merging them would destroy provenance. Group them for display and export by vrsDigest within a build, so a variant seen by three sources reads as one finding observed three times, with the sources listed.

An index on vrsDigest makes the grouping cheap and is the missing constraint regardless.

Assay reliability is a property of the file

Derive a reliability tier from sequencingFiles.kind in the shared genetics vocabulary, beside statusMeta and classificationMeta, for the same reason those live there: one source of truth, no tier decided at a call site.

Tier Kinds Reading
Sequenced vcf, gvcf, bam, cram, fastq Alleles observed directly
Reported lab-report A laboratory's stated result
Genotyped array-raw Fixed panel, inferred call, indels and CNVs invisible
Unknown other, bed No claim

This is deliberately about the assay, never about the person. It is also orthogonal to the ClinVar confidence in the evidence confidence gating scope: a well-attested classification of a badly observed allele is still doubtful, and the two must not be collapsed into one score.

Where sources disagree, show both with their tiers. Do not resolve.

Coverage is per build and per source

Summarise coverage for every build present rather than one guessed build, and keep the per-source breakdown the summary already half carries. "Assessed by something" and "assessed by the panel" are different questions and a person importing a clinic result is asking the second.

Build conversion becomes a precondition

Recognising that an array call and a clinic call describe the same variant requires coordinate conversion, which the record deliberately refuses to fake. liftoverNeeded and liftoverFrom already record the need. Until conversion exists, the honest behaviour is to group within a build, show cross-build variants as unreconciled, and never imply that two builds' findings have been compared.

Open questions

  • Where does conversion come from, given chain files are not shipped? A declared equivalence recorded by the user is worse than a computed one but better than silence.
  • Should an observation group carry a preferred source, or stay unranked with tiers shown? Ranking is convenient and starts making clinical judgements.
  • Does a negative lab result belong in coverage, in a new assertion table, or as a document with structured provenance? It is a claim about absence, which nothing in the schema currently models.
  • If two sources disagree on zygosity for one allele, is that one observation group or two findings?

Not in scope

Merging observations into a consensus call. Automatic liftover. Ranking sources by anything other than declared assay kind. Parsing clinic PDFs, which belongs to the extraction queue.

Relationship to the other plans

Sequenced second, after evidence confidence gating and before array import — importing a second source into a model that cannot relate it to the first is what creates the duplicate-finding problem rather than exposing it. Population frequency and inheritance and pharmacogenomic guidelines both attach to the observation group rather than to a single row once this exists.