All examples · Example 26 of 34
Sunburst: Immune Cell Hierarchy
Hierarchical breakdown of 15,740 immune cells: lineage (inner ring) and subset (outer ring).

Key findings
- 15,740 cells in 4 lineages. With counts this large, every 95% interval is within about ±1 percentage point.
- The inner-ring proportions use the parent lineage as their denominator — the most common mistake when reading a sunburst.
Lineage share of all cells
Each lineage as a proportion of all 15,740 cells, with 95% Wilson and Wald intervals. At these counts the two methods agree — the difference only matters for small n or rare populations.
| Proportion | Count | Estimate | 95% Wilson CI | 95% Wald CI |
|---|---|---|---|---|
| T cells | 8930 / 15740 | 56.7% | 56.0% – 57.5% | 56.0% – 57.5% |
| B cells | 2620 / 15740 | 16.6% | 16.1% – 17.2% | 16.1% – 17.2% |
| NK cells | 1690 / 15740 | 10.7% | 10.3% – 11.2% | 10.3% – 11.2% |
| Myeloid | 2500 / 15740 | 15.9% | 15.3% – 16.5% | 15.3% – 16.5% |
LabTools calls (2)
stats.cilabtools stats ci --kind proportion --successes 8930 --n 15740 --method wilson
stats.cilabtools stats ci --kind proportion --successes 8930 --n 15740 --method wald
The same method is available as an MCP tool (stats_ci) and from the desktop app's statistics panel.
Subset share of its parent lineage
The inner ring of a sunburst is a proportion of its parent, not of the total, so each subset's interval uses its lineage count as n.
| Proportion | Count | Estimate | 95% Wilson CI | 95% Wald CI |
|---|---|---|---|---|
| CD4+ T (of T cells) | 5120 / 8930 | 57.3% | 56.3% – 58.4% | 56.3% – 58.4% |
| CD8+ T (of T cells) | 2860 / 8930 | 32.0% | 31.1% – 33.0% | 31.1% – 33.0% |
| Treg (of T cells) | 640 / 8930 | 7.2% | 6.7% – 7.7% | 6.6% – 7.7% |
| γδ T (of T cells) | 310 / 8930 | 3.5% | 3.1% – 3.9% | 3.1% – 3.9% |
| Naive B (of B cells) | 1650 / 2620 | 63.0% | 61.1% – 64.8% | 61.1% – 64.8% |
| Memory B (of B cells) | 820 / 2620 | 31.3% | 29.6% – 33.1% | 29.5% – 33.1% |
| Plasmablasts (of B cells) | 150 / 2620 | 5.7% | 4.9% – 6.7% | 4.8% – 6.6% |
| CD56bright NK (of NK cells) | 210 / 1690 | 12.4% | 10.9% – 14.1% | 10.9% – 14.0% |
| CD56dim NK (of NK cells) | 1480 / 1690 | 87.6% | 85.9% – 89.1% | 86.0% – 89.1% |
| Classical mono (of Myeloid) | 1720 / 2500 | 68.8% | 67.0% – 70.6% | 67.0% – 70.6% |
| Non-classical mono (of Myeloid) | 380 / 2500 | 15.2% | 13.8% – 16.7% | 13.8% – 16.6% |
| cDC (of Myeloid) | 260 / 2500 | 10.4% | 9.3% – 11.7% | 9.2% – 11.6% |
| pDC (of Myeloid) | 140 / 2500 | 5.6% | 4.8% – 6.6% | 4.7% – 6.5% |
LabTools calls (2)
stats.cilabtools stats ci --kind proportion --successes 5120 --n 8930 --method wilson
stats.cilabtools stats ci --kind proportion --successes 5120 --n 8930 --method wald
The same method is available as an MCP tool (stats_ci) and from the desktop app's statistics panel.
Methods paragraph
Written to go straight into a manuscript.
Of 15,740 gated cells, 56.7% were T cells, of which CD4+ T cells formed the largest subset (57.3% of T cells).
Every number on this page was computed by the LabTools statistics engine (version 0.14.3) from the example's CSV on 2026-09-23. Where a value was derived before the data reached LabTools (replicate means, paired differences, log odds ratios), the text says so. The data are simulated from a fixed random seed.
Get started
Run the same analysis on your data
Every test on this page is built into LabTools — from the statistics panel, the command line, or an AI assistant through MCP.