Differential expression (DESeq2)
Identify differentially expressed genes between two groups using DESeq2, from bulk RNA-seq counts or single-cell counts aggregated into patient-level pseudobulk samples.
Identify differentially expressed genes between two groups using DESeq2, from bulk RNA-seq counts or single-cell counts aggregated into patient-level pseudobulk samples.
Bulk RNA-seq DEA via DESeq2
Description
Analysis summary
Performs differential gene expression analysis between two biological or clinical cohorts in bulk RNA-seq, estimating effect sizes (log2 fold change) and statistical significance controlled for false discovery rate.
Computation
Raw read counts are modeled per gene with a negative binomial GLM (DESeq2): size factors normalize for sequencing depth, and gene-wise dispersions are shrunk toward a consensus trend line so that low-count genes do not generate false positives. The two groups are compared with a Wald test, and p-values are corrected for multiple testing with the Benjamini-Hochberg procedure (FDR); covariates (e.g. batch, age, sex) can be incorporated into the design formula to control confounding. Output per gene: base mean expression, log2 fold change (positive = enriched in the primary group), standard error, Wald statistic, raw and adjusted p-values (q-values), and a categorical directional label.
When to use
Use for bulk RNA-seq experiments with raw integer read counts comparing exactly two conditions. For single-cell RNA-seq use the mode pseudobulk of this analysis and aggregate counts per sample/donor first (pseudobulk mode of this analysis) before running this model.For continuous or pre-normalized intensities (e.g. proteomics log2 abundances), use ttest_dea instead.
Caveats
Requires un-normalized, raw integer counts: TPM/FPKM, library-normalized or log-transformed values violate the negative binomial assumptions. The full, minimally pre-filtered transcriptome must be provided, since DESeq2 relies on the global distribution of genes to compute size factors and the mean-dispersion trend. Supports two-group pairwise contrasts only. Small sample sizes (n < 3 per group) severely limit statistical power and inflate false negative rates.
Example questions
Input columns
Visualizations
volcanoHow to read: Each dot is one gene. Its horizontal position is the log2 fold change — right of centre means higher in the first arm of the contrast, left means higher in the second; its vertical position is the significance of the difference as -log10 adjusted p-value, so higher is more significant. Dotted lines mark the significance cut-offs on both axes. Red dots are genes significantly higher in the first arm, blue dots significantly higher in the second, and grey dots are not significant. The most significant genes are labelled (plus any explicitly highlighted genes), and hovering a dot shows its fold change, base mean, raw p-value and adjusted p-value.
Example analysis 1
Name — DEA: Gender Contrast (TCGA Bladder Cancer)
Analysis parameters
Visualization — volcano

Output table
scRNAseq Pseudobulk DEA via DESeq2
Description
Analysis summary
One analysis mode with three variants that identify genes expressed at different levels in single-cell RNA-seq, by summing each patient's cells into pseudo-bulk samples so that cells from one patient are not treated as independent replicates. The variants compare two patient groups across all cell types (bulk-like), two patient groups within one chosen cell type, or one cell type against the rest within the same patients.
Computation
All three variants share one computation: raw counts are summed per patient and per arm into pseudo-bulk samples, and DESeq2 runs on them as in the bulk mode, with the patient as the replicate. They differ only in how the arms are formed — all cell types pooled per patient (variant 1), one cell type only (variant 2), or the cell type and the rest as arms with patient as a blocking covariate (variant 3). Log2 fold changes are shrunken (apeglm) in every variant; the unshrunken estimate is kept for reference, and shrinkage changes fold changes but not p-values or significance. The descriptive statistics report the cell-type composition of the pseudo-bulk samples and, in variant 3, which patients were dropped for lacking both arms; the summary always states which shrinkage was applied.
When to use
Variant 1 for a bulk-like whole-sample contrast between two groups (e.g. responders vs non-responders); variant 2 for a cell-type-intrinsic contrast within a chosen compartment (e.g. malignant cells only); variant 3 for cell-identity questions — which genes mark a cell type — within patients (e.g. malignant vs rest), optionally restricted to a patient subgroup. Use the bulk mode for bulk RNA-seq.
Caveats
Variant 1 confounds expression with composition: because all cell types are summed, a difference can reflect a shift in cell-type proportions rather than gene regulation, so it is bulk-like and the hardest to interpret biologically. Variant 2 removes that composition effect but needs enough cells of the chosen type per patient. Variant 3 is a within-patient design: patients lacking either arm are dropped, which can shrink the cohort substantially, and the result is not comparable to a between-patient contrast; its 'rest' arm pools all other cell types, so its composition varies by patient. Patients below the minimum-cell threshold are dropped in every variant, which can shift the cohort. Exactly two arms are supported, and no per-cell inference is possible.
Example questions
Input columns
Visualizations
volcanoHow to read: Each dot is one gene. Its horizontal position is the log2 fold change — right of centre means higher in the first arm of the contrast, left means higher in the second; its vertical position is the significance of the difference as -log10 adjusted p-value, so higher is more significant. Dotted lines mark the significance cut-offs on both axes. Red dots are genes significantly higher in the first arm, blue dots significantly higher in the second, and grey dots are not significant. The most significant genes are labelled (plus any explicitly highlighted genes), and hovering a dot shows its fold change, base mean, raw p-value and adjusted p-value. The two arms are either two patient groups or a cell type and the rest, and the axis label notes that fold changes are apeglm-shrunken.
Example analysis 1
Name — Pseudobulk DEA (NSCLC, 5 oldest M vs 5 oldest F): Gender
Analysis parameters
Visualization — volcano

Output table
Last updated
Was this helpful?