Cell-type proportions
Quantify and compare cell-type composition across samples or patient groups using individual cell or spot counts, or precomputed densities and fractions.
Quantify and compare cell-type composition across samples or patient groups using individual cell or spot counts, or precomputed densities and fractions.
Count-based proportions (boxplot)
Description
Analysis summary
Computes how a cohort's units — samples, patients or slides — are composed: within each denominator unit, the share of its entities (most often cells) falling in each category of a grouping variable, one proportion per unit.
Computation
Within every denominator unit, the entities falling in each category of the grouping variable (optionally split by a stratification variable) are counted and divided by the unit's total entity count, giving per-unit proportions that sum to 1. The output keeps one proportion per denominator unit rather than a single average composition, so the unit-to-unit (patient-to-patient, slide-to-slide) biological spread is preserved. Pairwise statistical comparisons of the proportions between groups (within each stratum when the data is stratified) are computed automatically and returned with the results.
When to use
Use for composition and abundance questions whenever the entities can be counted individually: cell-type proportions per sample in single-cell or spatial transcriptomics, spot composition per slide, and so on. It answers 'how much of each unit is X?' — not 'what fraction of cells express gene Y?': that is an expression question, answered by sparse_aggregation_analysis. When only pre-aggregated densities are available and entities cannot be counted, use the density mode of this analysis instead.
Caveats
A denominator unit with few entities (e.g. a sample with a handful of cells) yields noisy proportions, and proportions of rare categories are unstable across units.
Example questions
Input columns
Visualizations
boxplotHow to read: Each box shows the distribution of per-denominator proportions for one group: the centre line is the median, the box spans the interquartile range of the values, and the dots are the individual denominator units (samples, patients or slides) — their vertical spread is the unit-to-unit variability of the composition. When the data is stratified, side-by-side boxes are keyed by the legend. Significance brackets with stars mark groups with at least one significant pairwise comparison after multiple-testing correction (★ p<0.05, ★★ p<0.01, ★★★ p<0.001, ★★★★ p<0.0001). The y-axis is the share of each denominator unit, in percent.
Example analysis 1
Name — Cell Type Proportions (MOSAIC, Age >= 40)
Analysis parameters
Visualization — boxplot

Output table
Density-based proportions (stacked bar)
Description
Analysis summary
Computes the mean composition of each group from pre-computed measurements that cannot be decomposed into countable entities — for example histomics-derived cell densities per slide or tissue region — as the mean share of each category in the group's composition.
Computation
Each measurement is first normalised to a proportion within its denominator unit (the unit's measurements sum to 1), and those per-unit proportions are then averaged within each group to give the mean composition — one mean share per category per group. Missing category-unit combinations are counted as zero before averaging, so a rare category's mean is taken over all units, not only those where it appears. Pairwise statistical comparisons between the categories within each group are computed automatically and returned with the results.
When to use
Use when the input provides pre-aggregated density or fraction values (e.g. histomics cell densities) rather than countable entities. When the entities can be counted individually, prefer the count mode of this analysis, which keeps the unit-to-unit variability visible instead of averaging it away.
Caveats
Averaging across denominator units yields the typical composition of each group but not the unit-to-unit spread.
Example questions
Input columns
Visualizations
barHow to read: Each bar is one group; its stacked segments (keyed by the legend) show the mean share of each category in the group's composition, summing to 100%, with the percentage written inside each segment. The chart shows the typical composition per group but not the unit-to-unit spread — use the count mode's boxplot for that. Pairwise comparisons between the categories within each group are reported in the accompanying statistical table.
Example analysis 1
Name — Histomics Cell Type Proportions by Gender (TCGA Bladder Cancer, Age > 40)
Analysis parameters
Visualization — bar

Output table
Last updated
Was this helpful?