Question 17 of 20 Advanced Interpretation
How would you test whether cell-type proportions differ between conditions in single-cell data?
Short answer
Count cells per type per sample and test across samples with a method built for overdispersed or compositional counts, such as edgeR on cell counts, propeller or scCODA. Remember that proportions sum to one, so one population expanding makes all others fall in proportion.
Why
A differential abundance test asks whether a cell type is more common in one condition, across biological replicates. The Bioconductor multi-sample book counts cells per label per sample and uses edgeR, where the counts are cells instead of reads, so variability between replicates is modeled. The catch is composition.
Normalizing by total cells tests proportions, and the book notes that a large increase in one population creates decreases in proportion for every other population. That is technically correct, but misleading if read as those cells declining on their own. If most labels are assumed stable, normalization factors can correct for it, but that assumption is often too strong when a few cell types make up the sample. scCODA addresses this with a Bayesian compositional model and a reference cell type. propeller transforms proportions with arcsin square root or logit, because proportions near zero or one have small variance.
Milo avoids discrete clusters altogether and tests overlapping neighborhoods on a k-nearest neighbor graph with a spatial FDR. Cell capture itself can be biased, as dissociation favors some cell types, so even a correct test describes the captured cells.
A strong answer covers
- Count cells per type per sample and test across replicates
- Proportions are compositional, so changes are linked
- State the normalization assumption, such as most types unchanged
- Options include edgeR, propeller, scCODA and Milo
- Dissociation bias limits what proportions mean for the tissue
Common mistakes
- Running a chi-squared test on pooled cell counts and ignoring replicates
- Reading a proportional decrease as a loss of those cells
- Assuming captured proportions equal tissue proportions
The interviewer might ask next
How would you confirm a proportional change with an independent method?