Zubair Khalid

Virologist/Molecular Biologist | Veterinarian | Bioinformatician

Conventional & Molecular Virology • Vaccine Development • Computational Biology

Dr. Zubair Khalid is a veterinarian and virologist specializing in conventional and molecular virology, vaccine development, and computational biology. Dedicated to advancing animal health through innovative research and multi-omics approaches.

Dr. Zubair Khalid - Veterinarian, Virologist, and Vaccine Development Researcher specializing in Computational Biology, Multi-omics, Animal Health, and Infectious Disease Research

Category: Guides

Single-Cell RNA-Seq Differential Expression

Single cell RNA sequencing (scRNA seq) differential expression is the statistical process of identifying genes whose expression levels differ significantly between predefined groups of cells, such as clusters, conditions, or time points. It accounts for the unique features of single cell data: high sparsity, dropouts, and technical noise. This guide is for bench scientists, bioinformatics beginners, and data analysts who want a clear, source bounded framework for designing and running scRNA seq differential expression analyses NCBI Bookshelf.

Unlike bulk RNA seq, each cell provides a separate measurement, leading to thousands of comparisons and a need for specialized statistical models. Common strategies include nonparametric tests, hurdle models, or mixed models that handle zero inflation. Choosing the right method depends on your experimental design, sample size, and biological question EMBL EBI Training.

At a Glance

Aspect Key Points
Purpose Identify genes that distinguish cell groups or conditions.
Core Challenge Sparse data, dropouts, high dimensionality, and low cell numbers per group.
Common Methods Wilcoxon rank sum, MAST, DESeq2 (adapted), SCTransform, pseudobulk approaches.
Required Input Normalized count matrix, cell metadata (cluster labels, conditions), and a well designed experiment.
Major Tools Seurat, Scanpy, scran, Monocle, Bioconductor packages Bioconductor.
Key Quality Check Replicate consistency, p value distribution, effect size versus variance.
Pitfall Using methods designed for bulk data without adjusting for sparsity.
Interpretation Limit Differences may reflect cell type composition rather than true regulatory changes.

Core Concepts and Decision Points

1. What is a differential expression test in single cell data?

A differential expression test compares the expression of each gene between two or more groups of cells. The null hypothesis is that the gene’s expression distribution is the same across groups. Because of dropouts (missing values where a gene is not detected), the distribution is often zero inflated. Common test choices are the Wilcoxon rank sum test (nonparametric, does not assume normality), the MAST hurdle model (separates detection and expression level), and pseudobulk aggregation (sum counts per donor before testing). Each has tradeoffs in sensitivity, specificity, and computational cost Galaxy Training Network.

2. Should you treat cells as independent samples?

No. Cells from the same donor or sample are not independent. Using a test that assumes independence inflates false positives. The gold standard is to use a pseudobulk approach where you sum counts per donor per cluster and then apply methods like DESeq2 or limma. Alternatively, use mixed models or packages like Muscat that model the sample as a random effect. Without this step, your DE results may not replicate NCBI Sequence Read Archive (for raw data that should be available to validate).

3. What about batch effects and covariates?

Batch effects must be accounted for. Integrate samples before clustering, but for DE, include batch as a covariate in the model (e.g., in pseudobulk DESeq2 design). If using per cell models, include batch and cell cycle phase as covariates if relevant. Also consider library size (total UMI count per cell) and mitochondrial percentage.

4. Fold change or p value?

Both matter. Large fold changes with small p values are more reliable. But in scRNA seq, a gene may show a large fold change due to few detected cells. Use effect size measures like AUC (area under the ROC curve) or log2 fold change combined with detection rate. Many tools output a “pct.1” and “pct.2” showing the fraction of cells expressing the gene in each group. A gene expressed in 80% of one group and 10% of the other may be more biologically relevant than one with a huge fold change but seen in 2% of cells.

Practical Workflow for Differential Expression

The following steps assume you have already performed quality control, normalization, cell clustering, and cell type annotation. See the related guides on somatic cells and cell cycles for preliminary steps.

Step 1: Define your groups. Create a metadata column that specifies the contrast of interest (e.g., “disease vs healthy” within a specific cell type). For cluster markers, the group is the cluster identity.

Step 2: Choose a testing framework. For a single donor per condition, use per cell tests cautiously. For multiple donors, use pseudobulk aggregation. The code example below (conceptual) shows a pseudobulk approach in R:

library(DESeq2)
## Aggregate counts per sample per cluster
pseudo <- aggregate(exprs, by = list(sample, cluster), FUN = sum)
## Build DESeq2 object
dds <- DESeqDataSetFromMatrix(pseudo, colData = metadata, design = ~ condition)
dds <- DESeq(dds)
results <- results(dds, contrast = c("condition", "disease", "healthy"))

Step 3: Filter lowly expressed genes. Remove genes that are expressed in fewer than a minimum number of cells (e.g., 3 cells or 10% of the group). This reduces multiple testing burden and improves power.

