Module output and Customization
The Rarefaction Analysis module produces four types of plots:- Alpha diversity vs sequencing depth: scatter plots relating each sample’s sequencing depth to its Alpha Diversity value, to visually asses how much diversity estimates is affected by sequencing depth.
- Sample retention by read depth: how many samples remain as the read-depth threshold increases, to help choose a depth that balances rigor with sample size.
- Alpha diversity rarefaction curves: mean alpha-diversity assessed at increasing subsampling depths for the whole cohort. Use it to judge whether sequencing depth is sufficient to estimate diversity of your samples.
- Grouped alpha diversity rarefaction curves: rarefaction curves with alpha-diversity metrics split by a grouping variable. Use it to compare rarefaction patterns across groups.
Alpha diversity vs sequencing depth

Each point represents one sample, with sequencing depth shown on the x-axis, usually on a log scale, and the selected alpha-diversity metric shown on the y-axis, such as observed richness, Shannon diversity, or Simpson diversity. A fitted trend line is shown to summarize the relationship between sequencing depth and the diversity metric across the samples.
phylum) and higher at lower ranks (such as species).
The red fitted line provides shows the overall alpha-diversity change across the range of sequencing depths across the cohort.
- Observed richness: plateauing at certain read depth, means the number of taxa detected is not influenced after that sequencing level. This suggests that the community is not undersampled. Complex environments (e.g: soil microbiome) or high-resolution taxonomic levels (e.g: species, strain, genes) typically require extremely high sequencing depths in order to exhaust detection of new diversity. If observed richness does not plateau, richness estimates may still be strongly affected by sequencing depth. If observed richness does not plateau, richness estimates may still be strongly affected by sequencing depth. In that case, interpret group comparisons of richness or other downstream analyses based on feature presence-absence carefully and/or perform rarefaction beforehand.
- Shannon and Simpsons: plateauing in these two indexes suggests that sequencing depth is enough to estimate community evenness (overall composition). Since evenness-based alpha-diversity indexes keep into account also the abundance proportion at which a taxa appear in the community, it typically stabilize at lower sequencing depth wrt to observed richness.
Why is this plot useful?
- Spot unusual samples:
- Samples that fall far from the overall trend may reflect unusual microbial profiles, technical issues, or sample-specific conditions, for example unexpectedly low or high diversity for a sample’s depth, caused by handling, lab processing, contamination, storage, or a true biological shift.
- Spot uneven sequencing depth: the position of each dot on the x-axis is its sequencing depth. If most dots cluster in a narrow band and only a few sit at the far left or right, a handful of samples have much lower or higher depth than the rest of the cohort, worth checking before comparing diversity across samples.
Sample retention by read depth

This plot shows how many samples remain available as the selected read-depth threshold increases. The blue line shows retained samples at each depth, while the dashed red line marks the total number of samples in the dataset. It helps choose a read depth that balances sequencing depth with sample retention.
Setting the span of the x-axis
The Rarefaction Minimum Depth and Rarefaction Maximum Depth parameters set the range of sequencing depth evaluated along the x-axis. Rarefaction Steps sets how many depths within that range are evaluated; more steps give a smoother curve.Why is this plot useful?
- Choose an appropriate read-depth threshold for filtering or rarefaction. As the depth increases, fewer samples have enough reads to be retained. This plot makes the trade-off visible: higher depths may improve robustness but reduce sample size, while lower depths retain more samples but include less deeply sequenced profiles.
Use this trade-off to set the Data Table Preprocessing Method in the PREPROC parameters of other Analysis modules. For a given depth on the x-axis, the curve shows how many samples would be retained if the data were rarefied to that depth, since any sample with fewer reads than the threshold is dropped. A higher threshold keeps more reads per sample but retains fewer samples.
Alpha Diversity Rarefaction Curves

