DEG by Cell Type — DEG counts per cell type and contrast¶
In the app: Single-cell › DEG by Cell Type
Available on single-cell RNA-seq projects that have pseudobulk differential expression results.
DEG by Cell Type answers: which cell types actually respond? Rather than one differential expression result for the whole tissue, the pipeline runs each contrast within each cell type separately (pseudobulk); this report lays the outcomes side by side.

Example output from a demonstration project with synthetic data.
Findings¶
- "N cell types × N contrasts; N DEGS in total." — the label follows the Metric (DEGS, UP or DOWN).
- "Most responsive cell type: cell type (N DEGS)."
- "No DEGS in: …" — cell types with none, when there are any.
If the project has no pseudobulk results, the page says No pseudobulk DEG results available for this project.
Filters¶
Metric¶
degs (default), up or down — what the heatmap counts: all significant genes, or only those higher or lower in the target group.
Switching between up and down shows the direction of each cell type's response, which a combined count hides: two cell types with a similar DEG total can be responding in opposite directions.
DEG heatmap¶
Titled DEGS by cell type x contrast (or UP / DOWN). Contrasts are on the x-axis (Contrast), cell types on the y-axis (Cell type), and the count is written in each square. The colour scale is red for degs and up, blue for down; the darkest squares are where the condition has the strongest transcriptional effect.
Raw data¶
Raw data — Pseudobulk summary¶
The numbers behind every square, one row per cell type × contrast, with Download CSV.
| Column | Meaning |
|---|---|
contrast |
the full contrast name, cell type included |
celltype |
cell type tested |
contrast_id |
the contrast, e.g. HC_vs_OA |
n_samples_reference / n_samples_target |
samples on each side of the comparison |
genes_tested |
genes that passed expression filters in this cell type |
degs / up / down |
significant genes in total and by direction |
design |
the model formula used |
Report settings that apply¶
Only Appearance (plot size, fonts). The counts come straight from the pipeline's pseudobulk summary, so the Adjusted p-value threshold and log2 Fold Change threshold do not recount them, and the Cell type and Contrast settings do not change the view. To apply your own thresholds to one cell type, select it in Cell type and open Volcano or Summary. See Report Settings.
Reading it¶
Check n_samples_reference and n_samples_target before trusting a striking result — a cell type tested on fewer samples carries much less statistical weight. genes_tested also varies by cell type, because sparsely expressed genes are dropped, so the same DEG count means more in a cell type with fewer genes tested. Cell types missing from the heatmap were not tested; Pseudobulk Coverage says why.