Step 4: Run differential expression. Use a method suited to your data. Popular choices: Seurat’s FindMarkers (default: Wilcoxon), FindAllMarkers, FindConservedMarkers. For pseudobulk, use DESeq2, edgeR, or limma. For trajectory analysis, use Monocle or tradeSeq FIERCE: reconstructing dynamic trajectories from the differentiation potency of single cells.

Step 5: Adjust for multiple testing. Apply the Benjamini Hochberg correction to control the false discovery rate (FDR). Use a threshold like FDR < 0.05 and log2 fold change > 0.25 (or 1 if biological effect is known).

Step 6: Annotate results. Add gene symbols, biotype, and known functions from databases. Visualize with volcano plots, heatmaps, and dot plots.

Step 7: Validate. Check if the top DE genes make biological sense. Use external validation with published datasets or experimental follow up. For example, a recent study on lung adenocarcinoma used multi omics to validate super enhancer signatures Multi omics machine learning driven investigation of super enhancers signatures and prognostic biomarkers in lung adenocarcinoma.

Quality Checks and Validation

Before trusting DE results, perform these checks:

Common Mistakes to Avoid

1. Treating cells as i.i.d. samples

This is the most common error. Cells from the same donor are correlated. Using a student’s t test or Wilcoxon on pooled cells yields thousands of false positives. Always use pseudobulk or mixed models with donor as a random effect.

2. Using normalized counts incorrectly

Do not use log normalized counts in DESeq2 or edgeR directly. Pseudobulk aggregation should use raw counts (or UMI counts). For per cell models, offsets or size factors must be included.

3. Ignoring zero inflation

A gene with many zeros in both groups may still appear significant if the zeros are not handled. Use hurdle models or a test that separates expression frequency from magnitude.

4. Overinterpreting small fold changes

A fold change of 0.25 log2 may be statistically significant but biologically meaningless. Set a minimum fold change threshold and validate by looking at expression patterns.

5. Not checking for dropout driven artifactual differences

If a gene is detected only in one group because of technical dropout (not biology), it may appear as DE. Check that detection rates are not due to differences in sequencing depth or cell quality. Use the percentage of cells expressing the gene (pct.1, pct.2) to filter.

6. Failing to account for cell type composition

When comparing conditions, differences in cell type proportions can cause DE that is actually a shift in composition. Use methods that model cell frequencies or consider running DE only within each cell type.

Limits of Interpretation and Uncertainty

Differential expression from scRNA seq cannot prove causality. A gene that is upregulated in disease cells may be a cause, consequence, or bystander. The following limitations apply:

  • Sparse detection: Lowly expressed genes are often missed, leading to false negatives. This is especially problematic for transcription factors and signaling molecules.
  • Batch effects: Even after integration, residual batch effects can bias DE. Always include batch as a covariate in the model.
  • Cell cycle confounding: Dividing cells express different genes than quiescent cells. If your groups have different proliferation rates, DE results may reflect cell cycle state.
  • Ambient RNA contamination: Droplet based methods capture ambient RNA from dead cells. This can cause false positive expression in all cells. Use tools like SoupX or DecontX to clean data before DE.
  • Sample size: With few donors per condition, statistical power is low. Many published studies have only 2-3 donors per group, which is inadequate. Aim for at least 5 donors per group for robust pseudobulk DE.
  • Multiple testing burden: Testing tens of thousands of genes with thousands of cells can produce very small p values that are still false positives. Use FDR and effect size filters.
  • Biological relevance: Statistical significance does not equal biological significance. A gene may be highly variable but not functional. Follow up with experiments or external evidence ZBP1 driven PANoptosis in granulosa cells mediates follicular arrest in PCOS integrated transcriptomic evidence and baicalins therapeutic potential.

Frequently Asked Questions

Q1: Can I use the same DE method for finding cluster markers and for comparing conditions across clusters? Yes, but the interpretation differs. Cluster markers are found by comparing one cluster to all others. Condition differences within a cluster require a careful design that accounts for donor grouping. For condition comparisons, pseudobulk is strongly recommended.

Q2: What is the minimum number of cells needed per group for reliable DE? There is no hard rule, but fewer than 10 cells makes statistical tests unreliable. For robust results, aim for at least 50 cells per group for per cell tests and at least 3 donors per condition for pseudobulk methods.

Q3: How do I handle multiple time points or trajectories in DE? For pseudotime trajectories, use methods like tradeSeq or Monocle that model expression as a function of pseudotime. These tests identify genes whose expression changes along the trajectory. For discrete time points, use a time course design with appropriate contrasts.

Q4: Should I perform DE on integrated or non integrated data? Perform DE on non integrated counts or raw counts. Integration methods (e.g., Harmony, scVI) remove biological variation between batches, which can obscure true condition differences. Use integrated data only for clustering and visualization, then extract raw counts from each cluster for DE testing.

References and Further Reading

Related Articles