Lines show the mean for difference Alpha Diversity metrics at each sequencing depth subsampling step. The left-side Y-axis of the plot refer to the Observed Richness, while the right-side Y-axis refers to Diversity indexes like Shannon and Simpsons. Shaded areas represent ± one standard deviation across samples. The plot helps you assess how observed richness, Shannon diversity, and Simpson diversity change as more reads are included.
Why is this plot useful?
- Evaluate whether sequencing depth is sufficient to capture alpha diversity in your cohort. As a curve approaches a plateau, that metric’s estimate stabilizes, meaning deeper sequencing would change it little. What this tells you depends on the metric: when observed richness plateaus, the depth is enough to detect most of the features present, including rarer ones; when Shannon or Simpson plateaus, the depth is enough to capture the community’s composition, the balance of its dominant members, which these metrics weight most heavily. Because richness is the most depth-sensitive of the three, it usually plateaus last. Curves that keep climbing suggest the estimate still depends on sequencing depth.
Grouped alpha diversity rarefaction curves

Each panel shows one alpha-diversity metric across increasing sequencing depths. Colored lines represent the mean diversity for each group (for example, hiv_profile), and shaded areas show within-group variability. Curves that flatten suggest the observed diversity is becoming stable; curves that keep changing suggest estimates may still depend on sequencing depth.
Why is this plot useful?
- Assess group-level rarefaction patterns. When comparing groups, check whether alpha-diversity differences are consistent across depths. Stable differences are more likely to reflect real community structure, while differences that appear only at low depth may be driven by under-sampling.
- Verify that the chosen depth for rarefaction doesn’t exclude a whole group. When rarefaction is applied, samples below the chosen threshold are discarded. If every sample in a group (a treatment, time point, or cohort) has low depth, the entire group may be removed from downstream analyses. Before proceeding, confirm a minimum number of samples per group is retained. If a group is at risk, consider lowering the rarefaction depth or investigating why those samples have lower sequencing depth.
Recommended parameters
- Kepler - Host-Agnostic Taxonomic Profiling
- CHAMP - Human Taxonomic Profiling (WGS)
- 16S SR Amplicon Classification - Taxonomic
- 16S LR Amplicon profiling - Taxonomic
Parameters reference
Taxonomic Rank
Taxonomic Rank
- Options ·
kingdom,phylum,class,order,family,genus,species - Default ·
species
species give more detailed richness estimates but are more sensitive to annotation uncertainty and sparse data. Higher ranks such as phylum or family give broader compositional taxonomic summaries but hide biologically relevant differences.Rarefaction Minimum Depth
Rarefaction Minimum Depth
- Options · Integer value
- Default · Minimum number of reads observed across samples in the dataset
10,000, the first point of the curve estimates how many features are observed after subsampling each sample to 10,000 reads.Rarefaction Maximum Depth
Rarefaction Maximum Depth
- Options · Integer value
- Default · Maximum number of reads observed across samples in the dataset
Rarefaction Steps
Rarefaction Steps
- Options · Integer value
- Default ·
10 - Suggested · 3 to 15, fewer steps for quick exploratory analyses, more for smoother curves
100,000 reads and a maximum of 1,000,000, setting 10 steps divides the range into 10 evaluated depths.Iterations
Iterations
- Options · Integer value
- Default ·
5 - Suggested · 3 to 10, fewer for faster exploratory analysis, more for more stable curves
Rarefaction Seed
Rarefaction Seed
- Options · Integer value
- Default ·
42
Grouping Variable
Grouping Variable
- Options: Categorical variables from the metadata table associated with the query used to create the analysis
- Default :
None - Suggested: A biologically meaningful categorical variable, such as
treatment,condition,disease status,body site,cohort,time point, orethnicity
Drop samples with missing grouping metadata
Drop samples with missing grouping metadata
TRUE or FALSEDefault · TRUEIf enabled, samples with missing grouping metadata are removed. If disabled, they are kept and assigned to a default missing-value group. The best choice depends on sample size and whether missing metadata is meaningful for your analysis.