Skip to content

Methods: Single-cell T-cell receptor clonotype selection

Cell quality control, lineage assignment, and clonotype definition

Paired single-cell 5' gene-expression (GEX) and V(D)J sequencing libraries from 10x Genomics are matched by exact cell barcode within each sample (falling back to core barcode prefixes only when zero exact barcode matches occur, and discarding ambiguous prefixes). Droplets are retained for gene-expression analysis when they contain 250–15,000 detected genes, 500–100,000 total unique molecular identifiers (UMIs), and no more than 8% mitochondrial transcripts.

T-cell identity is gated on summed raw UMI counts of CD3D, CD3E, and CD3G (murine Cd3d, Cd3e, Cd3g), requiring at least 3 raw CD3 UMIs per cell. Coreceptor lineage is assigned from raw CD4 and summed CD8A + CD8B (murine Cd8a + Cd8b1) UMI counts using a smoothed ratio:

$$r_{\text{CD8/CD4}} = \frac{c_{\text{CD8}} + 1}{c_{\text{CD4}} + 1}, \qquad r_{\text{CD4/CD8}} = \frac{c_{\text{CD4}} + 1}{c_{\text{CD8}} + 1}.$$

Cells with $r_{\text{CD8/CD4}} > 3$ are classified as confident CD8+, cells with $r_{\text{CD4/CD8}} > 3$ as confident CD4+, cells expressing only one coreceptor below the ratio threshold as likely CD8+ or likely CD4+, and remaining cells as unknown. Because CD4 mRNA frequently exhibits zero-UMI dropout in droplet scRNA-seq, CD3-passing cells with zero detected CD4 and zero detected CD8 transcripts in libraries known to have been fluorescence-activated cell sorted (FACS) for CD4+ or CD8+ T cells are rescued into the sorted lineage ("likely CD4+" or "likely CD8+"), whereas any cell expressing the opposite coreceptor continues to be classified by its observed transcripts.

On the V(D)J side, non-productive contigs are excluded before selecting each cell's primary TCRα and TCRβ chains by highest UMI count. In deposits where 5' read truncation prevents full-length leader annotation, partial contigs carrying valid V and J gene calls and a stop-free canonical C...[FW] CDR3 sequence are retained for clonotype tracking. Cells entering ex vivo clone prioritization must belong to the requested lineage (CD8+, CD4+, or both), pass the CD3 UMI floor, carry canonical paired CDR3α and CDR3β amino-acid sequences, and have at least 2 UMIs supporting each primary chain.

Clonotypes are defined by identical paired CDR3α and CDR3β amino-acid sequences (CDR3α_CDR3β) aggregated strictly within each donor so that public receptors observed in distinct individuals remain separate candidate units. For each clonotype $c$ in sample $s$ and lineage $\ell$, clonal abundance is summarized by its cell count $n_{c,s,\ell}$ and within-sample frequency $f_{c,s,\ell} = n_{c,s,\ell} / N_{s,\ell}$, where $N_{s,\ell}$ is the total number of retained cells in that stratum. The exact same filtered cell population is used to compute clone counts, frequencies, transcriptional scores, and statistical background distributions.

Within-stratum transcriptional state scoring

Raw count matrices of retained cells are library-size normalized to 10,000 counts per cell and transformed by $\log(1 + x)$ for expression scoring, while raw counts are preserved separately for marker-presence audits. Gene symbols are harmonized across human GRCh38 (HGNC), legacy GRCh37/hg19 aliases, and murine MGI orthologs; TCR and immunoglobulin V, D, J, and C segment transcripts are excluded from all expression signatures to prevent circular leakage of receptor identity into transcriptional scores.

To prevent cross-sample batch effects and compositional differences from distorting rankings, every gene signature is scored independently across cells within each (donor, sample, lineage) stratum. Three scoring formulations are used according to the structure of each gene panel:

  1. Signed mean z-score (compact state panels). For a signature with upregulated genes $U$ and optional downregulated genes $D$, each gene $g$ is standardized across all cells $i \in {1, \dots, N}$ in the stratum using the stratum mean $\mu_g$ and population standard deviation $\sigma_g$ (setting $\sigma_g = 1$ for constant genes), $z_{i,g} = (x_{i,g} - \mu_g)/\sigma_g$, and the per-cell score is

$$S(i) = \frac{1}{|U|}\sum_{g \in U} z_{i,g} - \frac{1}{|D|}\sum_{g \in D} z_{i,g}.$$

