PathWeigh II: Graph Based Belief Propagation for Pathway Activity Analysis

preprint OA: closed CC-BY-4.0
📄 Open PDF Full text JSON View at publisher
AI-generated deep summary by claude@2026-07, 2026-07-06 · read from full text

PathWeigh II is a graph-based pathway activity method that models 357 curated KEGG and BioCarta pathways as directed multi-graphs, converts gene expression distributions into Up/Down Probability (UDP) values, and then applies Gaussian-scaled loopy belief propagation to infer pathway node and interaction beliefs while propagating evidence through the network topology. In tests on a TCGA colorectal cancer dataset (CRC, CRCSC), the authors report that PathWeigh II can correctly converge on pathways containing feedback loops where traditional averaging or perturbation-accumulation approaches fail, and that integrating internal gene evidence with propagated beliefs changes pathway activity scores substantially compared with the original PathWeigh and GSEA. A key caveat is that major methodological differences (e.g., replacing simple averaging with probabilistic inference and Gaussian scaling) lead to low correlation with PathWeigh v1 results (Pearson r = −0.03), reflecting changed assumptions rather than a small refinement. The paper does not explicitly discuss endometriosis or adenomyosis; it was included in the corpus via a keyword match in the upstream search index.

Read from the paper's body, not the abstract. Not a substitute for reading the paper. No clinical advice. How this works

Abstract

