VDJdb build outputs#

Every file the build produces, what it contains, whether it ships, and who consumes it.

Status key: shipped in the release zip · artifact produced and uploaded by CI but not zipped · internal produced during a build, not published.


1. Release bundles#

Three core ZIPs per release, with optional web bundles. manifest.json names them by role, so consumers select by role rather than by asset order (ROADMAP §3.1).

Asset

Role

Contains

vdjdb-<version>.zip

primary

the new VDJdb format (§3)

vdjdb-legacy-<version>.zip

legacy

byte-layout-compatible with the historical release (§2)

vdjdb-airr-<version>.zip

airr

AIRR Rearrangement + Receptor/Reactivity (§4)

vdjdb-web-<version>.zip

web (opt-in)

Prepared legacy-browser tables, motifs and assets

vdjdb-web-structures-<version>.zip

web-structures (opt-in)

Prepared browser structure assets

Alongside them, as release assets rather than zip members: manifest.json, SHA256SUMS.

Build directories and storage#

vdjdb build --out out/ writes tables/, legacy/, airr/ and assembly reports/. Motifs, record confidence v3, the corpus index, the dashboard and release archives are separate stages, described in Build and release. A build directory is not itself a download bundle. Release members are selected explicitly by src/vdjdb/release/manifest.py; reports, raw inputs and old candidate directories cannot enter a ZIP through a wildcard.

Directory

Contents

Publication

tables/

Six normalized tables, joined view, generated schema and post-motif record scores

Primary bundle

legacy/

Full paired, chain and slim text projections plus metadata

Legacy bundle

airr/

Rearrangement, Receptor and Reactivity text tables

AIRR bundle

motifs/

TCRNET and optional TCREmp positional tables

Primary and legacy bundles

summary/

Checked HTML fragment staged from the offline dashboard

Primary and legacy bundles

corpus/

Search/reference corpus generated by vdjdb corpus build

Separate build output, outside the release bundles

reports/

QC, identity, annotation, timing and comparison reports

CI artifacts, outside the release bundles

release/

Selected ZIPs, manifest, checksums and identity lifecycle

Release assets

Assembly alone writes fourteen files: six .parquet, six .tsv.gz, vdjdb.parquet and vdjdb.schema.json. After vdjdb score-records, the primary table directory has sixteen files, including record_scores.parquet and record_scores.tsv.gz. These score files are optional bundle members for compatibility with historical builds; the hosted pipeline requires both. Gzip TSV is the portable text alternative to Parquet; there is no uncompressed normalized TSV and no joined TSV copy. Rebuilding removes obsolete uncompressed projections. The joined view repeats record attributes once per chain for convenience; the normalized tables remain the authoritative facts. Do not sum rows across these projections as distinct observations.

The legacy full, chain and slim files intentionally overlap. They serve existing consumers with different units and filters; “slim” names a column/row projection, not a compressed file format. Parquet is the compact choice for new applications. For a primary-only build use vdjdb build --no-legacy --no-airr --out out/; a complete release still requires all three projections. Generated TSV and TXT files larger than 1,000,000 bytes are stored locally as .tsv.gz or .txt.gz, with deterministic gzip metadata and no retained plain copy. This applies to legacy, AIRR, corpus, motif and report outputs. Smaller files may stay plain. Readers accept either form. Release packaging preserves gzip sources as .tsv.gz or .txt.gz members inside the ZIP. Readers resolve either form; packaging creates no oversized uncompressed staging files.

Local out/ can also contain retained candidate builds and audit evidence. Its total disk usage is not the release download size. Measure one candidate’s table directory and its ZIPs separately, and retain the accompanying input revisions and checksums when comparing sizes.


2. Legacy bundle - vdjdb-legacy-<version>.zip#

Ten required members, using .gz variants for compressed tables, under a single vdjdb-<version>/ directory. The logical member basenames are a contract; current readers resolve their gzip variants: vdjmatch looks inside the zip for vdjdb.txt, vdjdb.slim.txt and vdjdb_full.txt by basename, and vdjdb-web resolves the rest as <database.path>/<name>.

File

Rows (2026-06-03)

Cols

Consumer

vdjdb.txt

284,546

22

vdjdb-web; its schema is built from vdjdb.meta.txt

vdjdb.meta.txt

21 + header

8

vdjdb-web; must match vdjdb.txt column-for-column, in order

vdjdb.slim.txt

197,729

17

vdjmatch, standalone R/Python users

vdjdb.slim.meta.txt

16 + header

2

standalone users

vdjdb_full.txt

192,753

35

vdjmatch, standalone users

cluster_members.txt

55,636

19

vdjdb-web; parsed positionally, no header check

motif_pwms.txt

40,061

27

vdjdb-web; parsed positionally, no header check

vdjdb_summary_embed.html

-

-

vdjdb-web /overview, injected as an HTML fragment

LICENSE

-

-

-

latest-version.txt

40 lines

1

legacy self-update clients; line 1 must point at this zip

Optionally also cluster_members_tcremp.txt and motif_pwms_tcremp.txt, same positional schemas.

Column orders (positional contracts)#

vdjdb.txt (22): complex.id gene cdr3 v.segm j.segm species mhc.a mhc.b mhc.class antigen.epitope antigen.gene antigen.species reference.id vdjdb.score TCR_hash method meta cdr3fix web.method web.method.seq web.cdr3fix.nc web.cdr3fix.unmp

Production vdjdb-web additionally serves five appended evidence.* columns (§3.4).

vdjdb.slim.txt (17): gene cdr3 species antigen.epitope antigen.gene antigen.species complex.id v.segm j.segm mhc.a mhc.b mhc.class reference.id vdjdb.score TCR_hash j.start v.end

vdjdb_full.txt (35): the 31 chunk columns + cdr3fix.alpha cdr3fix.beta vdjdb.score TCR_hash

cluster_members.txt (19): species antigen.epitope antigen.gene antigen.species mhc.a mhc.b mhc.class gene cdr3aa x y cid csz v.segm j.segm v.end j.start v.segm.repr j.segm.repr

motif_pwms.txt (27): species antigen.epitope gene aa pos len v.segm.repr j.segm.repr cid csz count count.bg total.bg count.bg.i total.bg.i need.impute freq freq.bg I I.norm height.I height.I.norm antigen.gene antigen.species mhc.a mhc.b mhc.class

vdjdb-web parses cluster_members.txt and motif_pwms.txt positionally, against a fixed 19-entry and 27-entry column-type array and with no header check. An inserted, removed or reordered column mistypes or shifts the table without an error, so the column order of both files is a requirement, not a convention.

Preserved legacy quirks#

  • vdjdb_full.txt’s cdr3fix.* cells are Python dict repr, not JSON (single quotes). All 122,930 non-empty cells in 2026-06-03 are this form.

  • vdjdb.txt’s method / meta / cdr3fix use Python json.dumps defaults: ", " separators and ensure_ascii=True, so the en dash in M158–66 is escaped: it is written as \u2013. struct.json_encode() is not byte-compatible.

  • TSV fields are not wrapped in quotes. JSON cells contain literal double quotes; readers must disable CSV-style quote interpretation.

  • The web.method row of vdjdb.meta.txt has a space where a tab belongs, and all four web.* rows have a field shift. Reproduced in legacy, fixed in the new format.


3. New VDJdb format - vdjdb-<version>.zip#

A normalised star schema rather than one denormalised table. Six normalized tables plus the joined view. Parquet, with deterministic gzip TSV projections of the normalized tables for text readers. The joined convenience view is Parquet only. A rebuild removes obsolete uncompressed table projections. Legacy and AIRR text layouts remain unchanged. Use the primary ZIP or Parquet files with vdjmatch; its text-only linked-table loader does not discover .tsv.gz files.