This formulation is used for the six core state panels evaluated across contexts—Differentiated (IFNG, GZMB, PRF1, GNLY, NKG7 up; TCF7, LEF1, CCR7, SELL down), AntigenExperienced (IFNG, GZMB, PRF1, GNLY, NKG7), Cytolytic (PRF1, GZMB), AcuteActivation (TNFRSF9, MKI67), Proliferation (MKI67), and AIM (TNFRSF9, TNFRSF4)—as well as CirculatingMemory (GZMK, IL7R up; CCR7 down) and TumorReactive (CXCL13, ENTPD1, PDCD1, LAG3, HAVCR2, TIGIT, TOX, CTLA4, ITGAE). For murine analyses, primate-restricted GNLY is replaced by Gzma in effector panels, and Ccl3 and Ccl4 replace CXCL13 in TumorReactive because mouse CD8+ tumor-infiltrating lymphocytes (TILs) rarely transcribe Cxcl13.

  1. Scaled signed z-sum (three-gene MANAscore proxy). Because the published three-gene tumor-reactivity model combines CXCL13 and ENTPD1 positively and IL7R negatively without closed-form linear weights, a transparent unweighted proxy is computed on CD8+ cells as

$$S(i) = \frac{z_{i,\text{CXCL13}} + z_{i,\text{ENTPD1}} - z_{i,\text{IL7R}}}{\sqrt{3}}.$$

  1. Expression-matched control-subtracted module score (large published gene sets). Unweighted published gene sets—NeoTCR8 (243 genes for human CD8+ TILs), NeoTCR4 (40 genes for human CD4+ TILs), and NeoTCR_PBL (151 genes for circulating antitumor human CD8+ T cells)—are scored per cell within each stratum by subtracting the mean expression of expression-matched control genes (up to 50 control genes per signature gene sampled from up to 25 average-expression bins) from the mean expression of the signature genes.

Context-specific panels combine domain-matched reactivity signatures with the six core state panels: solid-tumor human TILs evaluate TumorReactive, the three-gene CXCL13/ENTPD1/-IL7R proxy, NeoTCR8 (CD8+), and NeoTCR4 (CD4+) ahead of the core panels; cancer-patient peripheral blood evaluates NeoTCR_PBL and CirculatingMemory ahead of the core panels; resting or infectious-disease blood evaluates CirculatingMemory and the core panels; and murine solid tumors evaluate murine TumorReactive ahead of the core panels. Signatures restricted to one lineage (NeoTCR8, NeoTCR_PBL, and the three-gene proxy to CD8+; NeoTCR4 to CD4+) are scored only on cells of that lineage.

Clone-level competitive qualification

For each clonotype $c$ of size $n$ in a (donor, sample, lineage) stratum containing $N$ retained cells, per-cell scores are summarized by the clone mean $\bar{S}c = \frac{1}{n}\sum{i \in c} S(i)$ and within-stratum clone percentile rank (average-rank tie handling). A flat raw-score threshold is statistically biased toward small clones because the sampling variance of a clone mean scales as $1/n$, allowing 2-cell clones to achieve extreme means by chance far more often than 20-cell clones. Conversely, single clonotypes often span multiple transcriptional states (for example, stem-like and exhausted cells), which can dilute $\bar{S}_c$ even when a large sub-population of the clone strongly expresses the program.

Each clonotype is therefore tested within its stratum against two complementary finite-population competitive references:

  1. Size-matched random-group mean route. For every distinct clone size $n$ observed in the stratum, a size-matched null distribution of $n$-cell group means is generated by sampling $n$ cells uniformly without replacement from the $N$ retained cells of that stratum. When $\binom{N}{n} \le 2{,}000$ (including $n = 1$ and $n = N$), all subsets are enumerated exactly; otherwise, $B = 2{,}000$ random subsets are drawn with a deterministic seed derived from (seed, donor, sample, lineage, n). The same subset draws are reused across all signatures to preserve observed within-cell gene covariance. The size-matched noise floor $q_{0.99}(n)$ is the empirical 99th percentile (higher-order-statistic quantile) of the null distribution. A clone qualifies on the mean route if:
  2. $\bar{S}c > q{0.99}(n)$ beyond numerical tolerance ($10^{-12} + 10^{-9}|\bar{S}_c|$),
  3. its within-stratum clone mean percentile rank is $\ge 0.90$, and
  4. scores in the stratum are non-constant.

