Workflows

Pathway analysis pitfalls

Database choice, identifier mapping, background, pathway size and causal language: the places where pathway analysis goes wrong.

Pathway analysis maps a gene or protein list onto curated pathways and asks which pathways are over-represented or coordinated. The result is only as good as the pathway database, the gene mapping and the background, and it is easy to over-interpret.

What a pathway database contains

Pathway databases curate interactions, reactions and complexes from the literature. They differ in scope, species coverage, update frequency and the definition of a pathway. A pathway in one database may not exist in another, and the same name may cover different gene sets.

The database is a model of knowledge, not a complete description of the cell. A pathway that is absent may be uncurated rather than biologically irrelevant. A pathway that is present may be based on studies in a different cell type or condition.

Record the database and its release. A pathway analysis without a version is difficult to reproduce.

Gene identifier mapping

The first practical problem is mapping your identifiers to the database. Gene symbols change, aliases collide, and different resources use different identifiers. A symbol that maps to one gene in one release may map to another in the next.

Use a stable identifier where possible, such as an Ensembl or Entrez identifier, and keep a mapping table. Report how many genes mapped and how many did not. A low mapping rate is a warning that the result may describe only a subset of the data.

Do not silently drop unmapped genes. They may be the most interesting ones, or they may indicate a species or annotation mismatch.

Background and universe

The background is the set of genes that could have been selected. For a differential expression study, it is the set of genes that passed the expression filter, not all genes in the genome.

A pathway that is small and tissue-specific can appear enriched against the wrong background. A pathway that is broadly expressed can appear depleted. The background should match the measurement.

Over-representation versus ranked methods

Over-representation analysis uses a cutoff-based list. It is simple and interpretable, but the result depends on the cutoff. A gene just below the cutoff is excluded; a gene just above is included.

Ranked methods use the full list and ask whether pathway members are concentrated at one end. They avoid the cutoff but depend on the ranking metric and can be sensitive to the choice of statistic.

Neither method proves that the pathway is active. They show an association between the gene list and the pathway membership.

Pathway size and redundancy

Small pathways can produce unstable enrichment. A pathway with five genes and three in your list may have a small p-value, but the result is fragile. Large pathways can be significant because of a few genes among many.

Pathways overlap. A signal may appear in several related pathways, which is not independent evidence. Group related pathways or use a method that accounts for overlap.

"Activation" and causal language

An enrichment result does not show that a pathway is activated or inhibited. It shows that the genes in the list are associated with the pathway. Activation requires a measurement of the pathway state, such as a phosphoproteomic change, a reporter assay or a functional experiment.

Be careful with tools that infer pathway activity from gene expression. They use a model, and the model has assumptions. A predicted activity score is a hypothesis, not a direct measurement.

Cell type and context

A pathway analysis of bulk tissue averages over cell types. A signal may come from a change in cell composition rather than a change in pathway activity within a cell type. Single-cell or spatial data can help separate these possibilities.

The same pathway may behave differently in different tissues or conditions. A result from one system should not be assumed to transfer.

A practical workflow

  1. Define the gene list and the background.
  2. Map identifiers and report the mapping rate.
  3. Choose a database and record its release.
  4. Decide between over-representation and ranked analysis.
  5. Correct for multiple testing.
  6. Inspect the genes driving each pathway.
  7. Group redundant pathways.
  8. Validate the key result with an independent measurement when possible.

Pathway analysis beyond transcriptomics

Proteomics and metabolomics bring their own mapping problems. Proteins are often identified by accession, and isoforms may collapse to one gene. Metabolites may map to several pathways or to none. The background is the set of measured features, not the whole metabolome.

For proteomics, a pathway can be enriched because a protein is more abundant, because it is modified, or because it is detected more efficiently. The measurement is not the same as transcript abundance. Combine evidence carefully rather than assuming that a transcript and its protein move together.

For metabolomics, a pathway may be represented by a few metabolites that are also involved in other reactions. The same metabolite can belong to several pathways, so the assignment is ambiguous. Report the mapping and do not overstate the specificity.

Reporting a pathway result

Report the database and release, the identifier type, the mapping rate, the background, the test, the correction and the number of genes or features in each pathway. If a ranked method was used, state the ranking metric.

Present the pathways in a table with the gene counts, the effect measure and the adjusted p-value. A figure of the top pathways is useful, but the table lets the reader check the detail. Avoid a word cloud of pathway names; it conveys little.

Key points

  • Pathway databases are curated models with different scope and coverage.
  • Identifier mapping and background choice change the result.
  • Enrichment is an association, not proof of activation.
  • Small pathways and overlapping pathways need careful interpretation.
  • Record the database release and the mapping rate.

Common mistakes

  • Using the whole genome as the background.
  • Ignoring unmapped genes.
  • Treating overlapping pathways as independent evidence.
  • Calling an enriched pathway "activated".
  • Failing to record the database version.

When to ask for help

If the mapping rate is low, if the result is dominated by one large pathway, or if you need to connect the result to a mechanism, ask for a review. You can order an analysis or read the GO enrichment guide. The RNA-seq Data Analysis course covers pathway methods, and the multi-omics integration course covers combining evidence.

Sources and further reading

When to ask for help. If your data or design do not fit a tutorial, order an analysis and we will reply with a fixed price.

Written by the Solagene team for research and education. Found an error? Tell us and we will correct it.