Column names here are underscore_case, not the dotted names the legacy tables use: mhc_a, antigen_epitope, v_segm, cdr3nt_pgen. A dot is a table qualifier in SQL and blocks attribute access in most dataframe libraries, and these tables already mixed the two conventions - record_id and pmhc_id beside mhc.a. The rule is a plain dot substitution with case left alone, so TCR_hash and meta.donor.MHC ship as TCR_hash and meta_donor_MHC. The legacy tables do not move: they are a positional contract vdjdb-web parses.

vdjdb.schema.json states both names per column - name is what the legacy tables ship and what the registry indexes, ships_as is what these tables ship - and Columns is the generated table for each, so neither can drift from the build. The chunk format is unaffected: a submitted chunk still uses the dotted names.

3.1 records.parquet - one row per submitted record#

Primary key record_id, unique. A retained chunk row is one observation, reporting one or both chains. Chunks normally represent one publication; aggregates retain per-row references. method.* and meta.* sit here because they describe what the publication reports about the record.

The table has one row per retained publication report. Exact within-publication duplicates are merged; reports from different publications remain separate. When a publication appears in two chunk files, compatible rows merge and fill each other’s blanks. Different observations, such as a solved structure and the sort that found the receptor, remain separate. out/reports/repeated-references.tsv records these decisions. See the current master summary for database sizes.

The receptor is not here: a chain is an observation, so it is a row of chains, while vdjdb_full.txt folds both chains into paired columns and leaves half of them blank.

The generated column reference lists names, types and descriptions. Record fields cover identity, antigen, publication, sample, method, score and curation.

submitter, comment, chunk_id, meta_subset_frequency and method_pairing are kept here; the legacy build discards all five.

