Rarefaction
A deeper sample holds more clonotypes because it is deeper. The Rarefaction part computes what each sample would show at any size up to twice its own, and at any sample coverage, so that samples are compared at a level they all reach.
Compare at a level


Open Repertoire › Rarefaction and choose Rarefy and extrapolate; the result is kept with the project. Each sample at a level shows the clonotypes, Shannon diversity and Simpson diversity there, each with its 95% interval:
- The lowest coverage among the samples (the default): every sample rarefied to it, none extrapolated.
- The smallest sample's size: every sample rarefied to it.
- Extrapolated levels, as iNEXT gives by default: the coverage, or the size, that the samples reach when each is extrapolated to twice its own size.
Comparing at equal coverage is better than at equal size (Chao and Jost 2012): a sample twice as deep is not just more of the same repertoire, and equal coverage compares samples equally complete.
The curves
Each sample's curves, by size and by coverage: solid where rarefied, dashed where extrapolated, a dot at the sample itself, and bands for the intervals; and how each sample's coverage rises with its size. Sizes are on a logarithmic axis where the samples' sizes differ more than tenfold. The curves and their intervals come from the same 200 bootstrap replicates as the diversity measures.
How far to trust extrapolation
In ClonoLoom's simulations of repertoires with many rare clonotypes, values extrapolated to twice a sample's size were within 3% of the truth on average, but their intervals were narrower than that, and held the truth less often than they say (only the Simpson diversity's held it as often). That is why ClonoLoom suggests levels reached by rarefaction alone first, and says so when a sample is extrapolated.
Like diversity, the curves need counts of cells or molecules: in reads, every sample looks complete, and the view warns.
Using the result
The plots save as figures, Export writes every point of every curve and the levels compared as CSV, and the methods paragraph says how the samples were compared and at which level. Scripts use rarefy, choosing the level (Remote control).