Betweenness Centrality Computation for Metabolites
Summary
Computes betweenness centrality (BC) for metabolite nodes in a pathway-metabolite bipartite network using igraph, then normalizes to Relative Betweenness Centrality (RBC) by scaling to [0,1] range to identify topologically important metabolites with potential regulatory influence.
When to use
When you have a pathway-metabolite bipartite network and a filtered set of input metabolites (e.g., from differential analysis or experimental selection), and you need to rank metabolites by their topological importance within the network structure—i.e., how often they lie on shortest paths between other nodes, indicating gatekeeping or hub roles in metabolic regulation.
When NOT to use
- Input metabolite set is empty or contains only 1–2 nodes (BC is undefined or trivial in sparse graphs).
- Network is already reduced to a single pathway or metabolite; betweenness requires multiple alternative paths.
- You only need to rank metabolites by direct edge count or local neighborhood size (use degree centrality instead).
Inputs
- Pathway-metabolite network data (bipartite graph structure)
- Input metabolite list (e.g., KEGG identifiers from differential analysis)
- igraph graph object or edge/node lists suitable for graph construction
Outputs
- data.frame with columns: metabolite_id, RBC_score, and optional pathway_annotations
- Relative Betweenness Centrality (RBC) plot (barplot or ranked scatter visualization)
How to apply
First, construct the pathway-metabolite bipartite graph in igraph with metabolites and pathways as nodes and membership relationships as edges. Filter the network to retain only metabolites in your input set (e.g., KrasG12D-associated metabolites). Apply igraph's betweenness centrality function to compute raw BC scores for each metabolite node. Normalize raw BC values by dividing by the graph's theoretical maximum (or scaling to [0,1] range) to obtain Relative Betweenness Centrality (RBC) scores. Store results in a data.frame with metabolite identifiers, RBC scores, and optional pathway annotations. Verify that RBC values fall in [0,1] and that high-RBC metabolites align with biological expectations (e.g., hub intermediates like pyruvate or acetyl-CoA in central metabolism). Generate a visualization (barplot or ranked scatter) showing RBC values for all input metabolites, ranked by RBC score.
Related tools
Examples
library(igraph); library(enrichmet); results <- enrichmet(inputMetabolites=c('C00001','C00002','C00003'), PathwayVsMetabolites=PathwayVsMetabolites, analysis_type=c('centrality')); head(results$centrality_results)
Evaluation signals
- RBC values range from 0 to 1 with no NaN or infinite values; max RBC ≤ 1.0.
- High-RBC metabolites correspond to biochemically central compounds (e.g., pyruvate, acetyl-CoA) with known hub roles in metabolism.
- RBC ranking is stable across repeated computations (deterministic); no randomness in igraph betweenness unless graph construction uses stochastic methods.
- Metabolites with degree 1 (leaf nodes in network) have RBC = 0; metabolites with high degree and many shortest paths between pairs have RBC > 0.5.
- Final RBC plot shows expected rank ordering—biologically plausible intermediates rank higher than peripheral metabolites.
Limitations
- Betweenness centrality is computationally expensive (O(n³) for dense graphs); very large networks (>1000 nodes) may be slow.
- RBC interpretation depends on network topology; disconnected components or sparse subnetworks may produce artificially high RBC values for nodes within them.
- Bipartite network structure (pathways and metabolites as separate node types) may bias centrality scores toward metabolites at pathway intersections rather than purely metabolic importance.
- KEGG pathway data used to construct the network is static and may not reflect tissue-specific or condition-specific pathway activity.
Evidence
- [intro] betweenness centrality computation and RBC visualization: "enrichmet performs pathway enrichment analysis using Fisher's exact test, computes betweenness centrality for metabolites, and performs Metabolite Set Enrichment Analysis (MetSEA)."
- [other] bipartite network construction: "Construct the pathway-metabolite bipartite graph using igraph, with nodes representing both pathways and metabolites and edges encoding membership."
- [other] RBC normalization procedure: "Normalize betweenness centrality values to Relative Betweenness Centrality (RBC) by scaling to the [0,1] range or by the graph's maximum possible centrality."
- [other] RBC output structure and visualization: "Generate a data.frame containing metabolite identifiers, RBC scores, and optional pathway annotations. Create the RBC plot visualization (e.g., barplot or ranked scatter) showing RBC values for all"
- [readme] igraph tool application: "enrichmet integrates fgsea for fast MetSEA, igraph for topology-based metrics, and curated KEGG data for enrichment using Fisher's Exact Test"
1---2name: betweenness-centrality-computation3description: Use when when you have a pathway-metabolite bipartite network and a filtered set of input metabolites (e.g., from differential analysis or experimental selection), and you need to rank metabolites by their topological importance within the network structure—i.4license: CC-BY-4.05---67# Betweenness Centrality Computation for Metabolites89## Summary1011Computes betweenness centrality (BC) for metabolite nodes in a pathway-metabolite bipartite network using igraph, then normalizes to Relative Betweenness Centrality (RBC) by scaling to [0,1] range to identify topologically important metabolites with potential regulatory influence.1213## When to use1415When you have a pathway-metabolite bipartite network and a filtered set of input metabolites (e.g., from differential analysis or experimental selection), and you need to rank metabolites by their topological importance within the network structure—i.e., how often they lie on shortest paths between other nodes, indicating gatekeeping or hub roles in metabolic regulation.1617## When NOT to use1819- Input metabolite set is empty or contains only 1–2 nodes (BC is undefined or trivial in sparse graphs).20- Network is already reduced to a single pathway or metabolite; betweenness requires multiple alternative paths.21- You only need to rank metabolites by direct edge count or local neighborhood size (use degree centrality instead).2223## Inputs2425- Pathway-metabolite network data (bipartite graph structure)26- Input metabolite list (e.g., KEGG identifiers from differential analysis)27- igraph graph object or edge/node lists suitable for graph construction2829## Outputs3031- data.frame with columns: metabolite_id, RBC_score, and optional pathway_annotations32- Relative Betweenness Centrality (RBC) plot (barplot or ranked scatter visualization)3334## How to apply3536First, construct the pathway-metabolite bipartite graph in igraph with metabolites and pathways as nodes and membership relationships as edges. Filter the network to retain only metabolites in your input set (e.g., KrasG12D-associated metabolites). Apply igraph's betweenness centrality function to compute raw BC scores for each metabolite node. Normalize raw BC values by dividing by the graph's theoretical maximum (or scaling to [0,1] range) to obtain Relative Betweenness Centrality (RBC) scores. Store results in a data.frame with metabolite identifiers, RBC scores, and optional pathway annotations. Verify that RBC values fall in [0,1] and that high-RBC metabolites align with biological expectations (e.g., hub intermediates like pyruvate or acetyl-CoA in central metabolism). Generate a visualization (barplot or ranked scatter) showing RBC values for all input metabolites, ranked by RBC score.3738## Related tools3940- **igraph** (Computes betweenness centrality scores for metabolite nodes in the pathway-metabolite bipartite graph) — https://igraph.org41- **KEGGREST** (Retrieves pathway-to-metabolite mappings from KEGG resource to populate bipartite network) — https://bioconductor.org/packages/KEGGREST42- **enrichmet** (Orchestrates end-to-end pathway enrichment analysis including centrality computation and RBC visualization) — https://github.com/biodatalab/enrichmet4344## Examples4546```47library(igraph); library(enrichmet); results <- enrichmet(inputMetabolites=c('C00001','C00002','C00003'), PathwayVsMetabolites=PathwayVsMetabolites, analysis_type=c('centrality')); head(results$centrality_results)48```4950## Evaluation signals5152- RBC values range from 0 to 1 with no NaN or infinite values; max RBC ≤ 1.0.53- High-RBC metabolites correspond to biochemically central compounds (e.g., pyruvate, acetyl-CoA) with known hub roles in metabolism.54- RBC ranking is stable across repeated computations (deterministic); no randomness in igraph betweenness unless graph construction uses stochastic methods.55- Metabolites with degree 1 (leaf nodes in network) have RBC = 0; metabolites with high degree and many shortest paths between pairs have RBC > 0.5.56- Final RBC plot shows expected rank ordering—biologically plausible intermediates rank higher than peripheral metabolites.5758## Limitations5960- Betweenness centrality is computationally expensive (O(n³) for dense graphs); very large networks (>1000 nodes) may be slow.61- RBC interpretation depends on network topology; disconnected components or sparse subnetworks may produce artificially high RBC values for nodes within them.62- Bipartite network structure (pathways and metabolites as separate node types) may bias centrality scores toward metabolites at pathway intersections rather than purely metabolic importance.63- KEGG pathway data used to construct the network is static and may not reflect tissue-specific or condition-specific pathway activity.6465## Evidence6667- [intro] betweenness centrality computation and RBC visualization: "enrichmet performs pathway enrichment analysis using Fisher's exact test, computes betweenness centrality for metabolites, and performs Metabolite Set Enrichment Analysis (MetSEA)."68- [other] bipartite network construction: "Construct the pathway-metabolite bipartite graph using igraph, with nodes representing both pathways and metabolites and edges encoding membership."69- [other] RBC normalization procedure: "Normalize betweenness centrality values to Relative Betweenness Centrality (RBC) by scaling to the [0,1] range or by the graph's maximum possible centrality."70- [other] RBC output structure and visualization: "Generate a data.frame containing metabolite identifiers, RBC scores, and optional pathway annotations. Create the RBC plot visualization (e.g., barplot or ranked scatter) showing RBC values for all"71- [readme] igraph tool application: "enrichmet integrates fgsea for fast MetSEA, igraph for topology-based metrics, and curated KEGG data for enrichment using Fisher's Exact Test"