This notebook applies the edgeR differential abundance framework to identify individual clonotypes that significantly expand or contract from Apheresis to Product. Each clonotype is treated analogously to a gene, with clone counts as the "expression" measure. We use edgeR's negative binomial GLM with a fixed BCV of 0.4 for this unreplicated design.
# edgeR differential abundance — fixed BCV for unreplicated design
library(edgeR)
bcv <- 0.4
y$common.dispersion <- bcv^2
fit <- glmFit(y, design, dispersion = bcv^2)
lrt <- glmLRT(fit, coef = 2)For each patient, we build a count matrix (clonotypes × samples), apply TMM normalization, and fit a negative binomial GLM. With only 2 samples per patient (no biological replicates), we use a fixed BCV of 0.4 (dispersion = 0.16), consistent with edgeR user guide recommendations for unreplicated designs in immune repertoire analysis.
Volcano plots display log₂ fold change (x-axis) against −log₁₀ FDR (y-axis). Points above the dashed significance line and beyond fold-change cutoffs are colored as expanders (green) or contractors (red).
The volcano plots reveal strong asymmetry — many more clonotypes are significantly contracting (lost in Product) than expanding. This is expected: manufacturing selects a small subset for expansion while the majority of apheresis clonotypes are depleted. The expander population shows more extreme fold changes, indicating focused amplification.
The most significantly expanding clonotypes represent candidate therapeutic clones selected during manufacturing. Contractors represent the diverse starting material that was not carried into the Product.
We test whether significantly expanding clonotypes preferentially use certain TRBV gene segments relative to background Product usage, revealing potential biases in clonal selection.
1. edgeR identifies hundreds of significantly differentially abundant clonotypes per patient (FDR < 0.05), with the majority being contractors.
2. Significant expanders represent the clonotypes selected and amplified during manufacturing — the candidate therapeutic clones.
3. CR patients show distinct expansion patterns with the most extreme fold changes in the expander population.
4. V gene enrichment analysis reveals potential biases in which TCR gene segments are preferentially expanded.