TCR Sequencing
T cell receptor sequencing reads the rearranged receptor genes of a sample and turns them into a record of receptor sequences. TCR sequences do not undergo somatic hypermutation, so an exact sequence match helps track a clonotype across timepoints, tissues and treatments. BCR lineages can also be tracked, as Mikelov et al. demonstrate, but related BCR sequences can accumulate different mutations. The clonal definition therefore needs to account for those relationships. This section connects library design, repertoire analysis and the limits of antigen specificity prediction.
Every number, table and figure on these pages comes from a real run of the code shown on the page, inside one pinned container, on committed example data shaped exactly like the AIRR tables that nf-core/airrflow produces. The companion repository holds the runners, the fixtures and a small real excerpt of VDJdb. It is private, so the repository links below require access.
The path
Section titled “The path”| Page | What it covers |
|---|---|
| What is TCR sequencing | receptor structure, V(D)J recombination, thymic selection and clonotypes |
| Library Prep & Sequencing | which chain to sequence, amplicon PCR versus 5’RACE, UMIs, bulk versus single-cell |
| Repertoire Analysis | V(D)J assignment, CDR3 properties, clonal tracking, diversity and specificity prediction |
| Specificity Prediction Tools | sequence similarity, binding predictions, and the limits of transferring antigen labels |
| Running nf-core/airrflow | the pipeline for TCR data, plus immunarch and scirpy worked examples |
The data
Section titled “The data”The worked examples run on three committed fixtures. Two AIRR-format TCR-beta tables stand in for airrflow output at two timepoints of one toy subject, and three of their expanded clonotypes are real, high-confidence VDJdb records. The antigen matching example retrieves labels deliberately included in the fixture. A synthetic 10x Genomics contig table feeds the single-cell scirpy example. The fixtures are deterministic, so every page here rebuilds bit for bit. When a page quotes a number or shows a figure, the container run beside the code produced it.
The source VDJdb database is public. Its records supply known receptor and antigen associations; the toy timepoints do not supply evidence of a response in a patient population. Keep donor, timepoint, chain, HLA information and abundance definition with your own samples. The specificity lesson explains why a sequence match or similarity score does not measure binding affinity.
Run an example
Section titled “Run an example”With companion access, follow the
TCR setup notes
and the AIRR build script.
Build the image with bash containers/airr/build.sh from the repository root, then run
bash guides/tcr-sequencing/repertoire-analysis/run.sh from the repository root.
The runner
reads the committed sample tables and writes its summaries and figures under
guides/tcr-sequencing/repertoire-analysis/outputs/.
Further reading
Section titled “Further reading”The AIRR rearrangement schema defines annotated sequence fields and distinguishes the junction from CDR3.