For auditing, the unadjusted competitive tail probability is recorded as $(k_{\ge} + 1)/(B + 1)$ for Monte Carlo draws (or $k_{\ge}/\binom{N}{n}$ for exact enumeration), where $k_{\ge}$ counts null draws at least as large as $\bar{S}_c$ within numerical tolerance.

  1. Hypergeometric high-cell subset route. Each cell in the stratum is labeled high-scoring if $S(i)$ strictly exceeds the stratum's empirical 90th-percentile cell score (higher-order-statistic quantile, excluding ties). Letting $K$ be the total number of high-scoring cells in the stratum and $k$ be the number of high-scoring cells belonging to clone $c$ of size $n$, the exact probability that a uniform random subset of $n$ cells drawn without replacement contains at least $k$ high-scoring cells is

$$p_{\text{sub}} = \sum_{j=k}^{\min(n, K)} \frac{\binom{K}{j}\binom{N-K}{n-j}}{\binom{N}{n}}.$$

A clone qualifies on the subset route if $k \ge 5$, $p_{\text{sub}} \le 0.01$, and its within-stratum subset percentile rank (computed on $-p_{\text{sub}}$) is $\ge 0.90$.

A clone qualifies for a given signature within a stratum if it passes either the mean route or the subset route. Both routes measure competitive transcriptional enrichment relative to the observed T-cell pool in the same sample and lineage; neither models technical measurement noise, controls a formal false discovery rate for antigen specificity, or substitutes for functional validation.

Eligibility filters, specificity auditing, and priority-tiered round-robin selection

Before candidate selection, every clonotype is audited on abundance, public receptor databases, regulatory T-cell state, sequence publicness, and (when available) barcoded peptide–MHC (pMHC) multimer binding:

  • Abundance eligibility. Clones must comprise at least 2 retained cells across the donor's samples, reach a within-sample frequency of at least $0.1\%$ ($0.001$) in at least one sample, and qualify on at least one enabled signature.
  • Public TCR database annotation and bystander exclusion. Clonotypes are queried against curated public specificity databases (VDJdb, IEDB, and CEDAR) restricted to the same host species. Because ex vivo clones carry paired α and β chains, exact matching on both CDR3α and CDR3β is required by default to avoid false-positive β-chain collisions with unrelated public viral receptors on private epitopes. Matches to known MLANA/MART-1 self-antigen receptors (ELAGIGILTV, EAAGIGILTV, AAGIGILTV) are excluded by default; matches to viral epitopes are flagged and optionally excluded when targeting non-viral tumor antigens.
  • Regulatory T-cell (FOXP3) auditing and exclusion. Intratumoral regulatory T cells constitutively express chronic-activation and exhaustion markers (ENTPD1, CTLA4, TIGIT, TNFRSF9, TNFRSF4) and therefore overlap CD4+ tumor-reactivity signatures. For every clonotype, the fraction of retained cells with raw FOXP3 (murine Foxp3) UMI count $> 0$ is computed. Clones at or above 50% FOXP3+ cells (or 25% in shallow libraries) are flagged and optionally excluded in CD4+ effector selection.
  • Sequence generation probability and publicness. Per-chain generation ($P_{\text{gen}}$) and post-selection ($P_{\text{post}}$) log-probabilities are estimated from a V/J- and position-conditioned $k$-mer repertoire model (falling back to a gene-agnostic amino-acid Markov model when species-specific tables are absent). The maximum across chains ($\max(\ln P_{\text{post},\alpha}, \ln P_{\text{post},\beta})$) and its within-donor percentile rank are recorded to flag or optionally filter highly public sequences.
  • Multiplexed pMHC multimer clonal concordance. When DNA-barcoded pMHC multimers and negative-control (NC) multimers are profiled in the same library, a single cell is called specific for its top pMHC reagent only if (i) top pMHC UMI $\ge 10$, (ii) top UMI divided by $\max(\text{max NC UMI}, 1) \ge 5$, and (iii) top UMI divided by $\max(\text{second-highest pMHC UMI}, 1) \ge 2$ (rejecting poly-reactive droplets). Because true clonotypic receptor binding marks sibling cells of the same clone whereas non-specific reagent sticking scatters across unrelated clones, a clone-level specificity call is marked confident only when at least 2 cells and at least 50% of retained cells in the paired α/β clone share the same modal multimer call.

Rather than collapsing correlated gene panels into a single weighted composite score, eligible clones are selected by priority-tiered round-robin traversal up to a run-wide screening budget (default 200 clones). Each (signature, evidence route, donor, sample, lineage) combination forms its own ranked queue of qualifying, eligible clones: mean-route queues are ordered by decreasing clone mean score, within-sample frequency, cell count, and lexical CDR3α_CDR3β; subset-route queues are ordered by increasing $p_{\text{sub}}$, decreasing high-cell fraction $k/n$, cell count, and lexical CDR3α_CDR3β.

