Bayesian RNA-seq Differential Expression — Bayesian DE Analysis of RNA Sequencing Data

Statistics
Introduced by
Kendziorski et al. (EBSeq); Hardcastle & Kelly (baySeq)
Year
2010–2013
Type
Bayesian statistical inference pipeline
Family
Bioinformatics / omics

What does it do?

Bayesian RNA-seq differential expression analysis applies hierarchical Bayesian models to RNA sequencing read-count data to identify genes whose expression levels differ significantly between biological conditions.

Rather than relying solely on p-values, these methods quantify the posterior probability that a gene is differentially expressed, borrowing statistical strength across genes and naturally accommodating low sample sizes common in genomics experiments.

The intuition behind the method

Suppose you have RNA-seq data from three treated samples and three controls, and you want to know which of 20,000 genes change in response to treatment. A classical frequentist test treats each gene independently and sets a fixed significance threshold. A Bayesian approach instead places a prior distribution over expression patterns — encoding the expectation that most genes do not change — and updates this prior with the observed counts to yield, for each gene, a posterior probability of differential expression. Because information is pooled across the entire gene set via the prior, estimates for low-count genes are stabilised and the false discovery burden is directly managed through the posterior probability rather than through a post-hoc correction.

History

Bayesian approaches to differential expression predate RNA-seq. Borrowing strength across features through empirical Bayes shrinkage was applied to microarray data before RNA-seq became common. As RNA-seq began to replace microarrays, count-specific Bayesian models emerged. Hardcastle and Kelly introduced baySeq in 2010, applying empirical Bayesian methods under a negative binomial likelihood to sequence count data. Leng and colleagues published EBSeq in 2013, an empirical Bayes hierarchical model for inference in RNA-seq experiments that has been applied to multi-condition comparisons and isoform-level DE.

When to use it

Use Bayesian RNA-seq DE analysis when you have a small number of biological replicates per group and want per-gene posterior probabilities of differential expression rather than only frequentist p-values, or when a biologically motivated prior on the fraction of DE genes can be stated. It suits studies where false positives are costly and the downstream decision is a posterior probability threshold. Pooling across genes stabilises estimates, but it does not replace replication: with very few replicates per group, credible intervals will be wide and many genes will remain uncertain. Do not choose it over DESeq2 or edgeR merely as a drop-in alternative when those tools meet your needs and the design is adequate; the extra work of prior choice and convergence checks is justified mainly when posterior probabilities are the intended output. It is also unsuitable when the team lacks the infrastructure to run and diagnose the model, and it is not designed for single-cell count data without adaptation.

Limitations and considerations

  • Computationally more demanding than negative binomial regression-based tools (DESeq2, edgeR) when full MCMC is used; even empirical Bayes implementations require careful hyperparameter assessment.
  • Results are sensitive to prior specification: an uninformative or misspecified prior on the fraction of DE genes can inflate or deflate the DE gene list.
  • EBSeq and baySeq may have thinner community support and fewer worked examples than DESeq2 and edgeR, particularly for newer normalisation and quality-control steps; check the current status of the package version you plan to use.
  • Interpretation of posterior probabilities requires Bayesian literacy that is not universal among biological collaborators or reviewers.

Source conditions do not replace independent scientific review or validation by an analysis engine.

Strengths

  • Directly estimates the posterior probability that each gene is differentially expressed, giving an interpretable, decision-theoretic output.
  • Borrows strength across all genes via the shared prior, improving estimates for low-count and high-variance genes common in small RNA-seq experiments.
  • Pooling information across genes helps inference with small groups, and the method can be run with as few as two replicates per group; with two replicates, however, credible intervals and PPDE values are highly uncertain, and three or more replicates per group is the practical minimum for stable inference.
  • Some implementations report posterior fold-change estimates with credible intervals, enabling formal uncertainty quantification rather than point-estimate comparisons alone.
  • The indicator-based model structure extends to multi-condition comparisons, since each gene is scored over patterns of equivalence and difference across groups.

Applications

  • Identifying disease-associated gene expression changes in clinical RNA-seq studies with small patient cohorts.
  • Comparing transcriptomic profiles across multiple developmental time points or cell types with few biological replicates.
  • Isoform-level differential expression analysis where counts per isoform are sparse and Bayesian shrinkage is critical.
  • Biomarker discovery pipelines where false positive DE calls carry high downstream cost and posterior probability thresholds provide a principled filter.
  • Multi-condition DE experiments (more than two groups) where the indicator-based Bayesian framework naturally extends to partition testing.
  • Using posterior DE probabilities as input evidence for downstream pathway or network models, keeping in mind that they are estimates carrying their own uncertainty.

How it works

How it works

1

Raw sequencing reads are aligned to a reference genome or transcriptome and summarised as integer read counts per gene per sample. Library sizes vary across samples, so normalisation factors (e.g., median-of-ratios or TMM normalisation) are computed to make counts comparable. Low-expressed genes are typically filtered to remove entries that lack sufficient counts for reliable inference, reducing the multiple-testing burden.

2

