Skip to content
Back to skills

Vdjdb Duplicates

ASecurity

Review repeated paired receptor-pMHC observations and metadata synonyms within and across VDJdb publications, preserving distinct experiments and reports. Use for a corpus audit or a submission that may overlap existing records.

  • 157 stars
  • 0 votes
  • 1 copy
  • 8 views
  • Added August 30, 2026
datago

Security analysis

A100/100

Scanned November 9, 2026

npx -y skills add antigenomics/vdjdb-db --skill vdjdb-duplicates --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Vdjdb Duplicates?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Vdjdb Duplicates
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/antigenomics-vdjdb-duplicates/badge)](https://www.skillsdirectory.com/skills/antigenomics-vdjdb-duplicates)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: vdjdb-duplicates
description: Review repeated paired receptor-pMHC observations and metadata synonyms within and across VDJdb publications, preserving distinct experiments and reports. Use for a corpus audit or a submission that may overlap existing records.
---

# Review repeated observations

Read [AUTHORITIES.md](../AUTHORITIES.md) and
[observation identity](../../../docs/standards/chunk-format.md#completeness-and-observation-identity).
Use a completed build matching the reviewed inputs; rebuild only when required under
AUTHORITIES.md. Read raw chunks with `read_chunks(deduplicate=False)`.

## Compare receptors and experiments

Before importing a collection, measure epitope plus CDR3 overlap against both the last release
and current chunks, within species and for each chain. Compare submitted and repaired junctions
separately. Report matched and unmatched rows and distinct pairs per original publication, with
the source files that matched. This broad screen detects earlier imports; it does not prove
that paired receptors, restrictions or experiments are identical.

For substantial overlap, reconcile the matched observations with their primary papers before
creating a chunk. Verify paired chains, V/J calls, restriction and experiment metadata using
the comparison below. Keep independently reported experiments; do not import the same source
observation again under a collection's reference. Review unmatched measurements against the
original assay before classifying them as positive or negative.

Within species, group both chains together using `cdr3.alpha`, `v.alpha`, `j.alpha`,
`cdr3.beta`, `v.beta`, `j.beta`, `antigen.epitope`, `mhc.a`, `mhc.b` and `mhc.class`.
Compare submitted values first, then harmonised values. Sharing a beta chain does not establish
that paired receptors match.

Trace repeated groups to their source table before applying `unique` on the complete observation
key. Repeated cells of one clonotype are abundance, not additional independent clonotypes; preserve
the reported count/frequency on the surviving observation. A repeated table or import block is
one observation. Preserve source construct/template labels in existing experiment metadata when
different constructs share stored junctions and V/J calls. Differences outside those junctions,
including engineered framework or CDR1/2 changes, can distinguish receptors. Never manufacture
per-row identifiers to make a duplicate check pass. Strict QC rejects exact within-file duplicates.

For each repeated group, compare the reference and every `method.*` and `meta.*` field,
including donor, clone, replica, tissue, subset, pairing and frequency fields. Distinct reported
experiments remain separate. Submitter, comment and curation serial alone do not distinguish
experiments. A blank versus a populated value requires review before merging complementary data.

Different publications remain separate reports. Author overlap can suggest a follow-up or reused
cohort, but an author-count threshold cannot prove independent experiments or justify deletion.
Reconcile a preprint and publication only with a verified publication link and matching source
observations. Preserve separately reported PDB structure observations.

Report exact within-file duplicates, same-publication cross-file groups, distinct experiments
within a publication, and cross-publication recurrence separately. `vdjdb submission <chunk>`
provides a recurrence summary; it does not replace the paired comparison.

## Inspect terms and missing values

Count every field's distinct values and blanks. Inspect the most frequent junctions and singleton
metadata values with their file/row locations. A singleton clone identifier or a common public
junction is expected and is not an error by itself.

Read `out/reports/lookalikes.tsv` and `epitope-sources.tsv`. Case or separator differences are
review candidates. Human and mouse gene spelling can differ; antigen aliases need the governing
organism. Compare method token sets rather than treating token order as a different experiment.

Several restrictions for one peptide can be supported observations. A broad allele call and a
more precise call are different reported resolutions; do not upgrade the broad call without
source evidence. A predicted presentation is not evidence that the experiment used that allele.

## Record decisions

Keep per-group evidence and counts in the local execution record. Report denominators as
observations, clonotypes or publications. Link unresolved source questions to the publication issue;
create a data issue for a mechanical corpus correction. Apply chunk changes only on the branch
for that chunk or data issue, with identity reconciliation and release-aware validation.

## Trace high overlap to the experimental source

Run `vdjdb overlap --by-sample` and repeat with `--submitted`. Retain zero-match pairs.
For each species/pMHC and alpha, beta or paired mode, report distinct set sizes, shared junctions,
size product, containment and `(shared+1)/(n1*n2+1)`. Compare YLQPRTFLL and NLVPMVATV strata
with the same chain mode and restriction. Pooled chunk sizes are not donor repertoire sizes.

At least five matches with 20% containment requests source tracing. This operational screen is
not a p-value. Public clonotypes and selected repertoires prevent deriving a universal threshold
from typical generation probabilities. Smaller reused datasets can evade the screen.

Inspect every matched observation's original table, sample/cohort, construct and assay, plus
both chains' V/J calls and every method/meta field. Distinguish same-sample validation within a
study, independently measured validation, reused measurements and conflicting attribution.
Different reference IDs or different method labels alone do not prove independence. Identical
donor labels across papers do not prove the same donor; blanks never identify a donor.

Preserve distinct experiments, including validation within the same reference and sample.
Do not import reprinted assays as new independent evidence. Resolve erroneous reference IDs or
split mixed-source observations only from source evidence, on the corresponding data-issue branch.
Record one decision and a source location for every matched observation, not just one conclusion
for the overlapping papers. The screen cannot automatically deduplicate or change scores.

Also inspect `paired.pmhc`: it compares paired receptor/pMHC observations across peptide strata
within species, detecting reused mutational scans with few receptors per peptide. Its set sizes
count distinct receptor/pMHC observations. Keep it separate from paired-junction repertoire sizes.

## Separate validation classes and laboratory independence

Use the four classes in [validation evidence](../../../docs/submission.md#classify-validation-evidence):
observed only; observed with receptor verification; repeated within one study; author-independent
corroboration. Direct verification ranks above within-study repetition. Both may support one record.
Inspect the per-record `*-categories.tsv` audit; alpha or beta support alone does not confirm a paired receptor.

Read the ordered author input `proofreading/pubmed_authors.tsv`, refreshed explicitly by
`vdjdb refs-authors`. Author-independent references have different senior authors, neither senior
author in the other list, and strictly less than one third overlap of the smaller author list.
Missing/truncated lists or consortium-only senior authors mean unknown. Name keys use surname and
first initial; resolve homonyms from source evidence rather than treating a collision as identity.

Trace source assays even when the authors pass: a review or collection can reuse another laboratory's
measurements. Preserve direct assays and same-sample experiments; do not promote them to independent
repertoire capture. Check the historical browser evidence flags against the audit rather than assuming
those flags already enforce the author rule. Keep private manuscript and validation data out of the repository.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in data →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.