When context-specific reactivity panels are present (for example, TumorReactive, the three-gene CXCL13/ENTPD1/-IL7R proxy, NeoTCR8, and NeoTCR4 in solid tumors; NeoTCR_PBL in cancer peripheral blood), their queues form Tier 1 and are traversed to exhaustion or budget completion before the six general state panels form Tier 2 to backfill any remaining slots. Within each tier, selection proceeds in full rounds, taking the highest-ranked previously unselected clone from each non-empty queue and skipping clones already chosen by an earlier queue. Clones observed across multiple samples of the same donor occupy at most one shortlist slot, whereas identical sequences in distinct donors are treated independently. If the remaining budget is smaller than the number of active queues in a round, remaining slots are assigned sequentially to the queue whose signature—and, to break ties, whose (donor, sample, lineage) stratum—has received the fewest selections in that round. Exhausted queues drop out of rotation, and the shortlist is never padded with clones that failed the qualification cutoffs. Every selected clone retains the exact signature, evidence route, sample, and lineage that contributed it.

Selection in antigen-stimulated cultures and short-term restimulation assays

When T cells are expanded in vitro with cognate antigen rather than sampled directly ex vivo, clonal abundance and paired control contrasts provide direct evidence of antigen response:

  • Multi-week peptide or antigen expansion cultures. Complete paired α/β clones matching the target lineage are assigned to five nested abundance tiers based on total cell count and peak within-sample frequency: Tier 1 ($\ge 10$ cells and $\ge 1.0\%$), Tier 2 ($\ge 5$ cells and $\ge 0.5\%$), Tier 3 ($\ge 3$ cells and $\ge 0.1\%$), Tier 4 ($\ge 2$ cells and $\ge 0.05\%$), and Tier 5 ($\ge 2$ cells). Where empirical frequency cutoffs are preferred over fixed tiers, a one-parameter ridge-regularized, no-intercept logistic regression models the probability that a clone is single-culture non-viral as a function of peak frequency $f$, $P(y=1 \mid f) = (1 + e^{-\beta f})^{-1}$ (evaluated per donor when multiple donors do not share an antigen), and sets tier thresholds where $1 - \hat{P}(y=1 \mid f)$ matches nominal false-discovery-rate targets (0.01%, 0.1%, 1%, 10%, and 15%). In multi-method sorting designs, clones can additionally be partitioned into shared, method-pair, and method-private rules by tier criteria across sorting arms.
  • Short-term (16–24 h) paired peptide restimulation. During overnight restimulation, antigen-reactive T cells induce activation and cytokine transcripts before undergoing multiple rounds of division. Comparing stimulated wells against paired unstimulated or vehicle-control wells from the same donor, each clonotype is evaluated on two axes: (i) clonal count enrichment via a one-sided Fisher's exact test on the $2 \times 2$ table of clone versus non-clone cell counts in stimulated and control wells (with Benjamini–Hochberg false discovery rate adjustment restricted to testable clones having at least 2 total cells across wells) alongside a Haldane-smoothed $\log_2$ fold-change using pseudocount $0.5$, and (ii) within-clone paired transcriptional induction $\Delta = \bar{S}{\text{stim}} - \bar{S}{\text{control}}$ on activation or effector-cytokine panels (TNFRSF9/TNFRSF4, CD69/IL2RA/CD40LG, MKI67, or IFNG/TNF/IL2/CCL4). Clones passing either count enrichment (FDR $\le 0.1$ and $\log_2\text{FC} \ge 1.0$) or paired transcriptional induction ($\Delta \ge 0.5$) are retained and stratified into nested confidence tiers.

Scope and limitations

Transcriptional state signatures measure cellular phenotypes associated with recent or chronic antigen engagement rather than directly predicting cognate epitope identity or MHC restriction; functional validation of candidate receptors remains necessary. In peripheral blood drawn shortly after vaccination or acute infection, activated antiviral clones can upregulate proliferation, activation, and exhaustion modules alongside tumor-reactive clones. Conversely, systemic lymphodepletion, ex vivo expansion, and high-dose cytokine therapy remodel bystander TIL states in early post-adoptive-cell-therapy biopsies, reducing separation relative to pre-treatment biopsies. Finally, in resting blood without antigen stimulation, barcoded multimers, or paired tissue overlap, transcriptional signatures separate antigen-experienced memory subsets from naive precursors but cannot identify which antigen an expanded memory clonotype recognizes.