method_frequency preserves the source text; method_frequency_count and method_frequency_total preserve explicit numeric support (#696). Each explicit numeric cell takes precedence independently. If one is missing, assembly may parse that component from an x/X frequency string. A decimal or percentage alone cannot recover a count or denominator. The recorded review counted 43,231 records with a count and total, 17,700 with a percentage, 2,601 with a decimal frequency, and 129,109 with none. Where all three fields are present, vdjdb qc reports disagreement without repairing the source.

meta_subset_frequency is not filled from method_frequency. In that review it was populated on 2,412 records and left as submitted, because the records that do carry it are using it for a different quantity - method_frequency = 17/52 beside meta_subset_frequency = 0.70% is a clonotype’s count within a sorted subset beside that subset’s share of the sample, and both are real. Consumers must retain the source-defined denominator for each quantity; coalescing these columns would mix different measurements. Filling it in the build would have written 61,253 cells across 117 chunks, every one a copy of the column beside it, and mixed the two readings with nothing to tell them apart.

content_hash, the record state and the release/commit provenance are in the registry (§6), not here: they describe the record’s history rather than the record.

3.2 chains.parquet - one row per TCR chain of a record#

Primary key (record_id, gene). This is the level vdjdb.txt is written at. Chains are a separate table so that record fields are not duplicated per chain, as in vdjdb.txt, and not folded into paired alpha/beta columns, as in vdjdb_full.txt.

The generated column reference lists every chain field. The CDR3 markup guide explains repair reports, segment calls, coordinate slicing and their interpretation. Submitted sequences and V/D/J calls remain available beside repaired junctions, canonical calls and inferred segments, so consumers can distinguish the source observation from the build result.

j_segm is the J that ships, and it is not always the J the paper reported. Three values sit side by side: j_segm_submitted is the call as submitted, j_segm_arda is the allele arda.cdr3fix aligned the junction against, and j_segm is what ships. A J is not used when it misses the junction’s last 3 residues, anchor excluded and one mismatch beside the anchor tolerated: it is replaced by the one other gene of the chain’s locus that matches 3 or more, or by the one gene of its own family that matches 2 or more when nothing reaches 3. Ties are not broken, a call no other gene explains stands, and the junction itself is never altered. j_start and j_canonical are then about the gene that ships (#681; vdjdb.curate.jcalls.recall).

cdr3nt is inferred, not observed (#461): it is the most plausible nucleotide junction behind the amino-acid one, from the recombination model. 261,097 of 286,047 chains have one and each back-translates to its junction, but two models agree on only 7.2 % of the sequences, so the column is a representative history rather than evidence. cdr3nt_pgen is the reconstruction-stage model score and cdr3nt_margin its ratio to the runner-up score; 9.4 % of those chains have a margin below 1.1, indicating a close choice at that stage. Germline-flank replacement can follow without rescoring, so these values are not calibrated probabilities or uncertainty estimates for the final nucleotide string. The markup guide explains the scoring and coordinate conventions.

cdr3fix is not a column here. Every member of the legacy JSON blob is its own variable: cdr3_original is the sequence as submitted, the four fix_* / *_fix_type columns say what was done to it, and v_canonical / j_canonical say whether the anchors are the expected ones. In the legacy release the same field is a JSON number on one row and a string on the next. emit/legacy.py reassembles the blob on the way out, and nothing else may.

clonotype_id is CT plus 16 hex digits of a sha256 over (species, gene, cdr3, v.segm, j.segm). Records reporting the same receptor chain share it, and it is the level motif evidence and the independent-study support count attach at. clone_id is CX plus 16 hex digits over the record’s two sorted clonotype_ids, and is the empty string on the 99,459 records reporting a single chain.

Both are hashes of their own keys rather than counters, so adding or removing a chunk cannot renumber anything, and sha256 rather than a library hash function so that a dependency upgrade cannot renumber the database either. records.pmhc_id and records.epitope_id are the antigen-side equivalents. Identifiers is the reference: the five levels, the two mechanisms, the lifecycle fields and the seven invariants vdjdb identity check asserts.

The explicit coordinate fields in chains and the joined view are:

Nucleotide field

Amino-acid field

Meaning

v_end_nt

v_end_aa

Exclusive end of V

j_start_nt

j_start_aa

First included position of J

d_start_nt

d_start_aa

First included position of D

d_end_nt

d_end_aa

Exclusive end of D

All eight use 0-based, half-open junction space, including both conserved anchors. The nucleotide coordinates index cdr3nt. V/J offsets come directly from vdjtools.model.annotate_junctions, preserving boundaries inside codons. D placement comes from that same call, converted from its 1-based closed interval. For a nucleotide span [s, e), the amino-acid span is [s // 3, (e + 2) // 3): every codon touched is included, so two segments can overlap in amino-acid space. For example, D nucleotides [5, 7) touch residues [1, 3). V starts at zero; J ends at the junction length in the chosen unit. Unavailable coordinates are null, including all D coordinates on TRA chains. Coordinates are also null when the inferred sequence is absent or fails to translate to the shipped junction. These are annotation-derived boundaries, not observed nucleotide measurements.

The unsuffixed fields remain for compatibility. v_end and j_start retain the historical protein-alignment values and -1 sentinel; they need not equal the new amino-acid endpoints derived from nucleotide spans. d_start and d_end remain aliases of d_start_nt and d_end_nt. Legacy files, positional motif columns and cdr3fix JSON retain their existing names and values. Internal table names use dots (v.end.nt); exported tidy tables use underscores (v_end_nt).

d_segm is the curated D call, as the publication reported it. d_inferred, d_start and d_end describe the D of the recombination scenario that produced cdr3nt, so the coordinates index that sequence (0-based, half-open). They agree with the curated call at gene level on 78.4 % of the 40,892 beta chains that have one.

v_inferred and j_inferred record inferred calls where the publication left a segment blank. Both proposals ship in v_segm and j_segm, while the submitted fields stay unchanged. The known alpha/beta column supplies the inference locus. Tied candidates use the library’s first candidate. Fixer labels and boundaries retain the alignment result, including failed alignments.

The build rejects any present chain missing V, junction, J or fixer information, and any record with zero chains. These errors stop CI; no observation is dropped. Inferred calls describe the build’s inference, not a segment observed in the paper.

Two sources answer, in order: the recombination model (vdjtools.model.infer_nt_batch, with the blank side marginalised), then arda’s germline anchor table where the model declines - which is also the only source for a species no model covers, and is what fills the 74 macaque j.alpha blanks that nothing filled before. Until #658 this was a k-mer scan over res/segments.txt, a by-product of a 2023 IMGT import whose V half never worked at all: 3 non-empty guesses in 4,000 sequences.

v_end_inferred and j_start_inferred are the two sources of a V/J boundary, kept apart on purpose (#631). v_end and j_start are arda.cdr3fix’s answer, read off its protein alignment against the germline of the segment the record names, and -1 where it declined - 4,163 chains for v_end and 1,164 for j_start. The _inferred pair is the boundary a second germline alignment supports, from vdjtools.model.germline_boundary, which decides how far into the boundary codon the germline reaches rather than rounding to a residue. It is filled only where the first declined: 2,442 and 488 chains. Everywhere else it is -1, so the two are distinguishable by column and coalescing them cannot overwrite the shipped answer.

Two boundaries rather than one filled column, because they are answers to the same question with different precision and the shipped column is what vdjdb-web reads. Against the external nucleotide truth in tests/release/test_cdr3fix_accuracy.py the codon decision is exact on 92.9 % of v_end and 98.0 % of j_start, where a protein alignment rounding to whole residues - VDJdb’s k-mer scanner and arda.cdr3fix alike - is 71.8 % and 97.1 %. It is not promoted into v_end anyway: that is a change to what the database says about every record, which belongs to a curation decision and to its own declared rules, not to a build improvement. What it does do is replace -1, which carries nothing at all.

The _inferred pair used to come from the argmax recombination history behind cdr3nt instead. That was 11 points worse on v_end, because maximising P(sequence) explains N-region nucleotides as templated whenever it can; antigenomics/vdjtools#182 was opened from this measurement and fixed it. The legacy tables and the cdr3fix JSON vdjdb-web parses keep the alignment’s -1 untouched throughout.

d_posterior is the probability of the gene d_inferred names, from the same recombination scenario weights that named it - so the number beside the call is the probability of that call. Naming the D and placing it are separate questions and one estimator answers each: the model names the gene, the aligner places it. Measured on 4,000 real human TRB rearrangements whose D and coordinates come from the nucleotide sequence, the gene is right on 74.35 % of all rows and 99.80 % carry coordinates. TRBD1 and TRBD2 are short, heavily trimmed and similar, so the junction often cannot choose between them: filter on d_posterior; do not read d_inferred alone.

There is no d_entropy. It came from a separate estimator (arda.dpost) that named a different D gene from the one it annotated on 21.5 % of chains, and that estimator is retired: the posterior now comes from the scenario weights and there is no second distribution to take an entropy over.

3.3 evidence.parquet - long format, one row per piece of evidence#

Primary key (record_id, evidence_id). The table is long rather than wide because a record may have any number of pieces of evidence of any number of kinds: a wide table would be mostly empty and would gain a column per producer.

record_id, gene (empty when the evidence is record-level), evidence_id, evidence_type, evidence_source, evidence_value, evidence_score, first_seen_release.

evidence_type

evidence_source

evidence_value

evidence_score

independent_study

one other reporting reference

the same reference

total distinct reference count

motif_tcrnet

release tag

cluster id

cluster size, positive

motif_tcremp

release tag

cluster id

cluster size, positive

motif_tcrnet_nonmember

release tag

empty

0

motif_tcremp_nonmember

release tag

empty

0

structure_native

PDB

one PDB id

absent

structure_model

source model hash

metric name

metric value

Independent publication support is scoped to (clonotype_id, antigen_epitope), not an exact paired receptor or MHC restriction. Each other publication is a separate value; the numeric score remains the total number of distinct references, not the number of evidence rows. The original records and chains tables retain every publication’s observations, methods and metadata. Join these on the required receptor and pMHC identity to aggregate evidence at another resolution. A method reported for one partner is not transferred through a shared chain.

The existing motif run now writes evidence for its producer-owned scored cohort as well as its positive members. TCRNET joins species, chain, peptide and anchor-inclusive junction; TCREmp also requires the embedding input V/J calls. Both describe peptide-conditioned neighborhoods, not an MHC restriction. _nonmember rows mean the method scored that input but did not retain it in a motif. No row means unscored or unavailable. Nonmembership is not a nonbinding label. Keeping a separate type preserves positive-only motif filters in downstream consumers. Rerunning a selected method replaces both its positive and nonmember rows and refreshes vdjdb.parquet.

Pass vdjdb build --structure-metadata <input.tsv.gz> to attach the auxiliary structure metadata. Optional --structure-supplemental <metadata.tsv.gz> adds reviewed raw model metadata to this input within one build. It is off by default and remains off in hosted assembly/scoring pending matched-cohort extraction validation. Supplemental raw catalogues distinguish reported assignments from synthetic swapped pairs and mutants; public deposits contain no assay outcomes. The independent file audit checks those assets and links separately from the production evidence.

The input requires tcr_pmhc_hash and Boolean is_native, and native rows require one valid meta.structure.id PDB identifier. Exact existing chains.TCR_hash links propagate across all records of that complex, not to single-chain matches. Species and MHC class are checked against metadata when supplied, because the historical hash omits them. The build prints exact matched and unmatched hash counts. A structure row has empty gene, so it applies to its complete record. Identical repeated model annotations are deduplicated; conflicting values for one hash and metric fail instead of selecting the best value. Native evidence identifiers retain the source hash as well as the PDB accession.

When metadata also provides both anchor-inclusive junctions (cdr3.alpha, cdr3.beta) and antigen.epitope, the build associates unmatched predicted models with that three-field key. Each chain must have one unique nonmissing current V gene known to the species-specific nomenclature authority across all candidate records before context filtering. Missing calls do not create competing genes and remain missing; multi-call and unresolved nonmissing annotations are rejected, while allele-only variation is allowed. Source V/J annotations need not match current annotations. Provided source species, MHC components and class restrict propagation to compatible records; current record context is preserved. Documented H-2/H2- prefix spelling and later numeric synonymous HLA fields may agree; expression suffixes remain distinct. This model association does not prove identical complete receptor constructs. The build reports additional predicted and native source hashes and record links.

Native evidence additionally requires a compatible fully specified source pMHC context, or the same PDB ID on a current record with both junctions and peptide matching. The latter provenance route requires one current species/pMHC context for that source hash and PDB ID. Conflicting curated restrictions remain unlinked by provenance recovery. A recovered PDB association applies only to its matching PDB ID, even when another PDB ID shares the source hash. Hash-only metadata keeps the existing exact-hash API. No record annotation is rewritten by either association route.

Optional --structure-coordinates <coordinates_aa.tgz> adds molecular proof for unmatched source hashes independently of three-field association. It requires the complete identity columns from vdjdb.assemble.master.HASH_FIELDS, species and mhc.class in the metadata. Reviewed gene spelling synonyms may match the complete receptor and pMHC identity. Otherwise the producer reads the archive once and requires exact alpha and beta mature variable-domain sequences, rebuilt from explicit known V/J alleles and the recorded anchor-inclusive junctions. Gene-only or ambiguous allele calls do not establish a domain. The modeled beta domain may also have one extra terminal E after the exact reference domain; the exact untrimmed domain is always checked. The coordinate peptide must equal the recorded peptide, and species, both MHC components and MHC class must agree. Later synonymous HLA fields can be compared at protein resolution; expression suffixes are preserved. One matching chain does not establish a molecular link.

Archive members are <source-hash>_aa_coordinates.tsv, with one amino acid per Chain, ResNum pair and Residue containing its one-letter code. The required chain roles are TCR_alpha, TCR_beta and peptide. Each required chain must have contiguous residue numbers starting at 1. Members with a missing chain, an internal numbering gap or a different start are skipped rather than concatenated into molecular proof. The archive is an explicit input, never downloaded or extracted by the build. Recovery adds evidence to the existing table and retains the original source hash; it changes neither record identities nor TCR_hash. Hashes with no accepted association or molecular proof remain unlinked.

By default the domain proof uses the bundled reference models already used for AIRR contigs. --structure-full-germline can supplement missing explicit allele keys through the published vdjtools.model.reference.arda_full_germline API. Set ARDA_HOME to a pinned local reference root before starting the process, for example:

ARDA_HOME=/path/to/reference vdjdb build --structure-metadata input.tsv.gz \
  --structure-coordinates coordinates_aa.tgz --structure-full-germline --out out/

The root must already contain database/vdj/<organism>/alleles.fasta, markup.tsv and cdr3_anchors.tsv. This option neither downloads a reference nor changes the process environment or reference caches. Existing bundled flanks retain priority; absent explicit alleles remain unavailable. Preserve these raw inputs with the build recipe and their checksums.

Predicted metrics are separate flat values: num_contacts, ranking_confidence, plddt, ptm, iptm, tcr_pmhc_iptm, scanning_angle and pitch_angle, when supplied. Absent metrics have no row. Native rows contribute their PDB identifier only, never the corresponding predicted metric values. The joined view displays availability badges; analysis should read the numeric long table and keep native evidence separate when it defines validation labels. No coordinates, backgrounds, labels or fitted classifier parameters are added to the bundle. The separate post-motif record confidence v3 stage reads a packaged frozen model and records its digest in the score table; database assembly does not load the classifier.

No held-out validation data is ever an evidence row. See §7.

Record confidence v3 outputs#

vdjdb score-records --tables out/tables runs after motifs and writes record_scores.parquet and record_scores.tsv.gz in that table directory by default. Each has exactly one row per current record_id, sorted by ID. The files report paired and chain-only probabilities, missing-evidence bounds, integrated evidence features, score version and frozen-model SHA256. The v3 specification defines their columns and interpretation. The existing legacy 0-3 score and positional exports remain unchanged. No stored feature or prediction rows are reused across builds. The frozen v3.2a parameters use explicit epitope contexts; missing evidence is marginalized. Its reported comparisons use the fitted cohort and do not estimate universal production-record accuracy. V3.2 is the default. --legacy-v31 selects v3.1; --legacy-v3 selects original v3 and hard evidence. In these legacy modes, --soft-membership adds four Hamming-1 fractions and integer *_members / *_neighbours columns within each producer’s scope. V3.1 and explicit --continuous-membership use \((1-w)b+wu\) with \(w=1/12\), retain *_hard assignments and record continuous_membership and motif_score_version=separated-producer-v2, motif_score_width and *_support. V3.2 exports validation_score (v3.2a assay validation) and independent_validation_score (v3.2b additional-publication detection). record_score and paired remain aliases of v3.2a. Each score has a separate version field and SHA256: validation_score_version / model_sha256, and independent_validation_score_version / independent_model_sha256. The table release is score_version=3.2. All records remain in the output, including records excluded from the fitting subsample. See the scoring specification for the two targets, fixed encodings, native-structure policy, fitting script and legacy selectors.

V3.1 records score_version=3.1 and its decision_threshold; the v3 specification defines the ordering guarantee and interpolation semantics.

3.3a epitopes.parquet and restriction.parquet - the antigen catalogue#

VDJdb’s own list of epitopes and the MHCs that present them.

Table

Key

epitopes

(antigen.epitope, antigen.species)

restriction

(antigen.epitope, antigen.species, mhc.a, mhc.b)

epitopes has antigen_gene, epitope_length, mhc_class, and the support counts records, chains, clonotypes and references. Counts are recomputed on each build.

proteome_peptide and proteome_substitution link an epitope to the host-proteome peptide it is one substitution from, where the epitope is not itself in the proteome (#632). In the 2026-09-29 measurement, 211 of the 2,131 epitopes carry the link, and 67 of those have the proteome form curated in VDJdb as a separate row - 35,346 records, 18.3% of the database, on rows nothing else says are two forms of one peptide:

epitope

records

proteome_peptide

records

proteome_substitution

antigen_gene

SLLMWITQV

29,729

SLLMWITQC

13

9C>V

NY-ESO-1

ELAGIGILTV

2,401

EAAGIGILTV

140

2A>L

MLANA

VEALYLVSG

2,495

VEALYLVCG

5,048

8C>S

INS

IMDQVPFSV

100

ITDQVPFSV

19

2T>M

PMEL

A query for NY-ESO-1 responses returns the 29,729 and never learns the 13 exist. That is what the columns are for.

Neither row is wrong, and this is not a defect report. The epitope sequence is the ground truth - it is the peptide the experiment used - and the difference from the proteome is almost always deliberate: an anchor-optimised vaccine peptide, a designed altered-peptide ligand, a heteroclitic variant, or a structure solved with a modified peptide. Of the 36,496 records on these 211 epitopes, 58 carry a meta_structure_id and 54 come from PDB_Database.tsv, so the crystallography case is real and small. The columns are named for what was measured and not for why, because the sequence tells those causes apart from none of the others.

Empty on the other 1,920 rows, and on every viral or bacterial epitope, because only the human and mouse proteomes are read - a pathogen epitope’s source is the pathogen’s proteome, which is a per-pathogen fetch and a different question. Both columns are read from proofreading/epitope_proteome.tsv, a committed reviewed input refreshed by vdjdb antigens in its own pull request, never resolved during a build: mhcmatch fetches the proteome from HuggingFace, so doing it here would put a network call in the critical path (hard rule 9).

The key is the epitope and the species, not the peptide. A reader who assumes one row per peptide

  • which the table’s name invites - joins the records of 12 peptides twice. patches/antigen_epitope_species_gene.dict is keyed on the peptide alone and cannot express them, so this is a table rather than a view over the patch.

The recorded 12-peptide inventory had two classes; a separate corrected example is also described below. out/reports/epitope-sources.tsv separates them (#633):

  • 6 are conserved peptides - the same sequence in two organisms’ proteomes, retained as separate publication reports. VEALYLVCG is in human INS and mouse Ins2, RPIIRPATL in influenza A and B NP, LRVMMLAPF in E. coli and S. Typhi yeiH. The report marks them conserved, which is the column to sort on, so a new collision is the only thing to look at.

  • 6 are vocabulary gaps - one organism written two ways (AdV beside HAdV5), or Synthetic in antigen_species, which is a provenance and not a species. These want an alias table and which way each folds is a curator’s call (#632, #637).

  • a mis-curation, now repaired: RGPGRAFVTI was HomoSapiens / P18-I10 on one row against HIV-1 / GP160 on 85, where P18-I10 is the laboratory name of the HIV-1 V3-loop peptide itself.

The same report carries the other half of the ambiguity, which nothing reported before. epitopes keeps the modal antigen_gene for each (peptide, species), and 30 of them have more than one label - so the report counts them in a genes column beside the label the catalogue kept.

Its first run found FVVKAYLPVNESFAFTADLRSNTGGQA carrying 187 labels, Eef2 to Eef188, one per record and consecutive: a spreadsheet autofill had incremented one gene name down the column. That is repaired (#397, #694) - mhcmatch’s mouse proteome assigns the peptide to Eef2 and to nothing else - so the largest remaining is 2.

restriction checks each allele against IPD-IMGT/HLA (https://www.ebi.ac.uk/ipd/imgt/hla/) by exact name or a colon-delimited extension, retaining the reported resolution, and against proofreading/mhc_nonhuman.tsv for the names that database does not cover (murine H2-, macaque Mamu-, and B2M). So mhc_a_status and mhc_b_status read known, unconfirmed, declared or unknown.

unconfirmed is a refinement of known, not a rejection (#634): the call resolves in IPD and every allele under it is Unconfirmed - it rests on a single submission rather than an independent observation. The existence check cannot make that distinction, because every one of these carries a name IPD has. Measured 2026-09-29: 14 calls over 105 records, and 80 of those are one call, HLA-A*02:01:48 - a third-field allele resting on one cell from one submitting group, where HLA-A*02:01 has 169 Confirmed alleles under it. What to do about that is a curation question about what the submitters meant, so it is reported and never fatal.

An unknown call fails the build, naming the value, column and affected chunks. A reported class-II chain can have an unreported partner; the build preserves that partial restriction. See chunk format for permitted missing values. The fix is an entry in patches/mhc.dict when the call is wrong, or a row in proofreading/mhc_nonhuman.tsv when it is a species IPD-IMGT/HLA does not cover. Whether the allele could present that peptide, rather than only whether its name exists, is phase 9e: presentation.tsv in §5 for the offline half, and the six columns below for the model’s ranking.

restriction also carries six promiscuity columns (ROADMAP §10.6). An epitope is often presented by several alleles and the curated one is not always the best binder; both facts belong in the database and neither belongs in a key, because a model upgrade would otherwise renumber pmhc_id and break every external reference while the build passed.

Column

What it is

alleles_reported

distinct mhc.a values VDJdb records for this epitope. Curation, not prediction, so it is counted from this table and remains available without a prediction. Two or more means the corpus reports several first-chain restrictions, possibly within one publication

mhc_a_top

the panel allele that presents this epitope best

mhc_a_rank

where the curated allele sits in that ranking, 1 being the top

mhc_a_percentile

the curated allele’s %Rank_EL against the human proteome background

promiscuity

panel alleles in the strong band for this epitope

mhcmatch_version

the software version that produced the four prediction annotations above, per row. Empty on a row scored before the column existed

The five model-related columns are joined from the committed proofreading/epitope_promiscuity.tsv (13,510 rows over 1,729 epitopes and 107 alleles in the recorded review). alleles_reported is counted from the current restriction table. Epitope-level predictions can appear on rows whose reported allele has no panel rank. Nothing is predicted during a build: mhcmatch fetches its reference data from HuggingFace, and a build that downloads a model is neither offline nor deterministic (hard rule 9), so the table is a reviewed input refreshed by vdjdb promiscuity through its own pull request.

A curated allele the prediction outranks is not a defect. The curated allele is the one a publication typed a donor for, which a proteome-background ranking has no access to, and most of these epitopes are promiscuous. In the recorded review, 1,793 of 1,989 class-I pairs received a rank; the 196 unranked pairs fell into three causes: 86 pairs (16,316 records) name an allele outside the panel, 86 (10,395) an epitope the table has not been refreshed to cover since it was written, 24 (381) an epitope outside the 8–11-residue class-I range. A deeper spelling such as HLA-A*02:01:48 is scored at its two-field molecule, because the panel is named at two fields and there is no deeper groove.

3.3b epitope_assessment.parquet - reported peptides and predicted binding cores#

Also shipped as epitope_assessment.tsv.gz in the primary bundle. This extends the presentation annotation in section 3.3a and ROADMAP section 10.6 (#1315). It records predictions separately from the epitopes provenance catalogue and the reported MHC pairs in restriction.

The key is (antigen_epitope, antigen_species, antigen_gene, species, mhc_species, mhc_class, mhc_a, mhc_b, prediction_allele). Every reported pair has a row with reported = true, including unsupported peptides and molecules. Competing parent-gene labels are retained. species describes the receptor; mhc_species selects the presentation model from the reported molecule; neither is the peptide’s antigen_species. Additional predicted pairings have reported = false, blank mhc_a/mhc_b and zero records/references. Support counts belong to reported pairs only.

prediction_allele is the mhcmatch panel key. Class-II keys identify a molecule, including both polymorphic chains for DP/DQ; an absent DP/DQ partner is not imputed. allele_resolution distinguishes an exact resolution from prefix completion. Deep-field class-II chain names are normalized to their two-field groove names for scoring; reported chain names remain unchanged. The lowest presentation percentile is marked prediction_best, with ties broken by allele name. All weak/strong predicted presenters and every reported pairing are retained. The best panel allele is retained even when its band is non-binder. That flag is a ranking within this panel, not evidence that the peptide is presented.

Class-II percentile ranks use a random-peptide background of the same length as the scored peptide, so the null includes the same number of available register frames. Class I retains mhcmatch’s marginal background and length preference. presentation_p_present is the published scorer’s separate isotonic probability; it is not a length-conditioned percentile.

prediction_peptide is the scored sequence. A reported class-I peptide longer than eleven residues is assessed as binding-length windows, retaining the best window per allele and its 0-based prediction_offset in the reported sequence. Class II is scored as the reported sequence, with its allele-dependent register. core and core_offset come from the same model register, not an allele-independent register guess. Class-I cores follow mhcmatch’s footprint: eight residues for an 8-mer, nine for a 9-11-mer, with central insertions omitted. Such a core need not be a contiguous substring, and should not replace the full peptide in a structure model.

tcr_facing is the scored peptide with mhcmatch’s class-default anchors masked by X. core_tcr_facing applies the core residue mapping to that sequence, excluding class-II flanks. These are predicted representations, not measured minimal recognition epitopes or measured contact maps. A shared core under the same molecule supports a comparison between reported peptides; it does not establish equivalent TCR recognition. Flanks and alternative registers can still matter. No record, pMHC id, motif group or curation field is changed by this table.

assessment_status states coverage. scored rows contain the presentation percentile, calibrated probability and mhcmatch class-specific band. Other rows name the absent reference, unsupported peptide/species/class, absent panel allele, empty reference panel, or unscorable pair. Optional measurements are text, with empty string as the missing value; select scored rows and cast to numeric types for calculations. The generated column reference declares every field.

Build-time predictions use the published mhcmatch version and revision/checksum-pinned reference declared in rules/epitope_assessment.toml. Human and mouse class I/II are supported. Fetching the reference is a separate input step; assembly is offline, recomputes predictions and calibration on every run, and disables persisted calibration results. The fitted models bundled with mhcmatch are immutable model inputs. Each row records the software version, reference SHA256, calibration seed, background and footprint. CI runs:

uv run vdjdb epitope-reference --out out/inputs
uv run vdjdb build --out out/ --pmhc-reference out/inputs/pmhc/pmhc_full.tsv.gz --epitope-jobs 4

The same table can be recomputed independently with vdjdb assess-epitopes, over explicit chunk files or --tables. See check scopes; selected-input support counts are not full-corpus measurements.

Without --pmhc-reference, the table still catalogs all reported pairs and marks reference_not_supplied; it makes no predictions. --epitope-jobs budgets processes over distinct MHC species/class groups, each with one native thread. Results are sorted independently of worker count. The older reviewed class-I promiscuity input and its restriction columns retain their existing meaning; this table provides detailed freshly computed assessment alongside them.

3.4 vdjdb.parquet - the joined view#

records ⋈ chains ⋈ evidence, one row per chain, with each evidence type pivoted to a boolean. It is the denormalised convenience table, derived on every build and never authored by hand.

Six boolean columns, all six always present: evidence.motif.tcrnet, evidence.motif.tcremp, evidence.structure.native, evidence.structure.model, evidence.validation.independent, evidence.validation.same.study. An evidence type with no producer yet is false, meaning no evidence of that kind, rather than a missing column, so the shape of the view does not change as phases 8–11 land.

The names match the five evidence.* columns production vdjdb-web already serves; nothing in this repo produced them before this view.

3.5 Generated metadata#

vdjdb.schema.json is the field registry in machine-readable form: per column, its vdjdb.meta.txt attributes, its position in every table that includes it, and its physical dtype. Every other schema artifact (vdjdb.meta.txt, the legacy column orders, the AIRR mapping in phase 7, the docs tables) is a projection of the same registry, so none of them can drift.

The dtype is read off the written frame rather than declared, so the schema cannot claim a type the shipped files do not have.

3.6 Motif files#

The primary bundle currently includes the same cluster_members.txt and motif_pwms.txt files as the legacy bundle (§2), plus their optional TCREmp counterparts. It does not ship clusters.parquet or motifs.parquet.

Run vdjdb motifs --tables out/tables to produce these files under out/motifs. The motif stage also replaces its linked evidence rows and refreshes the joined Parquet view in out/tables. Use the same --release value for build and motif commands. The column orders in §2 apply to both bundles. Background data are inputs; only derived counts and statistics ship. The per-epitope diagnostic is reports/motifs_per_epitope.tsv (§5).


4. AIRR bundle - vdjdb-airr-<version>.zip#

File

Level

Rows (2026-06-03 reference corpus)

vdjdb.rearrangement.tsv

one row per chain; AIRR Rearrangement

286,047

vdjdb.receptor.tsv

one row per paired record; AIRR Receptor

81,003

vdjdb.reactivity.tsv

one row per record; AIRR Reactivity

192,753

airr.yaml

the AIRR schema version the files conform to (2.0)

-

The files are linked by cell_id, which is the record_id: a VDJdb record is one publication’s report on one T-cell clone, and a clone is what AIRR’s Cell names. Both are standard AIRR fields.

Reactivity has ligand_type (MHC:peptide), antigen_type (peptide), antigen, antigen_source_species, peptide_sequence_aa, mhc_class, mhc_allele_1, mhc_allele_2, reactivity_method, reactivity_readout, reactivity_value, reactivity_unit and reactivity_refs.

reactivity_readout is confidence and reactivity_value is vdjdb.score, which is what the AIRR spec asks of a non-physical assay: “for inferred and annotated methods this should indicate a confidence/quality level”. reactivity_method is MHC_peptide_multimer, native_protein or annotated; see AIRR mapping for the classification.

junction contains the inferred nucleotide junction when available in the definitive chains table. sequence, the two alignments and the three cigars remain empty: inferred junctions do not establish a measured full nucleotide sequence. The schema requires those columns, not a value, and CI validates the complete Rearrangement table. The row counts above describe the reference corpus, not a count assertion for later builds.

Receptor requires receptor_variable_domain_{1,2}_aa, the complete mature variable domain and non-nullable, so both are rebuilt by stitching germline V and J around the inferred nucleotide junction and translating. Domain 1 is the beta chain, domain 2 the alpha, as the schema’s controlled vocabularies require. receptor_hash is a sha256 over the two concatenated domains and is not VDJdb’s TCR_hash, which hashes CDR3s, segments, MHC and epitope and is the key the structure store uses.

A receptor is a two-domain object, so only paired records appear in that file: 81,003 of the 93,294 paired records have both domains rebuilt. An unpaired record is not dropped; its chain is in the Rearrangement file and it has a Reactivity row of its own, which is where AIRR puts a single rearranged sequence. Overall the AIRR export keeps 1,141 records and 1,501 chains that the legacy build discarded in that historical comparison.

CI validates the Rearrangement file with the airr package’s own schema validator. airr 2.0.0 has no Receptor or Reactivity validator, so the Reactivity file is gated against the field list read from the package’s own airr-schema.yaml instead.

Converting an older release#

vdjdb convert airr --legacy vdjdb.txt reads an extracted legacy chain table and writes Rearrangement and Reactivity tables plus airr.yaml; it does not accept the ZIP itself or reconstruct the Receptor table. It runs the same emitter, since legacy vdjdb.txt already uses VDJdb’s column names, so there is no second mapping to drift. The output has no d_call, because the legacy file has no D column, and the 1,501 chains the legacy build dropped are absent.


5. Produced but not shipped#

Current reports are written by their named assembly, QC, motif, comparison or dashboard stage and uploaded by the corresponding CI job; they are excluded from release ZIPs. Historical Groovy outputs are listed for comparison and are not generated by the current pipeline. Generated text files above the size limit use .gz. Counts below are recorded review snapshots, not assertions about every later build.

File

What it is

vdjdb_full_filtered.txt (retired)

records passing the gene, allele and canonical-CDR3 masks

vdjdb_full_gene_broken.txt (retired)

records whose V/J gene name fails the IMGT check

vdjdb_full_allele_broken.txt (retired)

records whose allele number exceeds the gene’s allele count

vdjdb_full_cdr3aa_broken.txt (retired)

records whose CDR3 is not biologically valid

vdjdb_full_scored.txt, vdjdb.slim.scored.txt, vdjdb.scored.txt (retired)

the three tables with a cluster.member column

qc.tsv

every chunk QC finding: file, row, column, rule, value

qc-summary.tsv

one row per rule that fired: level, rule, findings, chunks, whether it is advisory. Written by vdjdb qc --report. Gated against rules/qc_advisories.tsv with a per-rule tolerance (tests/unit/test_qc_advisories.py), because an advisory is advisory since only a curator can resolve it, not because its size does not matter: 10,555 within-chunk duplicates and 209 segment calls with no CDR3 were printed to a log line and recorded nowhere

chunk-lint.tsv

text-level findings: encoding, BOM, CRLF, header shape

records.diff.tsv

added / amended / retired records against the previous release

diff-report.md

the comparison against a reference release (ROADMAP §5)

motifs_per_epitope.tsv

one row per (species, gene, method, epitope): clonotypes, clustered, retention, clusters, largest cluster, mean cluster size, singleton clusters, percolation, replicated, tp, precision, lift. 678 rows. Written by vdjdb motifs on every run; the pooled motif scorecard averages a strongly bimodal distribution and must not be reported without this table (docs/clustering.md §6)

motif-timings.tsv

one row per motif stage, using the same columns as build-timings.tsv. Seconds exclude timed children; parent records nesting. rows counts input chains. Compute-time budgets scale with current rows / reference rows against the fixed four-core profile in rules/motif_timings.tsv, with the common run-speed adjustment described for build-timings.tsv. Background fetches are excluded from both the gated stages and reference compute total. Parent peak RSS remains limited to 10,240 MiB

lookalikes.tsv

one row per spelling of a value that some other value differs from only in case or in a -, _, . or space: the column, the folded form both share, the record count, and same.species. Advisory, gated by nothing. In the recorded corpus review: 19 groups over antigen.gene and method.identification, 9 of them within one species - the reference.id pair went when PMID: 34433824 lost its space (#637). A value one character from another may be a typo or may be two stains, two serotypes, or one gene under two species’ symbol conventions - HGNC capitalises MBP for human and MGI title-cases Mbp for mouse - so same.species is the column to sort on and the curator is the only one who can decide. The fold deliberately keeps + and -: applied to meta.cell.subset a stripping fold reports 11 groups and every one is false, because CD95- and CD95+ are two populations. Edit distance was measured and rejected - at ratio 0.85 it returns real gene families (MAGE-A1/A2/A3/A4, PPM1/PPM1F) and distinct organisms (CMV/MCMV/LCMV)

epitope-sources.tsv

one row per (antigen.epitope, antigen.species) whose source is not single-valued: the modal antigen.gene the catalogue kept, sources (how many species carry this peptide), genes (how many labels this peptide-and-species carries), the record count, and conserved. Advisory, gated by nothing. Written by vdjdb build every run. In the recorded corpus review: 12 peptides under more than one species, 6 of them conserved between two proteomes and marked as such so a new collision is the only thing to read, and 30 rows carrying more than one gene label, the largest carrying 2. build_epitopes keeps the modal label and its comment claimed a function listed the rest; that function was never written, so until this report the discarded labels were visible nowhere (#633)

anchors.tsv

one row per chain whose cdr3 contradicts the germline anchor of the V or J it names. VDJdb’s cdr3 is junction space - Cys104 through Phe/Trp118, both included - so a submission in IMGT CDR3 space, one carrying V or J framework past an anchor, or one with a mis-read anchor residue is none of those, and no rule in vdjdb qc tests for it: those check the residue alphabet and a minimum length. Written by vdjdb build on every run and never a gate. Columns: the chunk and row, the record, the shipped and submitted junctions, the two calls, arda’s v.canonical/j.canonical, the germline anchor residue at each end, the named defect, a proposed repair sequence where the germline supports one, and a proposed repair.call where the junction matches a functional sibling allele instead. Measured on the 2026-09-29 corpus, after #646 repaired 4,838 junctions in chunks/ and #647 corrected the mouse TRAJ47 allele: 1,037 of 285,950 chains (0.36 %), 261 with a sequence repair and none with an allele repair - 672 unexplained, 256 carrying framework past an anchor, 118 unanchored, 10 short a J anchor and 5 with a mis-read one. A chain can carry a defect at each end, so those count more than 1,037 between them. The anchor residue is read per segment and never assumed to be F or W: mouse TRAJ47*01 is HYANKMIC, so “ends in Phe or Trp” calls 481 correct junctions broken. unanchored is the one case where that universal pair is still the test: with no J call, or one the reference does not have, there is no germline to read, and the check used to decline silently - those 118 chains were reported by the retired build’s vdjdb_full_cdr3aa_broken.txt and by nothing here. No repair is proposed for them, because there is no germline to propose from

harmonisation.tsv

one row per value the build rewrote, across the four harmonisation passes build_master runs before identity is assigned (#700). The complement of nomenclature.tsv below, which names the calls it could not resolve: this one names the ones it could, and until #700 the four reports were computed on every build and discarded. Columns: stage (segments, alleles, mhc, references), the issue or patch table the rewrite cites, the column, the species where the pass scopes by organism, from, to and the record count. Written by vdjdb build on every run, never a gate - a rewrite is a declared correction, and the gate on those is rules/expected_diffs.toml’s generated [[rename]] block. Measured 2026-09-29: 270 rewrites over 7,450 records - 235 segment respellings (4,146 records), 28 MHC corrections (1,494, of which the class II chain order is 149 records with a beta gene in mhc.a), 4 allele calls read off the junction (1,142, the TRAJ24 and mouse TRAJ47 signatures) and 3 reference.id values replaced by their PubMed id (668)

j-calls.tsv

one row per chain whose J call some other J gene explains better (#681). A junction’s 3’ end is templated by the J germline, so a record’s J call can be checked against the sequence the same record reports: match the end - the anchor excluded, so a corrupt anchor cannot vote on its own diagnosis - against every J germline of that species and take the longest run. This is not the question anchors.tsv asks. That one reads the anchor residue of the segment a record names; this one asks whether a different gene explains the whole end better, and measured 2026-09-29 the two overlap on 19 of 718 chains. Columns: the chunk and row’s record, the chain’s gene and species, the junction, the call as written with the run its own germline supports, and the gene the sequence names with its run. Written by vdjdb build on every run, never a gate - #681 says re-calling a J from its junction is a curator’s decision and what was missing is the list. The rule is stated rather than tuned: the best-matching gene must be unique (a tie is a fact about the germlines, not about the record), its run at least 5 residues (a chance run of 5 on a 20-letter alphabet is ~3e-7 per germline), and the called gene’s own run strictly shorter. Measured: 715 chains over 96 chunks against 285,545 checkable ones, so 99.75 % of J calls are not contradicted by their own junction. The largest single chunk is 106 chains of PMID_32184241.tsv

nomenclature.tsv

one row per segment call IMGT has at neither allele nor gene level, after harmonisation (#389). This is the report the retired build wrote as vdjdb_full_gene_broken.txt and vdjdb_full_allele_broken.txt, and nothing replaced it: harmonise_segments reports what it rewrote, build_master discards even that, and a call naming a gene no authority carries reached every shipped table with no report anywhere. Columns: the species, the chunk column, the call as written, the part that failed (a curator recording two candidates writes TRBD1,TRBD2, and each member is resolved separately), the chain count, and family.members with up to four candidates. Written by vdjdb build on every run, never a gate. Measured 2026-09-29: 88 rows over 69 distinct names and 3,457 chain-calls, of which 2,823 are an under-specified family - TRBV6 is nine IMGT genes and the record chose none of them, which only a curator can resolve - and the rest have no IMGT candidate at all, which is a spelling defect or a gene that species does not have. 850 are not human, and the retired check never saw one of those: its table was a 741-row human immunoglobulin list, so the driver ORed both masks with species != 'HomoSapiens'. It also compared int(allele) against a per-gene allele count rather than asking IMGT, which is a range check wearing the clothes of a membership check - its single finding on the whole corpus, TRBV28*02, is an allele IMGT lists. tests/release/test_legacy_proofreading_parity.py partitions every retired finding against this report and anchors.tsv with no remainder

presentation.tsv

one row per (antigen.epitope, mhc.a, mhc.b, mhc.class) pair that fails at least one of four checks on whether the recorded MHC could present the recorded epitope at all (ROADMAP phase 9e), and presentation-summary.tsv the same counted per finding. proofreading/mhc_alleles.tsv.gz answers whether IPD-IMGT/HLA lists a name; this asks whether the name reaches a binding groove, which is the 34 residues every presentation model reasons over. mhcmatch bundles those pseudosequences - 20,082 class I keys and 11,048 class II, loaded in 0.01 s with no network - so unlike vdjdb promiscuity, which fetches a model, this runs inside the build without breaking its offline determinism. The four: the call reaches a pseudosequence key; the key’s own class agrees with mhc.class; a class I record’s epitope fits a class I groove; and one molecule is not filed under two classes. Advisory, never a gate - a model is evidence about a pair, never authority over a publication. Measured 2026-09-29: 93 pairs over 1,213 records of 2,343 and 192,641. 71 reach no groove, of which 64 are murine class II (mhcmatch’s class II pseudosequences are HLA, so this is a coverage statement rather than a finding against the record) and 2 are H2-Qa-1b and a four-field HLA spelling; 22 are a class I record whose epitope runs 12 to 20 residues; and 21 are H2-IAb, filed MHCII on 20 pairs and MHCI on the 77-record QVYSLIRPNENPAH, which is the one all three other checks agree on. An allele resolved by prefix is carried in mhc.resolution and is not a finding: 87 pairs over 17,836 records are an allele group the specification allows, HLA-A*02 completed to its first member, so mhcmatch is guessing rather than the record being wrong

functionality.tsv

one row per chain-segment IMGT does not call functional, and functionality-summary.tsv the same counted per verdict (#634). proofreading/imgt_alleles.tsv.gz has carried IMGT’s own F / ORF / P column since phase 9 and nothing read it: vdjdb qc asks whether a call looks like a TRBV name and curate/nomenclature.py asks whether IMGT has it, and neither asks whether IMGT thinks the gene is functional. Columns: the record, the chain, V or J, the call, IMGT’s verdict as IMGT spells it, and level - allele where IMGT names that exact allele, gene where the verdict is inherited from the gene’s alleles. Written by vdjdb build on every run, never a gate: a pseudogene V call is not automatically wrong, because a P gene can rearrange - TRBV21-1 is 303 chains and turns up in real repertoires - and IMGT reclassifies genes between releases, so a gate would fail on a reference update rather than on a curation error. Measured 2026-09-29: 2,608 chain-segments, 1,172 V and 1,436 J, largest TRAJ58*01 ORF on 656 chains, TRBJ1-6*01 ORF on 327 and TRBV21-1*01 P on 303. The same verdict drives four advisory non-functional * rules in vdjdb qc. A gene’s verdict is every verdict among its alleles and one functional allele is enough: TRBJ2-7 reads F/ORF because *02 is an ORF and it is one of the commonest J calls in VDJdb, so the stricter reading flagged 17,891 chunk rows with nothing actionable in the difference

build-timings.tsv

one row per assembly stage: stage, parent, exclusive wall seconds, descriptive share, peak_rss_mb, optional sampled peak_tree_rss_mb, input rows and cores. rows counts records assembled from chunks. Seconds sum without double-counting nested stages. The fixed four-core reference in rules/build_timings.tsv defines each budget as (reference stage seconds + tolerance × reference compute seconds) × current rows / reference rows × run scale. The run scale is the median compute-stage time-per-row ratio relative to the reference; it adjusts for common runner-speed variation. Uniform code and host slowdowns cannot be distinguished from these profiles, so raw seconds remain recorded for review. Ordinary row growth does not change the reference. A reviewed algorithm or workload change may require a new measured profile; row count cannot explain changes in peptide length or unique-key composition. Network fetches are excluded, core counts must match, and the 0.1 tolerances remain unchanged. Parent peak RSS is limited to 4,096 MiB and assessment process-tree peak to 8,192 MiB

motif-metrics.tsv

one row per (species, gene, source, axis): eighteen axes for five sources – the last legacy release, the latest release, this build’s two methods, and the partition that clusters nothing. 180 rows. Thirteen axes score a clustering on this build’s cohort (two of them, percolation_median and percolation_excess, are recorded and never gated, because the largest cluster’s share depends on how many prominent motifs the epitope has); the five partition_* axes compare it against the shipped file, asking whether a record still has the cluster-mates the last release gave it. Those exist because nothing compared those tables: vdjdb diff keys cluster_members.txt on cid, a cid carries a position in a sorted list, so one renumbered cluster reads as the entire file replaced. The historical neighbour comparison highlights a measured imbalance: 19,971 of the released TRB clustering’s 36,906 clonotypes sit in one cluster holding 94.7 % of the file’s co-clustered pairs, so a pair-weighted score measures that one blob – the do-nothing partition reads 0.9991 on it. Written by vdjdb motif-metrics: acceptance compares current-* with latest on this cohort, with bounded relative trades in rules/motif_tradeoffs.tsv. Differences from rules/motif_metrics.tsv, including neighbour preservation, are reported as historical corpus drift rather than failing acceptance. Missing, duplicate or non-finite measurements fail. The metrics used to live only inside test assertions, so a corpus change moved them inside the slack and nobody learned the new values

motif-metrics.md

the same table as markdown, with each axis against its baseline and against latest, written into the CI step summary so the values that did not trip a gate are still read

motifs.debug/

per-clonotype enrichment statistics, embeddings, cluster labels, eps sweeps, the pooled cross-epitope confusion matrix

contact_sheet.png

the eight dashboard panels tiled, for visual review

The three retired *_scored.txt files used an incorrect membership rule: MotifsScoresAssembler.py set cluster.member for every record of an (epitope, species, gene) rather than matching on CDR3. Current membership evidence uses the producer keys described in §3.3.


6. Record registry and the identity lifecycle#

identity-lifecycle.tsv (or .tsv.gz above the size limit) is one row per id ever published, at any level: id, level, state, first_release, last_release, replaced_by. No key columns, because a key is recomputable from chunks/ and an id’s history is not. The recorded inventory was 15.9 MB uncompressed for 274,683 derived IDs; it ships as a release asset beside the zips and is listed in SHA256SUMS. It is written by vdjdb release and never by a build: a curation branch that adds a clonotype and removes it again has retired nothing. A build with no previous copy produces exactly the same ids and reports only that the history is unknown.

registry/records.tsv.gz maps record_id to its state, hashes, provenance and amendment history, so an id survives a curator fixing a typo. It is committed and is an input to the build, not an output of it. Git stores a deterministic gzip of the TSV directly. Decompression preserves the complete table, including every identifier and its history. Gzip metadata uses a zero timestamp and no filename, so identical inputs produce identical compressed bytes. No Git LFS fetch is needed for this file. It was originally intended to ship as a release asset the build fetched, and #672 changed that - without a committed copy the registry went stale between releases and landing one 40-record chunk moved record_id on 168,723 of 192,753 records (#638). It is written only by vdjdb identity update, which a chunk branch runs and commits alongside the chunk; vdjdb build reads it.

Fifteen columns. Thirteen are the state, the two hashes, the chunk provenance, the release and commit at first and last sighting, and the amendment count with the key hash it came from. The other two are the lifecycle a consumer follows:

Column

What it answers

amended_from_key_hash

backwards, and only for an amendment: which key this record used to have

replaced_by

forwards, and only for a retirement the amendment pass refused: which id took over. Two key fields moving is a new record by the rule the registry is built on, so the retirement is right and the pointer is what makes it diagnosable rather than a disappearance (#693, ROADMAP §10.4). Written when one id retires from a line of a chunk, exactly one is allocated against that same line, and the two natural keys name the same receptor; empty otherwise, including on every retirement that is a genuine deletion

6a. Committed, not produced#

File

Role

summary/reference_years.tsv

publication years, so the dashboard render is offline and deterministic. A committed, reviewed input refreshed by its own pull request, never written by a build

summary/annotations.tsv

dashboard event callouts, with no hardcoded coordinates

rules/expected_diffs.toml

the differences vdjdb diff accepts, each declared with a measured row count

proofreading/epitope_proteome.tsv

where each self epitope sits in its own species’ reference proteome, and how exactly (#632). Written by vdjdb antigens, never by a build: mhcmatch fetches the proteome from HuggingFace, so this is a committed, reviewed input refreshed by its own pull request. Three verdicts, spelled as what was measured. exact - the peptide is in the proteome at a named protein and position, and its GN= field gives the gene symbol, which is the authority antigen.gene has never had (315 human epitopes, 15 mouse). Where that symbol disagrees with the curated value, 99 epitopes over 2,195 records, that is worth a curator’s time. one_substitution - one residue differs from a peptide that is in the proteome, named as 9C>V (195 human epitopes, 16 mouse). Not a defect and not a count to read as one. A reference proteome is one genome and a patient cohort is not, so at least five unrelated things produce this shape and all are correct data: a tumour neoantigen, a germline or allelic variant, a cross-species homolog, a modified or hybrid peptide, and an anchor-optimised screening reagent. Read the epitope count and never the record total - one peptide, SLLMWITQV, is 81.5 % of that total, and the median epitope carries two records. Read by_gene too: PMEL carries 21 peptides, INS 13, KRAS 12 over 50 records, which is what a mutation panel or an antigen screen across a cohort looks like. The row’s use is the cross-reference - SLLMWITQV and native SLLMWITQC are unrelated rows, so nothing can currently ask whether a response was found with the native peptide or a modified one - plus the reference.id list, because only the paper tells the five causes apart and corpus/pubmed.tsv has the title for 610 references. not_found - neither within one substitution; a splice junction, a fusion, a longer modification and a transcription error all look like this (236 human, 13 mouse). Nothing is ever rewritten. Not to be confused with out/reports/epitope-sources.tsv (#633), which asks whether the corpus agrees with itself about a peptide’s source and needs no authority at all

The pinned motif parameters are not a data file. They are the TUNED constants in vdjdb.motifs.tcrnet and vdjdb.motifs.tcremp, each stated with the scorecard it was chosen from and the one cost it pays, in the module that uses it.


7. Never produced, never shipped#

For the motif-tuning evaluation described here, TCRvdb / MATCHMAKERS (Messemaker et al., doi:10.1101/2025.04.28.651095) is held out and read from VDJDB_TCRVDB, outside this repository. No file in any bundle, artifact or report may contain its rows, its per-record labels, or any value derived from them at record granularity. Aggregate validation metrics (counts, AUROC, recall at a threshold) may be reported; per-record verdicts may not.

Motif clustering is tuned on the independent-study support count: 4,129 human clonotype-epitope pairs with ≥2 distinct reference.id, across 18 epitopes with ≥20 pairs. TCRvdb is read once, at the end, to validate. Tuning on it would invalidate it as a validation set, and its 614 labels span only two epitopes (YLQPRTFLL, GLCTLVAML), too narrow a basis for a global hyperparameter.

Record confidence v3.2 has a separate, explicitly documented fitting and evaluation scope; the motif holdout claim does not apply to that fitted score. Private record-level assays and labels remain excluded from public outputs.

CI enforces the export boundary: a guard fails the build if any TCRvdb-derived file appears in the repository or in a release bundle.