The Reference File Is Part of the Result: A Genome Build Audit for UK Pipelines
Photo: Gihangamage, CC BY-SA 4.0, via Wikimedia Commons
Here is a small horror story that plays out somewhere in the UK most weeks. Two files arrive on the same Tuesday. Both are described as GRCh38. Both contain a variant at position 5,000,000 on chromosome 1. One says the reference base is A. The other says G. Neither pipeline errors. One of them simply produces a report that is wrong in a way nobody will notice for six months.
The cause is almost always the same: 'GRCh38' is a label, not a specification. Two files can both honestly claim it and still disagree about contig names, patch level, ALT contigs, or whether anyone lifted anything over from GRCh37 along the way.
Which build, and then which file
There are three assemblies in play in UK work right now. GRCh37 (hg19) still haunts legacy rare disease panels, older array data and anything descended from a study designed before about 2015. GRCh38 is the current default — the NHS Genomic Medicine Service and the National Genomic Test Directory work on it, and UK Biobank's whole-genome sequencing is distributed on it, even though its array data have long been on GRCh37. And T2T-CHM13 is arriving quietly at the edges, mostly in research and in anyone working through the remaining gaps.
Knowing the build is the easy half. The harder question is which file. GRCh38 has patch releases — p14 is the one most reference bundles now ship — and patches add sequence, which means coordinates can shift. There are analysis sets and assembly sets. There are ALT contigs and a decoy. Two labs can both be 'on GRCh38' and be using genuinely different reference sequences.
Three small differences that break things silently
The chr prefix. Ensembl-style references name chromosomes 1, 2, MT. UCSC-style references use chr1, chr2, chrM. A VCF with one convention against a FASTA with the other will not always fail loudly. Sometimes it just drops contigs and carries on with a subset.
Mitochondria. MT versus chrM is the same problem wearing a different hat, and behind it sits the rCRS versus RSRS question, which matters more than most pipelines acknowledge.
ALT and decoy contigs, and the pseudoautosomal regions. If your caller was configured for a primary assembly and your reference includes ALT contigs, reads can be assigned in ways you did not intend. On chrX and chrY, PAR handling differences between callers produce apparent sex-chromosome variants that are artefacts of convention.
Transcript versions are a second clock
A variant can be correctly placed and still be annotated wrongly. MANE Select has done a great deal to standardise clinical transcript choice between RefSeq and Ensembl, but only if your annotation file is actually the version you think it is. A GTF built for one GENCODE release against a FASTA from another is a recipe for silent nonsense. Worse, a variant annotated against a stale transcript can read as missense when it is synonymous — the sort of finding that survives review because it looks plausible.
When liftover is safe, and when it is not
Chain files are a coordinate transformation, not a re-analysis. For regional summaries, QC, or a quick look at whether two datasets overlap, liftover is fine and useful.
It is not fine for clinical reporting. It is not fine for indels sitting near repeat boundaries, where the transformation can shift a breakpoint by a few bases and change the protein consequence. It is not fine for genes in segmental duplications, where the chain file has several plausible answers and picks one. And it is never fine to liftover final calls when the original reads are still sitting on disk — re-call from the CRAM instead, because that is a genuine re-analysis rather than a relabelling.
A twenty-minute audit before your next run
- Check the VCF header's contig lines against your FASTA's
.fai. They should match in name and length. - Look at the
M5tag in the CRAM header. That is the MD5 of the reference used, and it is the single most useful provenance clue you will find. - Run
bcftools norm --check-ref eagainst the reference you intend to use. It will tell you, politely, that your REF alleles do not match. md5sumyour FASTA and write the value down somewhere that is not your terminal scrollback.- Confirm that every container in your workflow pins the same reference and annotation versions. A Nextflow pipeline where one process mounts a different reference mount is a classic.
What belongs in the README
One line is enough, if it is the right line:
Reference: GRCh38.p14 (Genome Reference Consortium), FASTA md5
<hash>, retrieved from<source>on 2026-11-30. Annotation: GENCODE v44 / MANE v1.3. Liftover: none. Verified withbcftools norm --check-ref eon 2026-12-01.
That sentence is worth more than an afternoon of debugging, and it costs thirty seconds. Treat the reference genome like a reagent with a lot number, because that is exactly what it is.