LAMINA-TCR (32-Model Pooled Ensemble)
LAMINA-TCR is an interpretable latent motif interaction model for class I human T-cell receptor (TCR)–peptide–HLA recognition, introduced in An interpretable model of T-cell receptor MHC-I recognition predicts clinical response to immune checkpoint blockade (Chen, Steele, and Oermann, bioRxiv, 2026).
This repository hosts the frozen 32-seed pooled-corpus ensemble (lamina_pooled_32seed_ensemble.pt) used for paired CDR3αβ and CDR3β-only TCR–pMHC scoring and clinical immune checkpoint blockade (ICB) repertoire evaluation.
- Paper (bioRxiv): https://www.biorxiv.org/content/10.64898/2026.12.01.770633v1
- Code & Reproduction Notebooks: https://github.com/nyuolab/LAMINA-TCR
- License: Creative Commons Attribution-NonCommercial 4.0 International (CC BY-NC 4.0)
Checkpoint Summary
| Property | Value |
|---|---|
| File | lamina_pooled_32seed_ensemble.pt (3.19 GiB, float32) |
| SHA-256 | d088c6a7090dc4f75e5287c13173859e5500a39e398c3e9dfaa0876beb1ceb38 |
| Ensemble size | 32 independent seeds (20261200–20261231) |
| Parameters | 26,780,673 per member (856,981,536 total) |
| Architecture | Separate-branch paired CDR3αβ LAMINA (D=256, K=48, 4 filters × widths 1–16) |
| Input modes | Paired CDR3αβ or exact CDR3β-only (omitting alpha is algebraically identical to all-padding CDR3α) |
| Max input widths | Peptide ≤ 25 aa, CDR3β ≤ 25 aa, CDR3α ≤ 34 aa (trained on ≤ 25 aa), class I HLA 34-residue pseudosequence |
| CDR3 preprocessing | strip-cf (removes conserved flanking C and F only when both are present) |
Quick Start
Clone the companion repository (https://github.com/nyuolab/LAMINA-TCR) for lamina_tcr.py and the bundled HLA pseudosequence table (data/hla_pseudosequence_lookup.csv), then download and run the ensemble:
import pandas as pd
import torch
from huggingface_hub import hf_hub_download
from lamina_tcr import encode, load_checkpoint, strip_cf
device = "cuda" if torch.cuda.is_available() else "cpu"
ckpt_path = hf_hub_download(
repo_id="WeiHua/LAMINA-TCR",
filename="lamina_pooled_32seed_ensemble.pt",
)
model, widths, _ = load_checkpoint(ckpt_path, device=device)
hla_lookup = (
pd.read_csv("data/hla_pseudosequence_lookup.csv")
.set_index("allele")["hla"]
.to_dict()
)
beta = encode([strip_cf("CASSIRSSYEQYF")], widths["beta"], device)
alpha = encode([strip_cf("CAGGGSSNTGKLIF")], widths["alpha"], device) # optional
pep = encode(["GILGFVFTL"], widths["pep"], device)
hla = encode([hla_lookup["HLA-A*02:01"]], widths["hla"], device)
with torch.inference_mode():
# Paired CDR3αβ ensemble mean logit & probability
paired_logit = model(beta, pep, hla, alpha=alpha)
paired_prob = torch.sigmoid(paired_logit).item()
# CDR3β-only mode (omit alpha) and per-seed uncertainty
beta_members = model(beta, pep, hla, return_members=True)[:, 0]
beta_mean = beta_members.mean().item()
beta_sd = beta_members.std(unbiased=True).item()
See 00_quickstart_inference.ipynb for a full walkthrough and batch scoring examples.
Training Data & Leakage Control
Each of the 32 ensemble members was trained from random initialization for 16 epochs (8,368 steps, batch size 256 with donor-swapped negatives, AdamW lr=1e-3, loss 0.25 BCE + 0.75 Smooth-AP with τ=0.3 and negative weight 5.0) on a deduplicated pooled human paired CDR3αβ–class I pMHC corpus:
- Training positives: 66,905 unique paired CDR3αβ–pMHC tuples covering 1,751 unique peptides, 65 class I HLA pseudosequences, and 60,410 unique paired receptors integrated from Hi-TpH Levels III/IV, IEDB, EPACT, TCRcube, TCRDiff, TcrDesign-B, UpTCR, pMTnet-omni, and StriMap.
- Benchmark exclusion: Strictly overlap-excluded against IMMREP2023, TetTCR-SeqHD, IEDB functional assays, and external paired benchmarks (tuple, study-level copy, and projected β-chain exclusion).
- Clinical exposure audit: Sequence-exposure auditing across all 84,426 candidate mutant neoantigen pMHC rows in the four clinical tumor ICB cohorts confirmed 0 exact pMHC overlaps in Riaz, Snyder tumor, Van Allen, and Snyder PBMC, and 1 single overlapping pMHC tuple in Hugo (
1 / 84,426 = 0.001%).
Clinical Immune Checkpoint Blockade Evaluation
Evaluated zero-shot on pretreatment intratumoral TCRβ repertoires and WES-derived ≤10-mer mutant neoantigens using size-matched hypergeometric PBMC calibration (top K ≤ 1,000 clonotypes, top-50 mean minus exact hypergeometric expectation over 24 external Snyder PBMC donors excluding self):
| Stratum | Patients (R / NR) | 32-Model Ensemble AUROC (95% CI, P) | Ensemble AUPRC | 32-Seed Mean AUROC ± SD |
|---|---|---|---|---|
| All tumor cohorts | 103 (32 / 71) | 0.708 (0.58–0.82, P = 0.0010) | 0.501 | 0.660 ± 0.052 |
| Deep bulk TCRβ (immunoSEQ) | 46 (14 / 32) | 0.763 (0.59–0.91, P = 0.0020) | 0.616 | 0.698 ± 0.072 |
| Bulk RNA-seq (TRUST4) | 57 (18 / 39) | 0.667 (0.48–0.83, P = 0.035) | 0.444 | 0.632 ± 0.059 |
| Peripheral blood control (Snyder PBMC) | 20 (7 / 13) | 0.626 (0.34–0.88, P = 0.20, n.s.) | — | 0.583 ± 0.100 |
Intended Use & Limitations
- Research use only: This model is intended solely for academic and non-commercial research. It is not a clinical diagnostic and should not be used to guide patient treatment decisions.
- MHC class I only: Trained exclusively on human class I HLA 34-residue pseudosequences (
HLA-A,HLA-B,HLA-C,HLA-E); class II alleles are out of scope. - Input formatting: CDR3 sequences should be preprocessed with
strip_cf()to match training normalization. - Repertoire depth: Clinical repertoire discrimination is strongest on deep bulk TCRβ sequencing (immunoSEQ) and attenuates on very shallow bulk RNA-seq TCR reconstructions.
Citation
@article{chen2026laminatcr,
title = {An interpretable model of T-cell receptor MHC-I recognition predicts clinical response to immune checkpoint blockade},
author = {Chen, Sully F. and Steele, Robert J. and Oermann, Eric K.},
journal = {bioRxiv},
year = {2026},
doi = {10.64898/2026.12.01.770633},
url = {https://www.biorxiv.org/content/10.64898/2026.12.01.770633v1},
note = {Preprint}
}