Figures
Abstract
Differential gene expression (DGE) analysis is foundational to transcriptomic research, yet tool selection can substantially influence results. This study compares two widely used DGE tools, edgeR and DESeq2, using real and semi-simulated bulk RNA-Seq data sets, mostly from human patients, spanning viral infection, bacterial infection, and fibrotic conditions. We evaluated tool performance across four dimensions: (1) sensitivity to sample size and robustness to outliers; (2) classification performance of uniquely identified gene sets within the discovery dataset; (3) pathway-level concordance of significant DEG sets; and (4) generalizability of tool-specific gene sets across independent studies. First, using Bonferroni-adjusted p-value < 0.05 and absolute log2 fold change greater than 1 (i.e., ) as significance criteria, repeated subsampling showed that DESeq2 generally identified more Differentially Expressed Genes (DEGs) than edgeR at smaller sample sizes, while the tools became more concordant as sample size increased. Both tools showed similar responses to simulated outliers, with Jaccard similarity decreasing as more swapped samples were introduced. Second, classification models trained on tool-specific genes showed that edgeR achieved higher F1 scores in 9 of 13 contrasts and more frequently reached perfect or near-perfect precision. Third, Hallmark and KEGG pathway enrichment analyses showed that many contrasts retained substantial pathway-level agreement between tools, although selected contrasts still showed tool-specific enriched pathways. Finally, in cross-study validation using four independent SARS-CoV-2 datasets, edgeR-specific genes yielded higher AUC, precision, and recall in held-out datasets, with some test cases achieving perfect separation. Overall, our findings show that DESeq2 may identify more DEGs under stringent thresholds, whereas edgeR often yields more conservative, predictive, and generalizable gene sets. These findings emphasize that DGE tool choice should be guided not only by DEG yield, but also by the downstream reproducibility, predictive value, and biological interpretability of the resulting gene sets.
Citation: Rezapour M (2026) Tool choice matters: Evaluating edgeR vs. DESeq2 for sensitivity, robustness, and cross-study performance. PLoS One 21(7): e0353788. https://doi.org/10.1371/journal.pone.0353788
Editor: Katherine James, Newcastle University, UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND
Received: June 23, 2025; Accepted: June 29, 2026; Published: July 13, 2026
Copyright: © 2026 Mostafa Rezapour. This is an open access article distributed under the terms of the Creative Commons Attribution License, which permits unrestricted use, distribution, and reproduction in any medium, provided the original author and source are credited.
Data Availability: All datasets used in this study are publicly available from the NCBI Gene Expression Omnibus (GEO) or PubMed Central (PMC): RSVB (GSE196134) [26], Mpox (GSE234118) [27], EBOV (GSE115785) [28], bacterial pneumonia and influenza (GSE161731) [29], idiopathic pulmonary fibrosis (GSE134692) [30], and SARS-CoV-2 datasets including GSE152418 [32], GSE161731 [33], GSE171110 [34], and PMC8202013 [31].
Funding: The author(s) received no specific funding for this work.
Competing interests: The authors have declared that no competing interests exist.
Introduction
Differential gene expression (DGE) analysis is a foundational method in transcriptomics and systems biology, supporting discoveries ranging from disease biomarkers to therapeutic targets [1–11]. The introduction of high-throughput RNA sequencing (RNA-seq) has enabled more accurate and comprehensive gene expression profiling than microarrays [2,12,13]. Among RNA-seq methods, bulk RNA-seq remains a widely adopted approach for profiling population-level expression due to its cost-efficiency and broad applicability [1].
edgeR [14] and DESeq2 [15] are among the most widely used tools for bulk RNA-seq differential expression analysis. Both rely on the negative binomial distribution to model count data, but they differ in key methodological components: normalization, dispersion estimation, and statistical inference. Specifically, edgeR employs trimmed mean of M-values (TMM) normalization [16], tagwise dispersion estimation using empirical Bayes methods [17], and quasi-likelihood F-tests for statistical testing [18]. In contrast, DESeq2 uses median-of-ratios normalization, applies empirical Bayes shrinkage to both dispersion and log2 fold-change estimates, and conducts hypothesis testing using Wald tests [15]. DESeq [19], the predecessor to DESeq2, was developed to provide conservative inference by stabilizing dispersion estimates through information sharing across genes.
Several studies have conducted systematic evaluations of RNA-seq DGE tools, including edgeR, DESeq, and DESeq2. Seyednasrollah et al. [20] compared eight DGE pipelines using mouse and human RNA-seq datasets with different replicate numbers. They showed that tool choice can substantially affect DEG yield, consistency across subsampled datasets, estimated false discoveries in mock comparisons, and overall agreement among methods. Their work also emphasized that false-discovery behavior depends on sample heterogeneity and that results from very small replicate numbers should be interpreted cautiously. Zhang et al. [21] compared Cuffdiff2, DESeq, and edgeR across technical and biological replicates, sequencing depth, and balanced versus unbalanced library sizes. They found that biological replication was more influential than sequencing depth for reliable DEG detection and that edgeR recovered more true positives in some settings, but with a higher risk of false positives than DESeq.
More recent studies have extended these concerns to current methods and larger datasets. Stupnikov et al. [22] directly compared DESeq2, edgeR, voom + limma, EBSeq, and NOISeq using breast cancer RNA-seq datasets and fixed count matrices. They evaluated robustness to library-size perturbation, filtering strategy, sample-size reduction, expression level, and downstream gene ontology results. Their results showed that DGE outputs were strongly method-dependent, that robustness patterns became more dataset-dependent when sample size was reduced, and that edgeR was more robust than DESeq2 in their framework. Liu et al. [23] provided a protocol-based comparison of limma, edgeR, and DESeq2 using TCGA cholangiocarcinoma data and showed that standard workflows applied to the same dataset and threshold can produce partly overlapping but non-identical DEG sets.
False-positive behavior has also been examined more directly in recent work. Li et al. [24] evaluated DESeq2, edgeR, limma-voom, NOISeq, dearseq, and the Wilcoxon rank-sum test in large human population-level RNA-seq datasets from GTEx, TCGA, and an immunotherapy study. Using permutation-based negative controls and semi-synthetic datasets, they reported that DESeq2 and edgeR could fail to control actual FDR in some large-sample settings and that some spurious DEGs had large estimated fold changes and biologically plausible immune-related enrichment. In a separate evaluation, Li et al. [25] compared eight R/Bioconductor methods across negative-binomial and log-normal simulation settings, equal and unequal library sizes, and sample sizes of 3, 6, and 12 per group. They showed that small sample size produced unstable FDR control and limited method overlap, while performance generally improved as sample size increased; they also found that method ranking depended on the assumed distribution of the count data.
Cui et al. [26] further addressed type I error control in the development of super-delta2, a method designed for multi-group RNA-seq comparisons. In simulations comparing super-delta2 with limma/voom, edgeR, and DESeq2, they reported that super-delta2 was the only method that controlled type I error at the nominal level across all simulation settings. Their real-data analysis also showed that DESeq2 and edgeR identified more DEGs than super-delta2, a pattern they interpreted as potentially reflecting weaker error control. In addition, they showed that edgeR and DESeq2 were more sensitive to filtering choices and that an apparent DESeq2-specific signal could be driven by outliers. Although their work focused on multi-group comparisons, it reinforces the broader concern that DEG yield, model assumptions, outliers, and filtering choices can strongly influence DGE results.
Despite these important contributions, several gaps remain. First, many comparisons rely heavily on simulated or on a small number of benchmark datasets, which may not reflect the diversity of biological signal, tissue source, organism, and study design encountered in applied transcriptomic studies. Second, prior work has focused mainly on statistical operating characteristics such as FDR control, type I error, power, DEG count, or concordance between methods. These metrics are essential, but they do not directly address whether tool-specific genes capture biologically useful signal. Third, most evaluations stop at the DEG list itself and do not test whether genes uniquely identified by one tool can separate biological groups within the discovery dataset, whether they preserve downstream pathway interpretation, or whether they generalize to independent datasets. Fourth, several earlier comparisons evaluated older versions of DESeq or earlier implementations of edgeR and DESeq2, whereas current workflows may behave differently because of updated dispersion estimation, filtering, shrinkage, and testing procedures.
The present study was designed to complement these prior benchmarks by shifting the focus from DEG detection alone to the downstream biological utility and reproducibility of tool-specific gene sets. We compare current implementations of edgeR (v4.4.2) and DESeq2 (v1.46.0) using a diverse collection of real-world, biologically annotated bulk RNA-seq datasets spanning viral infection, bacterial infection, and fibrotic lung disease in human and nonhuman primate systems. Our evaluation framework spans four levels: (1) sensitivity to sample size and robustness to controlled outlier perturbation; (2) classification performance of genes uniquely identified by each tool within the discovery dataset; (3) pathway-level concordance of enriched biological processes; and (4) cross-study generalizability of reproducible tool-specific gene sets across independent datasets. By integrating statistical comparison with classification, pathway enrichment, and external validation, this study asks not only which tool identifies more DEGs, but which tool identifies gene sets that are more stable, biologically interpretable, and transferable across studies.
Materials and methods
Datasets overview and preprocessing
This study was designed to systematically compare two widely used RNA-seq differential expression tools, edgeR and DESeq2, using a diverse collection of publicly available bulk RNA-seq datasets. The selected datasets span viral infection, bacterial infection, and chronic fibrotic disease contexts, including SARS-CoV-2, RSVB, EBOV, Mpox, bacterial pneumonia, influenza, and idiopathic pulmonary fibrosis (IPF). These datasets also include both human and nonhuman primate samples, which enabled evaluation across different biological systems and experimental designs. Each dataset included clearly defined control and treated, infected, stimulated, or diseased sample groups.
Datasets were organized according to the main objective of each analysis stage. First, the RSVB dataset (GSE196134) was used for sample-size sensitivity and outlier-perturbation analyses because it provided a balanced design with 45 unstimulated control samples and 45 RSVB-stimulated samples. Second, five datasets were used to assess the classification performance of tool-specific significant genes within the discovery dataset: Mpox (GSE234118), EBOV (GSE115785), bacterial pneumonia and influenza (GSE161731), IPF (GSE231693), and SARS-CoV-2 (PMC8202013). Third, all biological contrasts used for within-dataset DEG comparison were also used for pathway-level concordance analysis. Finally, four independent SARS-CoV-2 datasets, PMC8202013, GSE152418, GSE161731, and GSE171110, were used for cross-study validation of tool-specific gene sets.
For each dataset, the available gene-count matrix was downloaded from the corresponding public repository and matched with the accompanying metadata. Metadata fields describing infection status, stimulation condition, disease status, or time point were used to assign samples to control and treated groups. Samples with ambiguous or inconsistent metadata annotations were excluded. Analyses were restricted to protein-coding genes, and duplicated or unsupported gene symbols were removed during formatting. After preprocessing, each matrix was organized with genes as rows and samples as columns. No additional normalization was applied before differential expression analysis, because normalization was performed within the tool-specific edgeR and DESeq2 workflows. Table 1 summarizes the datasets used in this study, their sample sources, control and treated groups, and their role in the comparative analysis.
RSV dataset preprocessing (GSE196134).
For the RSV sample-size and outlier-perturbation analyses, we used publicly available RNA-seq data from Gene Expression Omnibus (GEO) accession GSE196134 [27]. This dataset was generated from cord blood mononuclear cells (CBMCs) collected from preterm infants, with gestational ages ranging from 30.4 to 34.1 weeks, and term infants, with gestational ages ranging from 37 to 40 weeks. CBMCs from each infant were cultured under unstimulated control and RSVB-stimulated conditions. RSVB stimulation was performed at a multiplicity of infection (MOI) of 1 for 24 hours, resulting in a balanced comparison between unstimulated and RSVB-stimulated samples.
In the original study, CBMCs were stored after stimulation, and total RNA was extracted using the RNeasy Mini Kit. RNA quantity and quality were assessed using the Qubit RNA high-sensitivity assay, and samples with sufficient RNA yield were processed for library preparation. RNA-seq libraries were prepared using the Illumina TruSeq Stranded mRNA Library Prep kit and sequenced on an Illumina NovaSeq 6000 platform with 2 × 150 bp paired-end reads. Raw FASTQ files were quality checked using FastQC, reads were aligned to the human transcriptome reference GRCh37v70 using Bowtie2, and gene counts were generated using HTSeq, as described in the original study [27]. For the present analysis, we used 45 unstimulated samples as the control group and 45 RSVB-stimulated samples as the treated group.
Mpox dataset preprocessing (GSE234118).
For the Mpox dataset, we used publicly available whole-blood RNA-seq data from rhesus macaques (Macaca mulatta) infected with mpox virus (MPXV; hMPXV/USA/MA001/2022; Lineage B.1, Clade 2b) from GEO accession GSE234118 [28]. In the original study, adult macaques were challenged through intravenous, intradermal, or intrarectal routes with varying doses of MPXV. Whole-blood samples were collected longitudinally before and after infection. Total RNA was extracted from PAXgene blood RNA tubes using the MagMAX RNA Isolation Kit, followed by globin transcript depletion, cDNA synthesis using the Clontech SMART-Seq v4 Ultra Low Input RNA Kit, library preparation using the Nextera XT DNA Library Kit, and sequencing with 100 bp paired-end reads on an Illumina NovaSeq 6000 platform. Reads were aligned to a composite rhesus macaque and MPXV reference genome using STAR, and transcript-level counts were generated using htseq-count, as described in the original study [28].
For the present analysis, we used the processed count matrix derived from GEO and organized samples according to the time-point labels provided in the metadata. Baseline samples labeled wk-1 were used as the uninfected control group. Post-infection samples were mapped as follows: wk0d3 was assigned to Mpox DPI 3, wk1d7 to Mpox DPI 7, wk1d10 to Mpox DPI 10, and wk2 to Mpox DPI 14. These time points were selected because they represent the acute phase of MPXV infection, during which viral load and lesion development were reported to peak around days 7–10 in the original study.
Ebola virus dataset preprocessing (GSE115785).
For the EBOV dataset, we used publicly available whole-blood RNA-seq data from rhesus macaques (Macaca mulatta) infected with Ebola virus from GEO accession GSE115785 [29]. In the original study, healthy rhesus macaques were challenged intramuscularly with 1000 PFU of the EBOV Makona C05 isolate. Whole-blood samples were collected before infection and at defined post-infection time points, including days 5 and 7 post infection, as well as at necropsy from terminal animals. RNA was extracted from whole blood, and RNA quality was assessed using the Agilent Bioanalyzer 2100. Ribosomal RNA was depleted using the Illumina TruSeq Stranded RNA Ribo-Zero Gold kit, and sequencing libraries were generated from 500 ng of input RNA. Libraries were sequenced on an Illumina NextSeq 500 platform using paired-end 50 bp reads, with adapter trimming and demultiplexing performed using the Illumina BaseSpace platform, as described in the original study [29].
For the present analysis, we used the processed gene-count matrix derived from GEO and organized samples according to the time-point labels provided in the metadata. Samples collected before infection were used as the baseline control group and labeled EBOV DPI 0. Post-infection samples were grouped as EBOV DPI 5, EBOV DPI 7, and EBOV NEC, where EBOV NEC denotes samples collected at necropsy from terminal animals. These groups were selected to represent baseline, acute infection, later infection, and terminal disease states.
Bacterial pneumonia and influenza dataset preprocessing (GSE161731).
For the bacterial pneumonia and influenza comparisons, we used publicly available peripheral whole-blood RNA-seq data from GEO accession GSE161731 [30]. This dataset was generated to characterize peripheral blood transcriptional responses across subjects with acute respiratory infections, including influenza, bacterial pneumonia, and healthy controls. In the original study, total RNA was extracted from whole blood using the PAXgene Blood miRNA Kit, libraries were prepared using the NuGEN Universal mRNA-seq kit with AnyDeplete Globin, and sequencing was performed on an Illumina NovaSeq 6000 platform [30]. For the present analysis, we used the processed count matrix from GEO and focused on three groups: bacterial pneumonia, influenza, and healthy controls. Healthy controls were used as the baseline group, while bacterial pneumonia and influenza samples were analyzed as separate treated groups.
Fibrotic interstitial lung disease dataset preprocessing (GSE231693).
For the IPF comparison, we used publicly available bulk RNA-seq data from GEO accession GSE231693 [31]. This dataset was generated from explanted lung tissue samples collected from patients with idiopathic pulmonary fibrosis, systemic sclerosis-associated interstitial lung disease, and healthy controls. In the original study, total RNA was isolated from lung tissue samples and used to prepare sequencing libraries with the Illumina TruSeq RNA Sample Prep Kit v2. Libraries were sequenced on an Illumina HiSeq 4000 platform, as described by Jia et al. [31]. For the present study, we focused on the IPF and healthy control groups. IPF samples were analyzed as the diseased group, and healthy lung samples were used as the baseline group. This comparison was included to evaluate whether tool-specific DEG behavior observed in infectious disease datasets also extended to a chronic fibrotic lung disease context.
SARS-CoV-2 dataset preprocessing.
For cross-study validation, we used four independent SARS-CoV-2 bulk RNA-seq datasets: GSE152418, PMC8202013, GSE161731, and GSE171110. These datasets were selected because each included clearly defined SARS-CoV-2-positive and healthy control groups, which enabled consistent differential expression analysis and leave-one-dataset-out validation across independent cohorts.
For GSE152418, we used PBMC RNA-seq data from Arunachalam et al. [32]. RNA-seq libraries were generated from cryopreserved PBMCs and sequenced on an Illumina NovaSeq 6000 platform, as described in the original study. For our analysis, the processed count matrix was formatted with gene symbols as row identifiers and samples as columns, and sample labels were standardized as Control and SARS-CoV-2 groups.
For PMC8202013, we used whole-blood RNA-seq data from Bibert et al. [33]. COVID-19 patients represented a range of respiratory failure severities, including patients not requiring oxygen support, patients requiring oxygen without mechanical ventilation, and intubated patients. In the present study, all SARS-CoV-2-positive samples were analyzed together as the treated group, and healthy individuals were used as the control group. RNA sequencing was performed on whole-blood samples using the Illumina HiSeq 4000 platform, as described in the original study. This dataset was also used in the within-dataset classification analysis.
For GSE161731, we used whole-blood RNA-seq data from McClain et al. [34]. Total RNA was extracted from whole blood using the PAXgene Blood miRNA Kit, libraries were prepared using the NuGEN Universal mRNA-seq kit with AnyDeplete Globin, and sequencing was performed on an Illumina NovaSeq 6000 platform. The processed count matrix was formatted with gene symbols as row identifiers, and sample labels were standardized as Control and SARS-CoV-2 groups.
For GSE171110, we used whole-blood RNA-seq data from Lévy et al. [35]. Blood samples for immunological and transcriptomic profiling were collected near hospital admission, with most patients requiring intensive care. Total RNA was purified from whole blood using the Tempus Spin RNA Isolation Kit, RNA quantity was measured using the Quant-iT RiboGreen RNA Assay Kit, and RNA quality was evaluated using a Bioanalyzer. Globin mRNA was depleted using the GLOBINclear Kit, libraries were prepared using the TruSeq Stranded mRNA Kit, and sequencing was performed on an Illumina HiSeq 2500 V4 system. For the present analysis, sample labels were standardized as Control and SARS-CoV-2 groups.
To ensure consistency across the manuscript, dataset names are used without GEO or source accession IDs when the context clearly identifies the dataset being discussed. However, in figures and places where multiple related contrasts are compared, dataset contrasts are reported using the format “accession ID — biological contrast” to improve clarity and avoid ambiguity. For longitudinal infection datasets, contrast labels also include the day post infection (DPI) or necropsy (NEC) time point when applicable. For example, Mpox day 7 is labeled as GSE234118 — Mpox DPI 7.
Tool configuration and execution strategy
To simulate real-world application and usability, we ran both edgeR and DESeq2 using their recommended and widely adopted default pipelines. These reflect the typical usage patterns of practitioners who perform standard RNA-Seq differential expression analysis using default guidance from respective documentation and vignettes. The following summarizes how each major methodological component was implemented in edgeR (v4.4.2) and DESeq2 (v1.46.0):
- Model Framework: In edgeR, a negative binomial GLM is fitted using quasi-likelihood methods. Differential expression (DE) analysis is performed using glmQLFit() followed by glmQLFTest(). In DESeq2, a negative binomial GLM is fitted using DESeq(), and hypothesis testing is conducted using the Wald test.
- Normalization: edgeR performs normalization using the calcNormFactors() function, which implements the Trimmed Mean of M-values (TMM) method. DESeq2 uses the median-of-ratios method implemented in estimateSizeFactors().
- Dispersion Estimation: edgeR estimates common, trended, and tagwise dispersions using estimateDisp(). DESeq2 uses estimateDispersions() to compute gene-wise and fitted dispersions.
- Statistical Test and Output: edgeR applies the GLM quasi-likelihood F-test via glmQLFTest(). In DESeq2, the DESeq() function fits the negative binomial GLM and, under the default setting, performs Wald tests for the model coefficients; likelihood ratio tests are also available as an alternative option. The results() function was then used to extract the requested coefficient estimates, Wald test p-values, adjusted p-values, and log2 fold changes.
Sensitivity to sample size and robustness to outliers
The first phase of our comparative evaluation aimed to assess how edgeR and DESeq2 respond to sample size variation and the presence of outliers, both common challenges in real-world RNA-Seq experiments. To perform this, we selected the RSVB dataset (GSE196134), which contains 90 total samples: 45 control (unstimulated) and 45 RSVB-infected (stimulated). This balanced and large dataset enabled controlled subsampling and simulation of outlier scenarios.
We first applied both tools to the full dataset, contrasting the RSVB-infected group against the control group. Subsequently, we generated three subsampled datasets, each with 20, 10, and 5 samples per group, respectively. Each subsampled dataset was randomly drawn from the original 45 samples per group. This design allowed us to evaluate the sensitivity of each method to reductions in sample size. For each dataset version (full and subsampled), we applied the same analysis pipeline using edgeR and DESeq2. DEGs were defined as those with a Bonferroni-adjusted 0.05 [36] and an absolute log2 fold change
. This stringent threshold was chosen because applying an FDR cutoff resulted in an excessively large number of differentially expressed genes for both tools, which hindered meaningful comparison. Using Bonferroni-adjusted p-values allowed for a more conservative and balanced comparison, which better suited to our goal of evaluating differences between the two methods. To quantify consistency and directional agreement between tools, we introduced the following metric:
Definition: Let A and B be two sets of differentially expressed genes. The ordered pair (A, B) is interpreted as comparing the set A against the reference set B. The Directional Overlap, or , is defined as the proportion of elements in B that are also found in A, given by
which quantifies the extent to which the reference set B is recovered by the comparison set A. Notably, in general due to its asymmetry. For the sample-size analysis, we computed directional overlap between the DEG sets identified by edgeR and DESeq2 within each subsampling replicate. For n = 5, n = 10, and n = 20 samples per group, directional overlap values were summarized as mean ± standard deviation across 20 independent subsampling replicates. For the full dataset (n = 45 samples per group), directional overlap was computed once using the complete dataset.
We also evaluated the tools’ robustness to outliers by introducing controlled sample swaps between the treatment and control groups. Specifically, we generated synthetic outliers by swapping 1–5 samples between groups. For instance, in the 1-swap scenario, one control sample was swapped with one RSVB-infected sample, thus injecting one outlier into each group. This process was repeated for 2–5 swaps. To ensure statistical robustness and mitigate the effect of random variation in swap choices, each swap level (1–5) was independently repeated 20 times. Given the original dataset’s size (45 per group), the proportion of swaps remained appropriate.
To assess changes introduced by these simulated outliers, we computed the Jaccard Index [37] between the original DEG set (from the full, unperturbed dataset) and the DEG set after introducing outliers:
where, A represents the set of significant genes identified after injecting outliers, and B is the original DEG set without outliers. Jaccard similarity provides a symmetric measure of agreement and reflects how much the gene sets overlap before and after contamination with outliers.
Classification performance of uniquely identified gene sets within the discovery dataset
In the second phase of our analysis, we systematically compared edgeR and DESeq2 across multiple datasets to evaluate the concordance and discrepancy in their differential expression results. To evaluate the biological signal of tool-specific genes, we applied this analysis to five representative datasets covering diverse biological conditions: Mpox (GSE234118), EBOV (GSE115785), Bacterial and Influenza infection (GSE161731), Idiopathic Pulmonary Fibrosis (IPF, GSE231693), and SARS-CoV-2 (PMC8202013).
For each dataset, we quantified the number of significant genes identified by each tool using a stringent threshold: Bonferroni-adjusted and
. We then evaluated concordance and divergence between edgeR and DESeq2 by reporting the number of genes uniquely identified by each tool, the number of shared significant genes, and the direction-specific Jaccard indices (Equation 2) for upregulated and downregulated gene sets, where A and B represent the respective sets from edgeR and DESeq2. To further examine agreement between tools, we calculated Pearson [38] and Spearman [39] correlation coefficients for the log2 fold changes and Bonferroni-adjusted p-values among the common significant genes.
Finally, to assess how effective each tool is in identifying biologically meaningful significant genes, we focused specifically on the genes uniquely identified by each method. In the absence of an external ground truth for differentially expressed genes, one way to evaluate the “trueness” of these genes is to assess their ability to differentiate between biological groups, in this case, control and treated samples.
For each dataset, we extracted the genes uniquely identified as significant by each tool. Raw count values for these genes were log-transformed using without any normalization to preserve the original scale and avoid introducing method-dependent biases. Principal Component Analysis (PCA) [40] was then applied to reduce dimensionality while retaining key variance components. We retained only the first two principal components (PC1 and PC2), which capture the dominant structure in the expression space of the selected genes and help mitigate overfitting while maintaining interpretability.
PC1 and PC2 were used as predictors in a logistic regression classifier [41] trained to distinguish control from treated samples. Standard classification metrics, accuracy, precision, recall, and F1 score [42], were computed to evaluate how well the tool-specific significant genes separated the biological conditions. A higher classification performance suggests that the genes uniquely identified by the corresponding tool are more likely to reflect meaningful biological signal.
To further benchmark and summarize tool performance across all datasets and conditions, we adopted the Dolan-More performance profiling method [43]. This technique evaluates each method’s relative performance consistency across datasets using the F1 score as the basis for comparison.
Let denote the F1 score of method a on dataset i, and let
be the highest F1 score obtained on dataset i across methods. The performance ratio for each method is defined as:
with the convention that if
. A smaller
indicates better performance, with
signifying that the method achieved the best score on that dataset. The Dolan-More profile for method a is then the cumulative distribution function:
where n is the total number of datasets. This function quantifies the fraction of datasets where a given method’s performance is within a factor of the best-performing method. A Dolan-More curve that rises quickly and reaches
earlier indicates a more consistently high-performing method. In our context, this analysis provides a global, dataset-agnostic perspective that complements pairwise comparisons and highlights each tool’s overall reliability and robustness in identifying biologically meaningful gene sets.
Pathway enrichment concordance analysis
To determine whether gene-level differences between edgeR and DESeq2 translated into differences in downstream biological interpretation, we performed a pathway enrichment concordance analysis using the significant DEG sets identified by each tool. This analysis was added because differences in the number or identity of significant DEGs may not necessarily lead to divergent pathway-level conclusions.
For each dataset contrast and each tool, we used the significant DEG set defined by the same threshold applied in the corresponding DEG analysis. We then performed pathway over-representation analysis using two curated pathway collections: the MSigDB Hallmark gene sets, which summarize coherent biological processes with reduced redundancy [44,45], and KEGG pathways, which provide manually curated pathway maps for biological systems and molecular interactions [46,47].
For each pathway collection, enrichment was tested using the hypergeometric test. The background was defined as the union of genes represented in the corresponding pathway collection. Pathway-level p-values were adjusted using the Benjamini-Hochberg procedure, and pathways with FDR < 0.05 were considered significantly enriched. For each dataset contrast, enriched pathways were classified as edgeR-only, shared by both tools, or DESeq2-only.
To quantify pathway-level agreement between tools, we computed the Jaccard similarity between the enriched pathway sets from edgeR and DESeq2:
where and
denote the sets of significantly enriched pathways derived from edgeR and DESeq2 DEG sets, respectively. Higher values indicate greater pathway-level concordance between tools.
Generalizability of tool-specific gene sets across independent studies
As the final stage of our analysis, we evaluated the generalizability of the significant genes uniquely identified by each tool. While the previous classification-based analysis assessed how well tool-specific genes separated samples within the same dataset in which they were discovered, this section extends the evaluation to a more rigorous cross-dataset framework. Specifically, we asked: to what extent are the unique genes identified by each method in some datasets transferable and predictive in unseen datasets? This helps assess whether the tool-specific genes capture biologically consistent signals that generalize across studies.
We focused this evaluation on four independent bulk RNA-Seq datasets of SARS-CoV-2 infection: GSE152418, GSE161731, GSE171110, and PMC8202013. To ensure consistent gene coverage across datasets, we first aligned all datasets to a common gene set by restricting our analysis to genes shared across all four datasets. For each tool (edgeR and DESeq2), we identified significant genes in each dataset using an FDR threshold of 0.05 and an absolute log2 fold change . Unlike the previous section, where we applied the more conservative Bonferroni correction due to reliance on a single dataset, we used the FDR approach here because this analysis required reproducibility across multiple independent datasets. This cross-study design helps reduce the influence of dataset-specific findings and provides a more appropriate framework for evaluating transferable gene signatures.
We implemented a leave-one-dataset-out cross-study validation strategy using the four SARS-CoV-2 datasets. In each fold, three datasets were used as training datasets and the remaining dataset was used as the held-out test dataset. This procedure was repeated four times, so that each dataset served once as the held-out test dataset. The four folds were: (1) GSE152418 held out, with GSE161731, GSE171110, and PMC8202013 used for training; (2) GSE161731 held out, with GSE152418, GSE171110, and PMC8202013 used for training; (3) GSE171110 held out, with GSE152418, GSE161731, and PMC8202013 used for training; and (4) PMC8202013 held out, with GSE152418, GSE161731, and GSE171110 used for training.
Within each fold, significant genes were first identified separately for each tool in each of the three training datasets. Let ,
, and
denote the significant genes identified by edgeR in the three training datasets, and let
,
, and
denote the corresponding significant genes identified by DESeq2. We first defined the reproducible training gene set for each tool as the intersection of significant genes across the three training datasets:
This intersection represented the genes reproducibly identified by each tool across independent studies. After defining these reproducible training gene sets, we removed genes shared between edgeR and DESeq2, because the purpose of this analysis was to evaluate tool-specific signals rather than genes identified by both methods. Thus, the edgeR-specific and DESeq2-specific training signatures were defined as:
These tool-specific unique gene sets were then evaluated in the held-out dataset that was not used during gene selection. This design separates gene discovery from testing and evaluates whether genes uniquely and reproducibly identified by each tool in three independent studies can classify samples in an unseen fourth study.
To evaluate the predictive power of these tool-specific unique gene sets, we extracted raw expression values (log-transformed using , without normalization) for the unique genes from the test dataset. As before, we performed PCA and retained the first two principal components (PC1 and PC2), which capture the dominant variation within each gene set. These components were used to classify control versus SARS-CoV-2–positive samples via a logistic regression model. Classification performance was quantified using metrics including area under the ROC curve (AUC) [48], precision, and recall.
Note that this approach differs from the within-dataset classification described in the previous subsection. In that approach, genes were selected and evaluated on the same dataset, potentially capturing dataset-specific variance or artifacts. In contrast, the current design separates gene discovery (training) and evaluation (testing) across distinct datasets, which provides a more stringent test of biological generalizability and reproducibility. This mirrors standard machine learning principles by assessing how well tool-specific discoveries made during training generalize to unseen, external data.
Results
Sensitivity to sample size and robustness to outliers
Fig 1 panels (a–h) summarize the DEG discovery performance of edgeR and DESeq2 as sample size increases from 5 to 45 samples per group using the RSVB dataset. Panels (a–d) show results for edgeR, and panels (e–h) show results for DESeq2. For the reduced sample-size settings (n = 5, n = 10, and n = 20 per group), the displayed bar plots show representative subsampled datasets, while the directional overlap analysis in panel (i) summarizes 20 independent random subsampling replicates. In the representative subsamples shown, DESeq2 identified more DEGs than edgeR at n = 5 (484 versus 148), n = 10 (985 versus 644), and n = 20 (1,640 versus 1,554). In the full dataset (n = 45 per group), edgeR identified 2,009 DEGs and DESeq2 identified 1,963 DEGs. Thus, the difference between tools was most pronounced at smaller sample sizes and decreased as sample size increased.
Panels (a–d) show DEG counts and top significant genes for edgeR across 5, 10, 20, and 45 samples per group. Panels (e–h) show the same for DESeq2. For reduced sample sizes (n = 5, n = 10, and n = 20 per group), panels (a–c) and (e–g) show representative subsampled datasets, while panel (i) summarizes directional overlap across 20 independent random subsampling replicates at each reduced sample size. Panel (i) shows mean ± standard deviation directional overlap between DEG sets identified by the two tools; the full dataset (n = 45 per group) was analyzed once. Panel (j) shows DEG set stability under sample swapping using Jaccard similarity, with 20 independent replicates for each swap level from 1 to 5.
Panel (i) quantifies directional overlap (DO) between DEGs identified by the two tools at each sample size. For n = 5, n = 10, and n = 20 per group, DO values were computed separately for each of the 20 independent subsampling replicates and are reported as mean ± standard deviation. At n = 5, , indicating that edgeR recovered a smaller fraction of DESeq2’s DEG set at the smallest sample size, while
, indicating that DESeq2 recovered all edgeR DEGs across replicates. At n = 10, the corresponding values were
and
, and at n = 20, they were
and
. In the full dataset (n = 45 per group), directional overlap was nearly symmetric, with
and
. These replicated subsampling results confirm that agreement between tools is lowest at small sample size and increases as sample size grows.
Panel (j) evaluates the tools’ robustness to sample contamination by computing the Jaccard similarity between DEG sets derived from the original full dataset and those obtained after introducing 1–5 randomly swapped sample pairs between the control and RSVB groups. Each swap level was repeated 20 independent times. Both tools showed a monotonic decline in Jaccard similarity as the number of swapped samples increased, indicating reduced DEG-set stability with increasing contamination. Across swap levels, edgeR and DESeq2 showed broadly similar behavior, with DESeq2 showing slightly higher median Jaccard similarity at several swap levels. These results indicate that both tools are sensitive to increasing sample-label perturbation, while the magnitude of the difference between tools under this perturbation is modest.
Classification performance of uniquely identified gene sets within the discovery dataset
Fig 2 summarizes the comparison of edgeR and DESeq2 across 13 biological contrasts spanning viral, bacterial, and fibrotic conditions. Each panel quantifies different aspects of agreement and divergence in DEG calls between the two tools. Panel (a) displays the number of genes uniquely identified as significantly upregulated or downregulated by each tool, log2-transformed for scale. Across most datasets, DESeq2 identified a substantially larger number of unique upregulated genes, with pronounced differences observed in GSE115785 — EBOV DPI 7 and GSE115785 — EBOV NEC (e.g., 908 and 1,439 uniquely upregulated genes, respectively, compared to 107 and 37 for edgeR). The pattern was even more marked for downregulated genes: in GSE234118 — Mpox DPI 3 and GSE234118 — Mpox DPI 7, DESeq2 identified 56 and 253 uniquely downregulated genes respectively, while edgeR identified only 1 and 5. However, for EBOV contrasts (DPI 7 and NEC), edgeR identified far more uniquely downregulated genes (667 and 762) compared to DESeq2 (28 and 12), suggesting some context-specific reversal in sensitivity.
Panel (a) shows the log2-scaled number of uniquely identified upregulated and downregulated genes by each tool across 13 contrasts spanning viral, bacterial, and fibrotic conditions. Panel (b) displays the Jaccard index for upregulated and downregulated gene sets, indicating overlap between tools. Panel (c) shows Pearson and Spearman correlation coefficients computed for Bonferroni-adjusted p-values among common significant genes. Lines connecting points are included only as visual guides to aid comparison across contrasts and do not represent a continuous trend, interpolation, or fitted model. Dataset labels are shown as accession ID followed by biological contrast; infection timepoints are shown as DPI or NEC where applicable. The two influenza contrasts are labeled separately as PMC8202013 — Influenza and GSE161731 — Influenza.
Panel (b) illustrates the Jaccard index between upregulated and downregulated gene sets from both tools across all datasets. The Jaccard index for upregulated genes was generally high (often exceeding 0.8), reflecting strong overlap between the two tools for the most transcriptionally active genes. However, downregulated gene sets showed much weaker agreement, with Jaccard indices ranging from 0.10 to 0.87. This discrepancy suggests that downregulated genes are less consistently detected across tools, likely due to lower signal strength or tool-specific modeling differences in shrinkage and dispersion estimation.
Panel (c) shows correlation coefficients (Pearson and Spearman) for Bonferroni-adjusted p-values among the common significant genes between tools. While Spearman correlations were consistently high (typically >0.75), indicating agreement in rank ordering, Pearson correlations were much lower, often below 0.4, and in one case (EBOV-DPI 3) dropped as low as 0.027. This indicates a non-linear relationship in adjusted significance levels despite overall agreement in gene ranking, and reinforces that tool-specific modeling may affect statistical inference even when fold-change estimates are aligned.
Fig 3 evaluates the biological relevance of tool-specific significant genes identified by edgeR and DESeq2 across 13 datasets via classification. Classification performance was assessed using precision, recall, and F1 score, shown respectively in panels (a), (b), and (c). Panel (a) shows that both tools achieved consistently high precision across datasets, often exceeding 0.9. edgeR outperformed DESeq2 in 7 of the 13 contrasts, achieving perfect or near-perfect precision (1.000 or >0.98) in GSE234118 — Mpox DPI 7, GSE234118 — Mpox DPI 10, GSE234118 — Mpox DPI 14, and all GSE115785 — EBOV contrasts. In comparison, DESeq2 had higher precision in GSE234118 — Mpox DPI 3, GSE231693 — IPF, and GSE161731 — Influenza. Both tools performed comparably well in PMC8202013 — SARS-CoV-2, GSE161731 — Bacterial, and the influenza contrasts.
Each gene set was evaluated using a logistic regression classifier trained on PC1 and PC2 from log-transformed expression values. Panel (a) shows precision, (b) shows recall, and (c) shows F1 score for each dataset. Higher values indicate greater biological separability of control versus treated samples. Panel (d) shows the Dolan-More profile of both tools based on F1 scores, summarizing overall method robustness across all datasets.
Panel (b) presents recall values, showing that edgeR exhibited greater consistency across contrasts, with perfect recall (1.000) in 7 contrasts, particularly in GSE115785 — EBOV and inflammatory disease comparisons. DESeq2 showed lower recall in GSE234118 — Mpox DPI 7 (0.722) and PMC8202013 — SARS-CoV-2 (0.903), though it matched edgeR in several other contrasts. Panel (c) summarizes classification performance via F1 score, capturing the trade-off between precision and recall. edgeR outperformed DESeq2 in 9 out of 13 contrasts, achieving high F1 scores in GSE234118 — Mpox DPI 7 (0.971), GSE115785 — EBOV DPI 3 (0.800), and GSE231693 — IPF (0.976). DESeq2, while yielding generally strong results, showed more variability with notably lower F1 scores in GSE234118 — Mpox DPI 7 (0.788) and EBOV DPI 3 (0.870). Overall, edgeR provided more robust gene sets for classifying biological conditions.
Panel (d) shows the Dolan-More performance profile for both tools, providing a global benchmark of method consistency across all datasets. This method quantifies, for each tool, the fraction of datasets where its F1 score is within a factor of the best-performing method. edgeR achieved the highest F1 score in 10 of 13 datasets (
), with an average performance ratio of 1.02. In contrast, DESeq2 was optimal in 6 datasets (
), with a slightly higher average ratio of 1.05. The Dolan-More curves illustrate that edgeR reaches
faster, indicating greater consistency and reliability across a range of biological contrasts.
Pathway-level concordance of significant DEG sets
We next evaluated whether differences in significant DEG sets between edgeR and DESeq2 led to differences in downstream pathway enrichment results. For each dataset contrast, significant DEGs from each tool were analyzed using Hallmark and KEGG pathway collections. Enriched pathways were classified as edgeR-only, shared by both tools, or DESeq2-only, and pathway-level Jaccard similarity was used to quantify agreement between tools.
Fig 4 summarizes enriched pathway counts across all evaluated contrasts. Hallmark enrichment results showed substantial pathway-level agreement in several contrasts, including cases where most enriched pathways were shared between edgeR and DESeq2. However, selected contrasts showed lower Jaccard similarity and a larger number of tool-specific enriched pathways. KEGG enrichment showed a similar pattern: several contrasts produced highly concordant pathway-level results, while others retained clear edgeR-only or DESeq2-only pathway enrichment. These results indicate that pathway-level conclusions can remain concordant even when DEG counts differ, but downstream pathway interpretation can still be tool-dependent in some contrasts.
Panel (a) shows Hallmark pathway enrichment results, and panel (b) shows KEGG pathway enrichment results. For each dataset contrast, enriched pathways were classified as edgeR-only, shared by both tools, or DESeq2-only using FDR < 0.05. The value above each bar indicates the Jaccard similarity between the enriched pathway sets from the two tools. Higher Jaccard values indicate stronger pathway-level concordance.
To better visualize the contrasts with the largest pathway-level differences between tools, we selected representative comparisons with the strongest divergence in enriched pathway composition (Fig 5). This analysis highlights pathways that were uniquely enriched by edgeR, shared by both tools, or uniquely enriched by DESeq2. For both Hallmark and KEGG collections, the selected contrasts showed a mixture of shared and tool-specific pathway signals. Shared pathways often captured broad biological programs, whereas tool-specific pathways reflected differences in the significant genes prioritized by each method.
Panel (a) shows selected Hallmark contrasts, and panel (b) shows selected KEGG contrasts with the largest pathway-level differences between the tools. Bubble color indicates whether an enriched pathway was identified only by edgeR, shared by both tools, or identified only by DESeq2. Bubble size represents enrichment strength, quantified as .
Generalizability of tool-specific gene sets across independent studies
We next evaluated whether tool-specific significant genes discovered in a subset of SARS-CoV-2 datasets could generalize to an unseen independent dataset. This analysis used four independent bulk RNA-seq datasets of SARS-CoV-2 infection and followed a leave-one-dataset-out validation design. In each fold, three datasets were used to identify reproducible tool-specific training signatures, and the remaining dataset was held out for validation. The procedure was repeated four times, so that GSE152418, GSE161731, GSE171110, and PMC8202013 each served once as the held-out test dataset.
Fig 6 summarizes the training gene-selection procedure used in each fold. In panel (a), reproducible training genes were defined as genes that were significant in all three training datasets for a given tool using FDR < 0.05 and . When GSE152418 was held out, edgeR and DESeq2 identified 459 and 425 reproducible training genes, respectively. When GSE161731 was held out, the corresponding counts were 462 and 461; when GSE171110 was held out, they were 319 and 281; and when PMC8202013 was held out, they were 376 and 328.
Panel (a) shows the number of reproducible training genes identified by edgeR and DESeq2 in each fold. A gene was considered reproducible for a given tool if it was significant in all three training datasets using FDR < 0.05 and . Panels (b–e) show the decomposition of these reproducible training genes into edgeR-unique genes, genes shared by both tools, and DESeq2-unique genes for each held-out dataset. Unique gene counts are shown outside the Venn diagrams next to the corresponding tool, while shared gene counts are shown in the overlap. These tool-specific unique gene sets were subsequently evaluated in the corresponding held-out dataset.
Panels (b–e) show how these reproducible training genes were divided into genes unique to edgeR, genes shared by both tools, and genes unique to DESeq2. Across all four folds, most reproducible training genes were shared between the two tools. However, each fold also retained tool-specific signatures. For the GSE152418, GSE161731, GSE171110, and PMC8202013 held-out folds, the numbers of edgeR-unique genes were 65, 21, 52, and 65, respectively, while the corresponding numbers of DESeq2-unique genes were 31, 20, 14, and 17. The numbers of shared reproducible genes were 394, 441, 267, and 311 across these folds.
After defining the reproducible tool-specific signatures shown in Figs 6, 7 evaluates whether these signatures remained predictive in the corresponding held-out datasets. This analysis assessed whether genes uniquely and reproducibly identified by each tool captured biological signals that generalized beyond the datasets used for gene selection.
(a) Mean ROC curves across four independent SARS-CoV-2 datasets, with shaded regions representing ±1 standard deviation of the true positive rate (TPR) at each false positive rate (FPR). Metrics in the legend summarize mean AUC, accuracy, precision, and recall with standard deviation. (b) PCA-based classification using DESeq2-specific genes from training datasets applied to test set GSE152418, yielding moderate separation (AUC = 0.783). (c) Corresponding classification using edgeR-specific genes for the same test set, yielding perfect separation (AUC = 1.000).
Panel (a) presents the average ROC curves with shaded bands indicating ±1 standard deviation of the true positive rate (TPR) across folds. edgeR achieved a mean AUC of , accuracy of
, precision of
, and recall of
. In contrast, DESeq2 yielded lower performance with a mean AUC of
, accuracy of
, precision of
, and recall of
.
Panels (b) and (c) show representative classification performance on the test dataset GSE152418. For DESeq2-specific genes (panel b), the model yielded AUC = 0.783, with accuracy, precision, and recall all equal to 0.75. In contrast, using edgeR-specific genes (panel c) resulted in perfect separation, with AUC, accuracy, precision, and recall all equal to 1.000.
Discussion
Sensitivity to sample size and robustness to outliers
The semi-simulated experiments presented in Fig 1 highlight distinct performance profiles of edgeR and DESeq2 with respect to sample size and robustness to outliers. DESeq2 consistently identified more DEGs than edgeR across all tested sample sizes, with particularly notable differences at low n. This behavior may reflect DESeq2’s use of empirical Bayes shrinkage and regularization, which improves variance estimation under limited replication. While such conservatism helps stabilize inference, it also introduces a more inclusive DEG set in small-n settings, potentially increasing the risk of false positives.
As sample size increased, the DEG sets produced by both tools converged in both size and content. Directional overlap analysis demonstrated that edgeR recovered a growing proportion of DESeq2-identified genes as statistical power increased. By n = 45, both tools achieved over 95% mutual overlap, suggesting that differences in underlying models and statistical testing become less consequential when replication is sufficient. These findings suggest that, for well-powered studies, both tools offer highly comparable DEG discovery performance.
Robustness analysis under sample swapping (Fig 1j) revealed that both tools degrade predictably in the presence of controlled contamination, with Jaccard similarity decreasing as the number of outlier samples increased. However, DESeq2 maintained slightly higher mean similarity scores and lower variability across replicates at all levels of perturbation. This suggests that DESeq2 offers marginally greater robustness to moderate outlier effects.
Together, these findings indicate that DESeq2 is more sensitive to detecting significant genes at small sample sizes, though whether this increased sensitivity reflects true biological signal or introduces additional noise is a question discussed in the next two sections. As sample size increases, both tools become more consistent, with convergence in both DEG count and content.
Classification performance of uniquely identified gene sets within the discovery dataset
The classification-based analysis presented in Figs 2 and 3 offers a performance-driven assessment of the biological validity of genes uniquely identified by edgeR and DESeq2. By training logistic regression models using PC1 and PC2 derived from the expression of uniquely significant genes, we evaluated each tool’s ability to recover gene sets that effectively discriminate between control and treated samples. This framework serves as a proxy for evaluating the “trueness” of significant genes in the absence of an external ground truth.
While both tools demonstrated high precision across most datasets (Fig 3a), edgeR consistently achieved equal or superior precision in more than half of the contrasts. This indicates that, despite identifying fewer unique DEGs than DESeq2, the genes it does report tend to be more predictive and less noisy. The recall results in Fig 3b further reinforce this observation, with edgeR exhibiting stronger sensitivity in multiple datasets, especially in EBOV and inflammatory disease contrasts.
The F1 score results shown in Fig 3c provide an integrated view of classification performance, balancing both precision and recall. edgeR outperformed DESeq2 in 9 out of 13 contrasts, achieving notably high scores in GSE234118 — Mpox DPI 7 (0.971) and EBOV DPI 3 (0.800), and GSE231693 — IPF (0.976). In contrast, DESeq2 showed larger fluctuations in F1 performance, with reduced scores particularly in datasets where it identified many unique genes that ultimately contributed less to sample separability.
These trends suggest that some of the uniquely identified genes from DESeq2, especially in low-sample or highly variable settings, may include false positives. This finding aligns with earlier observations (Fig 1) that DESeq2 is more inclusive in small-n contexts, potentially increasing sensitivity at the expense of specificity.
The Dolan-More profile in Fig 3d further highlights the comparative consistency of each method across diverse datasets. edgeR attained the highest F1 score in a majority of contrasts and exhibited more stable performance overall, reinforcing its reliability in identifying gene sets with meaningful classification potential.
In summary, while DESeq2 tends to identify more significant genes, edgeR provides gene sets that are, on average, more predictive of biological condition when evaluated via classification. This suggests that increased sensitivity in DEG calling, especially in smaller datasets, may not always correspond to biological relevance, and highlights the importance of downstream validation when interpreting differential expression results.
Pathway enrichment concordance between tools
The pathway enrichment concordance analysis provides an additional view of how tool choice affects downstream interpretation (Figs 5 and 4). Although the DEG-level analyses showed that edgeR and DESeq2 can differ in the number and identity of significant genes, the pathway-level results showed that many biological interpretations remained concordant between tools. This suggests that, in several contrasts, the dominant pathway-level signals are robust to differences in DEG calling.
However, pathway-level agreement was not uniform across all contrasts. Some comparisons showed clear tool-specific enriched pathways, indicating that differences in significant DEG sets can affect downstream pathway interpretation. This is important because pathway analysis is frequently used to summarize DEG results into biological themes. Therefore, even when two tools identify broadly similar biological signals, tool-specific DEGs can still alter which pathways are emphasized.
These findings refine the interpretation of the DEG-level results. Tool choice can influence downstream enrichment results, but the extent of this influence depends on the dataset, the biological contrast, and the pathway collection used. Thus, pathway-level concordance should be evaluated alongside DEG counts, classification performance, and cross-study validation when comparing differential expression tools.
Generalizability of tool-specific gene sets across independent studies
The cross-study validation results presented in Figs 6 and 7 offer compelling evidence that the biological signal captured by tool-specific gene sets differs in generalizability and predictive power. Although both edgeR and DESeq2 are widely accepted for differential gene expression analysis, the present results highlight clear differences in the robustness of the gene sets they identify when transferred to independent datasets.
One of the most important findings is that edgeR-specific genes yielded significantly higher classification performance than those uniquely identified by DESeq2. This was consistent across multiple folds of leave-one-out cross-study validation and was further exemplified by the perfect classification obtained in the representative GSE152418 test case. These results indicate that edgeR not only identifies fewer unique genes but that these genes are more likely to represent consistent, transferable biological signals rather than study-specific artifacts.
In contrast, the performance drop observed with DESeq2-specific genes suggests that some of its identified features may be more reflective of noise or dataset-specific variance. This aligns with previous observations from our semi-simulation and classification experiments, where DESeq2 exhibited increased sensitivity but also greater variability in performance. It is plausible that DESeq2’s regularized dispersion estimation and more inclusive thresholding increase the likelihood of capturing subtle but less reproducible patterns, particularly in smaller or noisier datasets.
The contrast between the two tools in this context reveals a fundamental trade-off. DESeq2 appears more permissive and sensitive, which may be advantageous for exploratory analyses or hypothesis generation but potentially at the cost of precision and reproducibility. On the other hand, edgeR employs stricter criteria that may reduce the total number of reported DEGs but improve their specificity and cross-dataset stability. In the context of biomarker discovery or translational applications where reproducibility is paramount, the conservative profile of edgeR may be preferable.
Furthermore, these findings reinforce the importance of integrating downstream classification or validation frameworks into DEG analysis pipelines. The number of DEGs alone is not a sufficient metric for evaluating tool performance; rather, the ability of these genes to generalize across biological contexts and datasets is a more meaningful benchmark. The consistent superiority of edgeR in our cross-study framework underscores its capacity to identify gene sets that are not only statistically significant but biologically informative and generalizable.
In sum, while both tools are capable of capturing relevant gene expression changes, edgeR provides more reliable and transferable gene sets, particularly in applications demanding high reproducibility. These results advocate for tool selection to be guided not only by statistical properties but also by the intended downstream use of the identified genes.
Integration with prior benchmarks and implications for tool choice
Taken together, our results extend previous benchmarking studies by showing how statistical differences between edgeR and DESeq2 translate into downstream biological utility. Prior work has already shown that RNA-seq DGE tools can differ in DEG yield, type I error behavior, robustness to perturbation, and sensitivity to sample size [20–22,24–26]. The main contribution of the present study is that we evaluated what happens after tool-specific genes are identified: whether those genes separate biological groups, whether they lead to concordant pathway-level interpretations, and whether they generalize across independent datasets. This downstream evaluation is important because a DEG list can appear statistically significant yet still be less useful for classification, pathway interpretation, or transfer to an external cohort.
The sample-size analysis provides one point of agreement with previous work and one important extension. Consistent with earlier studies, we found that tool agreement was lowest at smaller sample sizes and increased as replication improved. However, the direction of the difference in our data was informative: DESeq2 generally identified more DEGs than edgeR at smaller sample sizes, whereas the two tools became highly concordant in the full RSVB dataset. This suggests that, when sample size is adequate and the biological signal is strong, the practical difference between the two tools may become smaller. In contrast, when sample size is limited, tool-specific modeling choices can have a larger effect on the resulting DEG list. This finding is consistent with the broader literature, but our analysis further shows that early differences in DEG yield can carry into downstream classification and external validation.
The classification results provide a functional perspective on the false-positive concern raised in previous studies. We did not directly estimate gene-level FDR using permutation or known ground truth, so our results should not be interpreted as proving that a specific set of DESeq2-specific genes are false positives. Instead, our analysis asks a complementary question: when each tool identifies genes that the other tool does not, which set better captures biological separation? Across 13 contrasts, edgeR-specific genes more often produced higher F1 scores and more consistent classification performance. This pattern suggests that the larger DESeq2-specific gene sets observed in some contrasts may include genes with weaker biological separability, whereas the more restricted edgeR-specific sets more often captured signal that distinguished the relevant biological groups. This result is consistent with prior reports that larger DEG lists may include less stable or less reliable signals, but it adds an explicit classification-based evaluation that most earlier studies did not include.
The pathway enrichment analysis adds a second layer of interpretation. Previous studies have shown that tool-specific DEG lists can produce different functional conclusions, and Li et al. showed that spurious DEG calls can even generate biologically plausible pathway enrichment [24]. In the present study, many contrasts showed strong pathway-level agreement between edgeR and DESeq2, indicating that major biological programs can remain stable even when DEG lists are not identical. At the same time, selected contrasts showed tool-specific enriched pathways, which means that downstream interpretation can still depend on the DGE tool. This distinction is important: tool choice does not always change the biological conclusion, but it can change which pathways are emphasized, especially when tool-specific genes drive enrichment results.
The cross-study SARS-CoV-2 validation provides the strongest practical distinction between the two tools in this study. Genes uniquely and reproducibly identified by edgeR across training datasets produced higher AUC, precision, and recall in held-out datasets than genes uniquely and reproducibly identified by DESeq2. This result is not simply another measure of DEG overlap or statistical significance; it directly evaluates transferability across independent studies. In this sense, our findings extend previous benchmarking work by showing that tool-specific gene sets can differ in external predictive value. For applications such as biomarker discovery, signature development, or translational studies, this type of external performance may be more informative than DEG count alone.
Overall, the combined evidence suggests a practical interpretation of edgeR and DESeq2. DESeq2 may be useful for broad exploratory discovery because it often identifies a larger candidate set, especially in smaller-sample settings. However, larger DEG yield should be followed by additional checks, including pathway concordance, sensitivity to outliers, and validation in independent data. edgeR, in our analyses, produced tool-specific gene sets that were more often predictive and transferable, which makes it attractive when reproducibility and downstream validation are priorities. This does not mean that edgeR is universally superior or that DESeq2 is unreliable. Prior studies show that both tools can be affected by dataset structure, outliers, filtering, and model assumptions. Rather, the practical message is that DESeq2 may be better suited for sensitivity-oriented candidate generation, while edgeR may be preferable when the primary goal is a smaller, more reproducible gene set with stronger downstream performance.
A useful strategy is therefore to treat shared genes and shared pathways from both tools as a robust core signal, while interpreting tool-specific genes according to the goal of the study. If the goal is hypothesis generation, tool-specific genes from either method may be worth exploring. If the goal is reproducible classification or biomarker development, tool-specific genes should be evaluated using downstream separability and external validation, as done here. This study therefore supports a broader view of DGE benchmarking: the best tool is not necessarily the one that identifies the most genes, but the one whose genes remain stable, interpretable, and useful beyond the discovery dataset.
Conclusions
This study presents a systematic and multifaceted comparison of two widely used RNA-Seq differential expression tools, edgeR and DESeq2, across a broad spectrum of analytical challenges, including sensitivity to sample size, robustness to outliers, classification-based evaluation of unique gene sets, and cross-study generalizability. Our findings offer nuanced insights into the trade-offs and strengths of each method, providing practical guidance for tool selection in transcriptomic studies.
We find that DESeq2 often identifies more differentially expressed genes (DEGs), especially in small sample settings. This increased sensitivity, however, comes with greater susceptibility to noise and less consistent performance when applied to independent datasets. In contrast, edgeR identifies fewer DEGs but exhibits more conservative and stable behavior, particularly as sample size increases. The two tools converge in performance under well-powered designs, with over 95% mutual overlap in DEG sets by n = 45, indicating that replication reduces methodological divergence.
Classification-based evaluation of uniquely identified genes reveals that edgeR-specific gene sets tend to be more predictive of biological condition, achieving higher F1 scores in the majority of cases. This suggests that edgeR is more effective at prioritizing biologically informative genes with strong signal-to-noise ratios, while DESeq2’s greater inclusiveness may introduce more marginal or context-specific features.
Pathway enrichment analysis further showed that DEG-level differences do not always translate into divergent downstream biological interpretation. Hallmark and KEGG enrichment results were concordant across many contrasts, although selected comparisons retained tool-specific enriched pathways, indicating that pathway-level validation can provide an important complement to DEG-level benchmarking.
Cross-study validation further reinforces these distinctions. Gene sets uniquely discovered by edgeR generalized more effectively across independent SARS-CoV-2 datasets, achieving nearly perfect classification performance in multiple test cases. In contrast, DESeq2-specific gene sets demonstrated lower reproducibility and weaker discriminatory power when transferred to unseen datasets. These findings highlight edgeR’s superior utility for biomarker discovery, where robustness and reproducibility across cohorts are essential.
Collectively, our results emphasize that no single tool is universally superior; rather, each has context-dependent advantages. For studies focused on hypothesis generation or underpowered designs, DESeq2’s sensitivity may be desirable. However, when prioritizing specificity, cross-dataset reproducibility, or translational applications, edgeR’s conservative and robust profile makes it a more reliable choice. The addition of pathway-level concordance analysis highlights that tool selection should be evaluated across both gene-level and pathway-level outcomes. These insights advocate for tailoring tool selection to the study’s design constraints and downstream objectives, and underscore the value of incorporating biological validation frameworks into differential expression analyses.
Limitations and future work
This study has several limitations. First, our comparison was limited to two tools, edgeR and DESeq2, using their default pipelines. Future work should assess additional methods and explore the impact of parameter tuning. Second, while we evaluated biological relevance via classification and cross-study validation, external ground truth data (e.g., qPCR validation or functional assays) were not available, which limits definitive biological interpretation. Expanding to other disease models and incorporating validation strategies will help generalize and strengthen these findings.
References
- 1. Conesa A, Madrigal P, Tarazona S, Gomez-Cabrero D, Cervera A, McPherson A, et al. A survey of best practices for RNA-seq data analysis. Genome Biol. 2016;17:13. pmid:26813401
- 2. Wang Z, Gerstein M, Snyder M. RNA-Seq: a revolutionary tool for transcriptomics. Nat Rev Genet. 2009;10(1):57–63. pmid:19015660
- 3. Oshlack A, Robinson MD, Young MD. From RNA-seq reads to differential expression results. Genome Biol. 2010;11(12):220. pmid:21176179
- 4. Rezapour M, Narayanan A, Mowery WH, Gurcan MN. Assessing concordance between RNA-Seq and NanoString technologies in Ebola-infected nonhuman primates using machine learning. BMC Genomics. 2025;26(1):358. pmid:40211167
- 5. Rezapour M, Walker SJ, Ornelles DA, Niazi MKK, McNutt PM, Atala A, et al. A comparative analysis of RNA-Seq and NanoString technologies in deciphering viral infection response in upper airway lung organoids. Front Genet. 2024;15:1327984. pmid:38957806
- 6. Rezapour M, Walker SJ, Ornelles DA, McNutt PM, Atala A, Gurcan MN. Analysis of gene expression dynamics and differential expression in viral infections using generalized linear models and quasi-likelihood methods. Front Microbiol. 2024;15:1342328. pmid:38655085
- 7. Rezapour M, Wesolowski R, Gurcan MN. Identifying Key Genes Involved in Axillary Lymph Node Metastasis in Breast Cancer Using Advanced RNA-Seq Analysis: A Methodological Approach with GLMQL and MAS. Int J Mol Sci. 2024;25(13):7306. pmid:39000413
- 8. Rezapour M, Narayanan A, Gurcan MN. Machine Learning Analysis of RNA-Seq Data Identifies Key Gene Signatures and Pathways in Mpox Virus-Induced Gastrointestinal Complications Using Colon Organoid Models. Int J Mol Sci. 2024;25(20):11142. pmid:39456924
- 9. Rezapour M, Niazi MKK, Lu H, Narayanan A, Gurcan MN. Machine learning-based analysis of Ebola virus’ impact on gene expression in nonhuman primates. Front Artif Intell. 2024;7:1405332. pmid:39282474
- 10. Ge SX, Son EW, Yao R. iDEP: an integrated web application for differential expression and pathway analysis of RNA-Seq data. BMC Bioinformatics. 2018;19(1):534. pmid:30567491
- 11. Subramanian I, Verma S, Kumar S, Jere A, Anamika K. Multi-omics Data Integration, Interpretation, and Its Application. Bioinform Biol Insights. 2020;14:1177932219899051. pmid:32076369
- 12. Mortazavi A, Williams BA, McCue K, Schaeffer L, Wold B. Mapping and quantifying mammalian transcriptomes by RNA-Seq. Nat Methods. 2008;5(7):621–8. pmid:18516045
- 13. Marioni JC, Mason CE, Mane SM, Stephens M, Gilad Y. RNA-seq: an assessment of technical reproducibility and comparison with gene expression arrays. Genome Res. 2008;18(9):1509–17. pmid:18550803
- 14. Robinson MD, McCarthy DJ, Smyth GK. edgeR: a Bioconductor package for differential expression analysis of digital gene expression data. Bioinformatics. 2010;26(1):139–40. pmid:19910308
- 15. Love MI, Huber W, Anders S. Moderated estimation of fold change and dispersion for RNA-seq data with DESeq2. Genome Biol. 2014;15(12):550. pmid:25516281
- 16. Robinson MD, Oshlack A. A scaling normalization method for differential expression analysis of RNA-seq data. Genome Biol. 2010;11(3):R25. pmid:20196867
- 17. McCarthy DJ, Chen Y, Smyth GK. Differential expression analysis of multifactor RNA-Seq experiments with respect to biological variation. Nucleic Acids Res. 2012;40(10):4288–97. pmid:22287627
- 18. Lund SP, Nettleton D, McCarthy DJ, Smyth GK. Detecting differential expression in RNA-sequence data using quasi-likelihood with shrunken dispersion estimates. Stat Appl Genet Mol Biol. 2012;11(5):/j/sagmb.2012.11.issue-5/1544-6115.1826/1544-6115.1826.xml. pmid:23104842
- 19. Anders S, Huber W. Differential expression analysis for sequence count data. Nat Prec. 2010.
- 20. Seyednasrollah F, Laiho A, Elo LL. Comparison of software packages for detecting differential expression in RNA-seq studies. Brief Bioinform. 2015;16(1):59–70. pmid:24300110
- 21. Zhang ZH, Jhaveri DJ, Marshall VM, Bauer DC, Edson J, Narayanan RK, et al. A comparative study of techniques for differential expression analysis on RNA-Seq data. PLoS One. 2014;9(8):e103207. pmid:25119138
- 22. Stupnikov A, McInerney CE, Savage KI, McIntosh SA, Emmert-Streib F, Kennedy R, et al. Robustness of differential gene expression analysis of RNA-seq. Comput Struct Biotechnol J. 2021;19:3470–81. pmid:34188784
- 23. Liu S, Wang Z, Zhu R, Wang F, Cheng Y, Liu Y. Three Differential Expression Analysis Methods for RNA Sequencing: limma, EdgeR, DESeq2. J Vis Exp. 2021;(175):10.3791/62528. pmid:34605806
- 24. Li Y, Ge X, Peng F, Li W, Li JJ. Exaggerated false positives by popular differential expression methods when analyzing human population samples. Genome Biol. 2022;23(1):79. pmid:35292087
- 25. Li D, Zand MS, Dye TD, Goniewicz ML, Rahman I, Xie Z. An evaluation of RNA-seq differential analysis methods. PLoS One. 2022;17(9):e0264246. pmid:36112652
- 26. Cui Z, Liu Y, Zhang J, Qiu X. Super-delta2: an enhanced differential expression analysis procedure for multi-group comparisons of RNA-seq data. Bioinformatics. 2021;37(17):2627–36. pmid:33693477
- 27. Anderson J, Imran S, Ng YY, Wang T, Ashley S, Minh Thang C, et al. Differential anti-viral response to respiratory syncytial virus A in preterm and term infants. EBioMedicine. 2024;102:105044. pmid:38447274
- 28. Aid M, Sciacca M, McMahan K, Hope D, Liu J, Jacob-Dolan C, et al. Mpox infection protects against re-challenge in rhesus macaques. Cell. 2023;186(21):4652-4661.e13. pmid:37734373
- 29. Cross RW, Speranza E, Borisevich V, Widen SG, Wood TG, Shim RS, et al. Comparative Transcriptomics in Ebola Makona-Infected Ferrets, Nonhuman Primates, and Humans. J Infect Dis. 2018;218(suppl_5):S486–95. pmid:30476250
- 30. McClain MT, Constantine FJ, Henao R, Liu Y, Tsalik EL, Burke TW, et al. Dysregulated transcriptional responses to SARS-CoV-2 in the periphery. Nat Commun. 2021;12(1):1079. pmid:33597532
- 31. Jia G, Ramalingam TR, Heiden JV, Gao X, DePianto D, Morshead KB, et al. An interleukin 6 responsive plasma cell signature is associated with disease progression in systemic sclerosis interstitial lung disease. iScience. 2023;26(11):108133. pmid:37867940
- 32. Arunachalam PS, Wimmers F, Mok CKP, Perera RAPM, Scott M, Hagan T, et al. Systems biological assessment of immunity to mild versus severe COVID-19 infection in humans. Science. 2020;369(6508):1210–20. pmid:32788292
- 33. Bibert S, Guex N, Lourenco J, Brahier T, Papadimitriou-Olivgeris M, Damonti L, et al. Transcriptomic signature differences between SARS-CoV-2 and influenza virus infected patients. Frontiers in immunology. 2021;12:666163.
- 34.
McClain MT, Constantine FJ, Henao R, Liu Y, Tsalik EL, Burke TW. Dysregulated transcriptional responses to SARS-CoV-2 in the periphery support novel diagnostic approaches. medRxiv. 2020.
- 35. Lévy Y, Wiedemann A, Hejblum BP, Durand M, Lefebvre C, Surénaud M, et al. CD177, a specific marker of neutrophil activation, is associated with coronavirus disease 2019 severity and death. iScience. 2021;24(7):102711. pmid:34127958
- 36. Armstrong RA. When to use the Bonferroni correction. Ophthalmic Physiol Opt. 2014;34(5):502–8. pmid:24697967
- 37. Fletcher S, Islam MZ. Comparing sets of patterns with the Jaccard index. AJIS. 2018;22.
- 38.
Benesty J, Chen J, Huang Y, Cohen I. Pearson Correlation Coefficient. Springer Topics in Signal Processing. Springer Berlin Heidelberg. 2009. 1–4. https://doi.org/10.1007/978-3-642-00296-0_5
- 39. de Winter JCF, Gosling SD, Potter J. Comparing the Pearson and Spearman correlation coefficients across distributions and sample sizes: A tutorial using simulations and empirical data. Psychol Methods. 2016;21(3):273–90. pmid:27213982
- 40. Abdi H, Williams LJ. Principal component analysis. WIREs Computational Stats. 2010;2(4):433–59.
- 41. Ng A, Jordan M. On discriminative vs. generative classifiers: A comparison of logistic regression and naive bayes. Advances in neural information processing systems. 2001;14.
- 42.
Yacouby R, Axman D. Probabilistic Extension of Precision, Recall, and F1 Score for More Thorough Evaluation of Classification Models. In: Proceedings of the First Workshop on Evaluation and Comparison of NLP Systems, 2020. 79–91. https://doi.org/10.18653/v1/2020.eval4nlp-1.9
- 43. Dolan ED, Moré JJ. Benchmarking optimization software with performance profiles. Mathematical Programming. 2002;91(2):201–13.
- 44. Subramanian A, Tamayo P, Mootha VK, Mukherjee S, Ebert BL, Gillette MA, et al. Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles. Proc Natl Acad Sci U S A. 2005;102(43):15545–50. pmid:16199517
- 45. Liberzon A, Birger C, Thorvaldsdóttir H, Ghandi M, Mesirov JP, Tamayo P. The Molecular Signatures Database (MSigDB) hallmark gene set collection. Cell Syst. 2015;1(6):417–25. pmid:26771021
- 46. Kanehisa M, Goto S. KEGG: kyoto encyclopedia of genes and genomes. Nucleic Acids Res. 2000;28(1):27–30. pmid:10592173
- 47. Kanehisa M, Furumichi M, Sato Y, Ishiguro-Watanabe M, Tanabe M. KEGG: integrating viruses and cellular organisms. Nucleic Acids Res. 2021;49(D1):D545–51. pmid:33125081
- 48.
Hoo ZH, Candlish J, Teare D. What is an ROC curve? 2017.