Expanded and contracted clonotypes

The Tracking view's Tests part tests each clonotype between two time points of each subject, calls those that increased or decreased with the false discovery rate controlled, and shows them at their two frequencies.

Choose what to compare

The Tracking view's Tests part on the simulated CAR-T study: the week before the infusion against two weeks after by the beta-binomial test, its variance fitted on three pairs of replicate samples, shown as each replicate clonotype's difference against its total, with sampling's narrow band and the fitted model's wider oneThe Tracking view's Tests part on the simulated CAR-T study: the week before the infusion against two weeks after by the beta-binomial test, its variance fitted on three pairs of replicate samples, shown as each replicate clonotype's difference against its total, with sampling's narrow band and the fitted model's wider one
The simulated CAR-T study, the week before the infusion against two weeks after: the beta-binomial test's variance, fitted on the samples taken twice before the infusion.

Give the samples their subjects and time points first (Subjects and time points). Then open Tracking › Tests and choose:

Clonotypes with fewer than 5 cells or molecules in the two samples together are not tested, nor counted among the tests. The choice is kept with the dataset, and each result with the project.

Reading the result

The variance between samples

Two blood samples taken at one time differ by more than sampling. The beta-binomial test allows for that, as Rytlewski et al. 2019 proposed: a clonotype's count at the first time point, given its total n at the two, varies around its expectation with a scale v(n) = 2 + (b ln n + a)², fitted by maximum likelihood on clonotypes of samples that should not differ.

What the tests account for

On simulated studies whose truth is known:

The tests refuse counts of reads, which count each cell or molecule many times over.

Using the result

The plot saves as a figure. Export writes every clonotype tested, with its counts, p-value, adjusted p-value and call, and each subject's comparison in sum, as CSV. The methods paragraph says what was compared, how, and what was called. Scripts use test_expansion (Remote control).