Pathway analysis is essential for understanding cellular phenotypes from gene expression data. However, existing methods struggle with feedback loops and fail to integrate gene-level evidence throughout pathway topology. We present PathWeigh II, an enhanced pathway analysis tool that employs graph decomposition and Gaussian-scaled belief propagation to model pathways as directed multi-graphs. Unlike previous approaches that average interaction activities, PathWeigh II propagates probabilistic beliefs through the network structure, naturally handling cyclic dependencies and combining observed expression data with topological inference. Using 357 curated pathways from KEGG and BioCarta, PathWeigh II provides biologically meaningful activity scores while maintaining computational efficiency. We demonstrate that PathWeigh II correctly converges on pathways with feedback loops where traditional methods fail and show how integrating internal gene evidence with propagated beliefs improves pathway characterization. PathWeigh II is open source and available at https://github.com/zurkin1/PathWeigh/tree/master/v2 .
Full text 21,704 characters · extracted from preprint-html · click to expand
PathWeigh II: Graph Based Belief Propagation for Pathway Activity Analysis | bioRxiv /* */ /* */ <!-- <!-- /*! * yepnope1.5.4 * (c) WTFPL, GPLv2 */ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i (function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0];var j=d.createElement(s);var dl=l!='dataLayer'?'&l='+l:'';j.src='//www.googletagmanager.com/gtm.js?id='+i+dl;j.type='text/javascript';j.async=true;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-M677548'); Skip to main content Home About Submit ALERTS / RSS Search for this keyword Advanced Search New Results PathWeigh II: Graph Based Belief Propagation for Pathway Activity Analysis View ORCID Profile Dani Livne doi: https://doi.org/10.1101/2025.11.22.689915 Dani Livne 1 Tel Aviv , Israel Find this author on Google Scholar Find this author on PubMed Search for this author on this site ORCID record for Dani Livne For correspondence: dani.livne{at}yahoo.com Abstract Full Text Info/History Metrics Data/Code Preview PDF Abstract Pathway analysis is essential for understanding cellular phenotypes from gene expression data. However, existing methods struggle with feedback loops and fail to integrate gene-level evidence throughout pathway topology. We present PathWeigh II, an enhanced pathway analysis tool that employs graph decomposition and Gaussian-scaled belief propagation to model pathways as directed multi-graphs. Unlike previous approaches that average interaction activities, PathWeigh II propagates probabilistic beliefs through the network structure, naturally handling cyclic dependencies and combining observed expression data with topological inference. Using 357 curated pathways from KEGG and BioCarta, PathWeigh II provides biologically meaningful activity scores while maintaining computational efficiency. We demonstrate that PathWeigh II correctly converges on pathways with feedback loops where traditional methods fail and show how integrating internal gene evidence with propagated beliefs improves pathway characterization. PathWeigh II is open source and available at https://github.com/zurkin1/PathWeigh/tree/master/v2 . 1. Introduction Biological pathways represent networks of molecular interactions that govern cellular behavior. Pathway-based analysis of gene expression data enables researchers to move beyond individual gene changes to understand system-level phenotypes [ 1 , 2 ]. While differential expression at the gene level often lacks robustness, pathway analysis can provide stable signatures by aggregating signals across functionally related molecules [ 3 ]. CLIPPER [ 5 ] and Hipathia [ 12 ] also consider pathway topology but use signal propagation rather than probabilistic inference. SPIA [ 13 ] computes perturbation accumulation but struggles with cycles. TopoGSA [ 14 ] requires pathway linearization. Our previous work, PathWeigh [ 4 ], introduced a topology-aware method for pathway activity calculation using Up/Down Probability (UDP) values derived from fitted distributions. However, PathWeigh and similar approaches [ 5 , 6 ] share a fundamental limitation: they treat pathway interactions as independent units, computing activity through simple averaging or summation. This assumption breaks down when pathways contain feedback loops, mutual inhibition, or other cyclic dependencies that are ubiquitous in biological regulation [ 7 ]. Existing methods typically ignore gene expression evidence for pathway nodes, using only input data to drive the network. This discards the most valuable information, as expression changes in intermediate regulators often directly reflect pathway perturbations. Here we present PathWeigh II, which reformulates pathway activity calculation as probabilistic inference on directed multi-graph networks using the NetworkX graph library [ 15 ]. We employ belief updates to propagate information through the network bottom up, thereby incorporating both original expression data and inferred beliefs from neighboring nodes at each gene. PathWeigh II introduces several key improvements over the original implementation: (1) adoption of NetworkX as the core data structure for pathway representation, enabling efficient graph algorithms for activity propagation instead of averaging; (2) decomposition of pathways into weakly connected components for principled handling of disconnected subnetworks; ( Figure 1 .) (3) Gaussian scaling for interaction activity calculation, which penalizes inconsistency between input and output beliefs; and (4) significant code simplification resulting in improved maintainability and readability. Download figure Open in new tab Figure 1. Pathway decomposition example. (A) A pathway with clearly separable weakly connected components. (B) A densely connected pathway forming a single component. PathWeigh II builds upon the PathWeigh framework [ 4 ], introducing a graph-based architecture using NetworkX, for improved handling of complex pathway topologies. PathWeigh II: Handles arbitrary pathway topology through the network graph library Integrates gene expression evidence at all nodes, not just pathway inputs Provides principled uncertainty propagation via conditional probability distributions and Gaussian scaling Maintains computational efficiency suitable for genome-scale analysis 2. Methods 2.1 Overview PathWeigh II follows a two-stage pipeline: UDP Calculation : Fit probability distributions to gene expression data to obtain UDP values (probability of “Up” state) Network Inference : Construct pathway as directed multi graph network and apply Loopy Belief Propagation to compute final beliefs 2.2 UDP Calculation from Expression Data Following PathWeigh [ 4 ], we model gene expression distributions based on sequencing platform: RNA-seq data : Negative binomial distribution with parameters (r, p) estimated via maximum likelihood using BFGS optimization [ 9 ]: The UDP value for gene in sample is: where is the cumulative distribution function and are fitted parameters for gene across all samples. UDP values transform expression levels to probabilities, enabling comparison across genes with different expression scales. 2.3 Pathway as Directed Multi-Graph We represent each pathway as a directed multi-graph where: Nodes correspond to genes/proteins Directed edges encode interactions from pathway databases (KEGG, BioCarta) Edge Probability Distributions parameterize interaction effects Node Attributes store interaction type (activation/inhibition) This representation enables efficient graph algorithms for component decomposition and topological analysis. Unlike adjacency matrix representations, NetworkX multi-graphs naturally handle multiple interactions between the same gene pair. 2.4 Gaussian Scaling for Interaction Activity For an interaction from source genes P={ P 1 ,…, P n } to a target gene C , we define: where max (P) models the probability that at least one source gene successfully activates the target gene. The interaction model is biologically motivated: in signaling pathways, multiple redundant activators often converge on targets, and activation succeeds if any pathway is functional [ 7 ]. 2.5 Component Based Activity Propagation Biological pathways often contain disconnected subnetworks representing independent regulatory modules. We employ NetworkX weakly_connected_components decomposition to partition each pathway independent subgraphs. This decomposition is biologically motivated: disconnected components represent functionally independent modules that should contribute separately to overall pathway activity. Initialization : Interaction Update : For each interaction : Where gaussian_scaling (p, q) is np.exp(−(p − q)**2 / (2*σ**2)). Distance term: (p − q)**2 : Measures squared difference between p and q. Always positive. Larger when p and q are far apart. Scaling factor: exp(−(p−q) 2 /(2σ 2 )) : Returns 1.0 when p=q. Decreases exponentially as |p-q| increases. σ controls how quickly scaling drops off (default is 0.5), where σ ∈ [0,1] controls the balance between observed evidence (UDP) and propagated belief. Final value: p * scaling : When p=q: returns p (scaling=1). When p≠q: reduces p based on distance. Never increases above p. Component Update : Pathway Activity Score : 2.6 Implementation PathWeigh II is implemented in Python with parallel processing: UDP fitting : Multiprocessing across gene chunks Activity inference : ProcessPoolExecutor across samples Databases : 357 pathways (KEGG, BioCarta) Typical runtime: ~2-5 minutes for 100 samples × 20,000 genes on 8-core CPU. 3 Results 3.1 Comparison with PathWeigh and GSEA We compared PathWeigh II, GSEA and PathWeigh on 357 pathways using the same TCGA CRC dataset provided by DREAM Colorectal Cancer Subtyping Consortium (CRCSC) [ 16 ]. PathWeigh II produces activity scores that differ substantially from the original PathWeigh implementation (Pearson r = −0.03 across 186 matched pathways and 577 samples). This divergence is expected given the fundamental methodological changes: PathWeigh v1 computed activity by averaging interaction-level scores, whereas PathWeigh II employs Gaussian scaling that penalizes input-output inconsistency and aggregates at the component level. The low correlation indicates that PathWeigh II captures different aspects of pathway biology—specifically, the consistency between upstream regulators and downstream targets—rather than simply reproducing the original scores. Importantly, despite this divergence, PathWeigh II achieves superior clustering performance on the TCGA CRC benchmark ( Table 1 ), suggesting that the new scoring approach better reflects biologically meaningful pathway perturbations. View this table: View inline View popup Download powerpoint Table 1. summarizes clustering performance on the TCGA CRC dataset. We evaluated clustering performance using microsatellite instability (MSI) status as ground truth, which classifies CRC tumors into three groups: MSI-H (microsatellite instability-high, ~15% of cases, characterized by deficient mismatch repair and high mutation burden), MSS (microsatellite stable, ~80% of cases, with proficient mismatch repair), and MSI-L (microsatellite instability-low, ~5% of cases, an intermediate category). MSI status is clinically significant as it predicts response to immunotherapy and overall prognosis [ 18 ]. PathWeigh II consistently provided better accuracy scores. 4. Discussion PathWeigh II addresses fundamental limitations of previous pathway analysis methods by reformulating activity calculation as hierarchical network inference. The key innovations are: Integration of internal gene evidence : By blending observed UDP values with topologically propagated beliefs, PathWeigh II leverages both data-driven and knowledge-driven information. Our results show this hybrid approach outperforms pure propagation or pure observation. Probabilistic interpretation : Unlike scoring methods that produce arbitrary units, PathWeigh II activities represent probabilities, enabling direct biological interpretation and statistical testing. Principled handling of feedback loops : Graph partitioning eliminates the need for ad-hoc loop-breaking strategies. A substantial proportion of KEGG pathways contain regulatory cycles when converted to gene interaction networks. Bayerlová et al. [ 17 ] found that 130 out of 280 analyzed KEGG pathways (46%) contained cycles requiring removal for directed acyclic graph conversion, highlighting the importance of methods that can handle cyclic dependencies. Beyond algorithmic improvements, PathWeigh II represents a significant software engineering advancement. The adoption of NetworkX as the core data structure reduced code complexity by approximately 40% compared to the original implementation, while enabling access to a rich library of graph algorithms. The modular architecture separates UDP calculation, graph construction, and activity inference into independent components, facilitating testing and extension. Limitations and future work Current implementation supports RNA-seq only . Extension to microarray data (Gaussian mixture models) is straightforward but not yet implemented. Some parameters are fixed priors . Learning interaction strengths from data could improve accuracy but requires sufficient samples per pathway. Temporal dynamics are ignored . Dynamic networks could model time-series expression data. PathWeigh II maintains the practical advantages of PathWeigh—open source, extensible Python implementation, support for custom pathways—while providing rigorous treatment of pathway structure. The modest computational overhead (~1.5× runtime) is justified by improved biological validity, particularly for pathways with feedback regulation. 5. Conclusion PathWeigh II demonstrates that probabilistic network inference provides a principled framework for pathway activity analysis. By treating pathways as probabilistic graphical models and employing belief propagation, we overcome limitations of previous methods while maintaining computational efficiency. The integration of gene-level evidence throughout the network, rather than only at inputs, better captures pathway perturbations. We anticipate PathWeigh II will be valuable for systems biology applications requiring robust pathway characterization, particularly in cancer genomics and drug response prediction where regulatory feedback is prevalent. Availability Source code : https://github.com/zurkin1/PathWeigh/tree/master/v2 (MIT License) Requirements : Python 3.8+, pandas, numpy, scipy, scikit-learn, networkx Data : Test datasets and pathway database included in repository Acknowledgments This work builds upon research conducted during the author’s doctoral studies at The Mina & Everard Goodman Faculty of Life Sciences, Bar-Ilan University. Footnotes https://github.com/zurkin1/PathWeigh/tree/master/v2 References [1]. ↵ Khatri P , Sirota M , Butte AJ . Ten years of pathway analysis: current approaches and outstanding challenges . PLoS Comput Biol . 2012 ; 8 ( 2 ): e1002375 . OpenUrl CrossRef PubMed [2]. ↵ Subramanian A , et al. Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles . Proc Natl Acad Sci USA . 2005 ; 102 ( 43 ): 15545 – 50 . OpenUrl Abstract / FREE Full Text [3]. ↵ Ben-Hamo R , et al. Predicting and affecting response to cancer therapy based on pathway-level biomarkers . Nat Commun . 2020 ; 11 : 3296 . OpenUrl CrossRef PubMed [4]. ↵ Livne D , Efroni S. PathWeigh – Quantifying the Behavior of Biochemical Pathway Cascades . IWBBIO 2022, LNBI 13347:339-345 . [5]. ↵ Martini P , et al. Along signal paths: an empirical gene set approach exploiting pathway topology . Nucleic Acids Res . 2013 ; 41 ( 1 ): e19 . OpenUrl CrossRef PubMed [6]. ↵ Gao S , Wang X. TAPPA: topological analysis of pathway phenotype association . Bioinformatics . 2007 ; 23 ( 22 ): 3100 – 3102 . OpenUrl CrossRef PubMed Web of Science [7]. ↵ Karlebach G , Shamir R. Modeling and analysis of gene regulatory networks . Nat Rev Mol Cell Biol . 2008 ; 9 ( 10 ): 770 – 780 . OpenUrl CrossRef PubMed Web of Science [8]. Murphy KP , Weiss Y , Jordan MI . Loopy belief propagation for approximate inference: an empirical study . Proceedings of UAI . 1999 : 467 – 475 . [9]. ↵ Nocedal J , Wright SJ . Numerical Optimization . Springer , 2006 . [10]. Pearl J. Probabilistic Reasoning in Intelligent Systems: Networks of Plausible Inference . Morgan Kaufmann , 1988 . [11]. Schaefer CF , et al. PID: the Pathway Interaction Database . Nucleic Acids Res . 2009 ; 37 : D674 – D679 . OpenUrl CrossRef PubMed Web of Science [12]. ↵ Hidalgo MR , et al. High throughput estimation of functional cell activities reveals disease mechanisms and predicts relevant clinical outcomes . Oncotarget . 2017 ; 8 ( 3 ): 5160 – 5178 . OpenUrl CrossRef PubMed [13]. ↵ Tarca AL , et al. A novel signaling pathway impact analysis . Bioinformatics . 2009 ; 25 ( 1 ): 75 – 82 . OpenUrl CrossRef PubMed Web of Science [14]. ↵ Glaab E , et al. TopoGSA: network topological gene set analysis . Bioinformatics . 2010 ; 26 ( 9 ): 1271 – 1272 . OpenUrl CrossRef PubMed Web of Science [15]. ↵ Hagberg AA , Schult DA , Swart PJ . Exploring network structure, dynamics, and function using NetworkX . Proceedings of the 7th Python in Science Conference . 2008 : 11 – 15 [16]. ↵ https://www.synapse.org/Synapse:syn2623706/wiki/67246 [17]. ↵ Chanumolu SK , Albahrani M , Can H , Otu HH . KEGG2Net: Deducing gene interaction networks and acyclic graphs from KEGG pathways . EMBnet J . 2021 ; 26 : e949 . doi: 10.14806/ej.26.0.949 . Epub 2021 Mar 5. PMID: 33880340 ; PMCID: PMC8055051 . OpenUrl CrossRef PubMed [18]. ↵ Boland CR , Goel A. Microsatellite instability in colorectal cancer . Gastroenterology . 2010 ; 138 ( 6 ): 2073 – 2087 . Submitted to bioRxiv, [Date] OpenUrl CrossRef PubMed Web of Science View the discussion thread. Back to top Previous Next Posted November 26, 2025. Download PDF Data/Code Email Thank you for your interest in spreading the word about bioRxiv. NOTE: Your email address is requested solely to identify you as the sender of this article. Your Email * Your Name * Send To * Enter multiple addresses on separate lines or separate them with commas. You are going to email the following PathWeigh II: Graph Based Belief Propagation for Pathway Activity Analysis Message Subject (Your Name) has forwarded a page to you from bioRxiv Message Body (Your Name) thought you would like to see this page from the bioRxiv website. Your Personal Message CAPTCHA This question is for testing whether or not you are a human visitor and to prevent automated spam submissions. Share PathWeigh II: Graph Based Belief Propagation for Pathway Activity Analysis Dani Livne bioRxiv 2025.11.22.689915; doi: https://doi.org/10.1101/2025.11.22.689915 Share This Article: Copy Citation Tools PathWeigh II: Graph Based Belief Propagation for Pathway Activity Analysis Dani Livne bioRxiv 2025.11.22.689915; doi: https://doi.org/10.1101/2025.11.22.689915 Citation Manager Formats BibTeX Bookends EasyBib EndNote (tagged) EndNote 8 (xml) Medlars Mendeley Papers RefWorks Tagged Ref Manager RIS Zotero Tweet Widget Facebook Like Google Plus One Subject Area Bioinformatics Subject Areas All Articles Animal Behavior and Cognition (7635) Biochemistry (17691) Bioengineering (13892) Bioinformatics (41937) Biophysics (21452) Cancer Biology (18588) Cell Biology (25504) Clinical Trials (138) Developmental Biology (13378) Ecology (19899) Epidemiology (2067) Evolutionary Biology (24320) Genetics (15609) Genomics (22506) Immunology (17736) Microbiology (40394) Molecular Biology (17181) Neuroscience (88605) Paleontology (666) Pathology (2832) Pharmacology and Toxicology (4824) Physiology (7641) Plant Biology (15156) Scientific Communication and Education (2045) Synthetic Biology (4294) Systems Biology (9825) Zoology (2271)

Text is read by the "Ask this paper" AI Q&A widget below. Extraction quality varies by source — PMC NXML preserves structure cleanly, OA-HTML may include some navigation residue, and OA-PDF can have broken hyphenation. The publisher copy (via DOI) is the canonical version.

My notes (saved in your browser only)

Ask this paper AI returns verbatim quotes from the full text · source: preprint-html

Answers must be backed by verbatim quotes from this paper's full text. Hallucinated quotes are dropped automatically; if no verbatim passage answers the question, we say so. How this works

Citation neighborhood (no data yet)

We don't have any in-corpus citations linked to this paper yet. This is a recent paper (2025) — citers typically take a year or two to land, and the OpenAlex reference graph may still be filling in.

Source provenance

europepmc
last seen: 2026-05-20T01:45:00.602351+00:00
unpaywall
last seen: 2026-05-29T02:00:03.542394+00:00
License: CC-BY-4.0