A hierarchical Bayesian count model is specified. Most implementations use a negative binomial (NB) likelihood to accommodate the overdispersion observed in RNA-seq count data. In general form, the count y_gi of gene g in sample i is modelled as NB with a mean equal to the sample size factor s_i multiplied by a condition-specific mean for gene g, plus a gene-specific dispersion parameter; the mean and dispersion parameters receive empirical or informative priors. The prior over the DE indicator for each gene encodes the analyst's expectation that most genes are not DE, commonly as a mixture prior with a small probability mass on DE configurations. The prior proportion of DE genes is estimated from the data in EBSeq, whereas baySeq can take a user-specified value, so check how the prior is set in your package version. Exact parameterisation differs between implementations.

3

Posterior quantities are computed via empirical Bayes estimation or Markov chain Monte Carlo (MCMC) sampling. Empirical Bayes methods (EBSeq, baySeq) estimate hyperparameters from the data before computing per-gene posteriors, making them computationally tractable for whole-transcriptome analysis; MCMC instead places priors on all parameters and samples them. The primary output is a posterior probability of differential expression (PPDE) for each gene, defined as the posterior probability that the gene is DE given the observed counts, that is, the posterior mass on all DE patterns. Posterior fold-change estimates are reported alongside it.

4

Genes are ranked by PPDE and a pre-specified posterior false discovery rate (pFDR) bound is applied to obtain the final DE gene list. For a selected set S of genes, the estimated pFDR is the mean of (1 minus PPDE) over the genes in S, so the expected number of false discoveries in S is the sum of (1 minus PPDE) over S. The bound is chosen by the analyst; 0.05 is a common convention rather than a property of the method. Report the chosen bound together with the number of genes it selects. Downstream steps include functional annotation (GO/KEGG enrichment), visualisation (volcano plots, heatmaps), and validation of top candidates by RT-qPCR or orthogonal experiments.

Common pitfalls

  • Ignoring overdispersion: using a Poisson likelihood rather than a negative binomial likelihood severely underestimates variance in RNA-seq counts and inflates the DE gene list.
  • Skipping normalisation: if library-size normalisation factors are not applied before or within the model, systematic differences in sequencing depth will masquerade as differential expression.
  • Treating PPDE as a p-value: PPDE is a posterior probability that a gene is DE, not 1 minus a p-value. Ranking by PPDE and applying a pre-specified pFDR bound is the appropriate decision rule; applying a fixed 0.05 cutoff to PPDE as if it were a p-value is not.
  • Using low-quality or unreplicated data: Bayesian pooling improves estimates but cannot compensate for absent biological replication; studies with n = 1 per condition should not proceed to DE analysis regardless of the statistical framework.

Frequently asked questions

How does Bayesian DE differ from DESeq2 or edgeR?

DESeq2 and edgeR use negative binomial generalised linear models with empirical Bayes shrinkage of dispersion estimates; they report p-values and adjusted p-values (FDR). EBSeq and baySeq are empirical Bayes hierarchical models: they estimate hyperparameters from the data (EBSeq estimates the proportion of DE genes from the data, while baySeq can take it from the user) and then report a posterior probability of differential expression (PPDE) and control a posterior false discovery rate. Both families borrow strength across genes, but the posterior-probability output gives direct probability statements about DE status for each gene.

Do I need more than two replicates for Bayesian DE analysis?

Hierarchical pooling helps Bayesian methods with small groups, but it cannot replace biological replication. With two replicates per group, posterior inference will have wide credible intervals and many genes will fall in an uncertain probability range. Three or more replicates per group is a common practical minimum, and the credible intervals narrow as replication increases.

What prior should I use for the proportion of DE genes?

EBSeq estimates the proportion of DE genes from the data itself, which reduces the need for a user-chosen value. baySeq can be run with a user-specified prior, so check the documentation of your version for how the prior on the DE proportion is set. Without pilot data, a prior that expects only a minority of expressed genes to change is the usual starting point, and a sensitivity analysis across plausible values is advisable.

Can Bayesian DE analysis handle multi-condition experiments?

Yes. EBSeq and baySeq assign posterior probability to patterns of equivalence and difference across the groups, so condition-specific expression can be detected without decomposing the design into pairwise comparisons. The number of candidate patterns grows rapidly with the number of conditions, which makes the prior over patterns more consequential as the design expands.

Is Bayesian DE suitable for single-cell RNA-seq data?

Standard implementations assume the overdispersion and moderate zero-inflation typical of bulk RNA-seq. Single-cell RNA-seq data are far sparser and more zero-inflated, and are usually analysed with models built for that structure. Applying bulk-RNA Bayesian DE methods directly to single-cell counts without adaptation is generally not recommended.

Related methods

Sources

  1. Leng, N., Dawson, J. A., Thomson, J. A., Ruotti, V., Rissman, A. I., Smits, B. M., Haag, J. D., Gould, M. N., Stewart, R. M., & Kendziorski, C. (2013). EBSeq: An empirical Bayes hierarchical model for inference in RNA-seq experiments. Bioinformatics, 29(8), 1035–1043.

    Open publication reference
  2. Hardcastle, T. J., & Kelly, K. A. (2010). baySeq: Empirical Bayesian methods for identifying differential expression in sequence count data. BMC Bioinformatics, 11, 422.

    Open publication reference