Skip to main content

This is a preprint.

It has not yet been peer reviewed by a journal.

The National Library of Medicine is running a pilot to include preprints that result from research funded by NIH in PMC and PubMed.

bioRxiv logoLink to bioRxiv
[Preprint]. 2026 Oct 11:2026.05.26.727944. [Version 2] doi: 10.64898/2026.05.26.727944

MetworkPy: A Python Package for Graph- and Information-theoretic Investigation of Metabolic Networks

Braden T Griebel 1,2, Shuyi Ma 1,2,3,4,5,6,*
PMCID: PMC13692015  PMID: 42926402

Abstract

Background:

Metabolism plays an important role in physiology and disease. In silico Genome-Scale Metabolic Models (GSMMs) are useful for informing analysis of metabolism and contextualizing high-throughput molecular profiling data. Flux balance analysis (FBA) based approaches can use GSMMs to predict metabolic reaction flux states and condition-specific alterations, but most FBA methods are limited by: 1) needing metabolic objective functions that are difficult to define experimentally, and 2) confining comparisons to extrema of reaction flux distributions.

Results:

We introduce MetworkPy, a Python package that implements a flexible toolbox for objective-free graph- and information-theoretic analyses of GSMMs and flux distributions. MetworkPy includes methods to construct graph representations of GSMMs, to deconstruct GSMMs into topologically-aware gene sets that inform downstream bioinformatic analyses, and to assess shifts in flux distributions for groups of reactions. To demonstrate utility, we used MetworkPy to identify metabolic features perturbed by the transcription factor ArgR, a known regulator of arginine biosynthesis in Mycobacterium tuberculosis. MetworkPy successfully linked reaction flux shifts in ArgR’s transcriptome-constrained GSMM to arginine biosynthesis, which cannot be easily ascertained by FBA-based approaches.

Conclusions:

MetworkPy is a customization-friendly toolkit for topological- and flux sampling based- analyses of GSMMs. MetworkPy’s tools provide multiple complementary metabolic contextualization approaches for microbial or eukaryotic genes of interest, and MetworkPy’s architecture facilitates user-designed workflows.

Keywords: Genome-scale Metabolic Models, Graph Theory, Information Theory, Metabolic Modeling, Flux Balance Analysis, Flux Sampling

BACKGROUND

Metabolism plays an important role in a broad spectrum of cellular responses, influencing disease susceptibility, immunity, and responsiveness to treatment [1–7]. Therefore, elucidating the metabolic context of cellular states can reveal mechanisms and inform intervention. A popular strategy to assess the metabolic context of cellular states is enrichment analysis, which compares a gene set of interest (e.g. derived from -omic profiling) against reference sets. These reference gene sets defined by gene ontology (GO) terms [8, 9] or canonical pathway databases (e.g. KEGG [10], Reactome [11, 12]) can aid metabolic contextualization and cross-species comparisons. However, they can lack condition-specific granularity, and they can be limited in their ability to assess enrichment of gene sets that cross canonically defined pathways. Genome-Scale Metabolic Models (GSMMs), which are in-silico descriptions of the metabolic reactions of an organism, have been used to contextualize -omic datasets and simulate metabolic states of cellular systems in condition-specific ways [13–17].

Flux balance analysis (FBA) and other constraint-based optimization approaches can use GSMMs to simulate metabolic states following chemical, genetic, regulatory, or environmental perturbations [18–22]. Such analyses have aided studies into metabolic regulation and metabolic responses during disease and therapy [14, 23–27]. However, most FBA-based methods are restricted by: 1) assumptions of optimality, which necessitate metabolic objective functions that are difficult to define experimentally, and 2) limitations in the number of possible reaction states evaluated during simulation to flux extrema [13, 17, 28].

To circumvent the need to define metabolic objective functions, approaches have been developed to investigate the full space of achievable reaction fluxes within a defined GSMM. The range of possible fluxes can be analyzed with flux variability analysis [29], which identifies the minimal and maximal fluxes for each reaction. However, the minimal and maximal fluxes do not provide information on which solutions within this range are feasible, nor which fluxes or combinations of fluxes are more likely [17]. In contrast, flux sampling provides a distribution of solutions throughout the feasible flux space [17, 30, 31]. Although sampling offers the promise of more comprehensive analysis, most methods for assessing the generated flux distribution analyze the marginal distribution of a single reaction at a time [17, 32–34], which loses some of the available higher dimensional information.

GSMMs can also offer valuable insights into metabolism through its representations of interactions between metabolic reactions, genes, and metabolites. Graph-theoretic approaches have been applied to systematically assess the topological properties of these interactions [35]. Graph-based approaches have aided prediction of gene essentiality [36–38] and informed studies linking metabolism with regulation [23] and disease comorbidity [39]. Network topology has also enabled analysis of metabolic modularity, highlighting the organization of the metabolic network into subunits and revealing how these subunits interact [40–42].

Despite the utility of analyzing metabolic topology, there is still no consensus on how to construct a graph from a GSMM [35]. Approaches include reaction and metabolite connectivity graphs, as well as bipartite graphs with nodes representing both reactions and metabolites [23, 35, 43–45]. An additional challenge lies in dealing with currency or pool metabolites, such as adenosine triphosphate (ATP) or water (H2O), whose high connectivity may distort the topological properties of the graphs [35]. Approaches to mitigate these issues include removing highly connected metabolites [23, 46, 47], manual removal of metabolites from reactions where they act as carriers [42], automatic removal of currency metabolite pairs [48], and using flux weighting to mitigate the influence of these metabolites [45].

To empower topological and flux sampling-based analyses of GSMMs, we have developed the Python package MetworkPy. MetworkPy combines customizable methods for creating and analyzing network and subnetwork representations of GSMMs (Figure 1) with methods for generating and analyzing flux sampling distributions of reactions and pathways (Figure 2). MetworkPy further builds on the foundations of this toolkit with several analysis methods designed to contextualize gene sets within GSMMs; these analyses complement commonly used enrichment approaches. MetworkPy’s ability to create and evaluate a range of different graph and flux sampling representations of GSMMs not only fosters user-driven tailoring of analyses to suit custom needs, but also enhances robustness by enabling multiple alternative analysis representations to augment each other.

Figure 1. Overview of MetworkPy’s topology analysis pipeline.

Figure 1.

MetworkPy converts an input GSMM into a bipartite graph representation of stoichiometric connectivity featuring both reactions and metabolites (with optional weights). This bipartite network can be used to analyze metabolic topology or to identify metabolic subsets for downstream analysis. The bipartite network can be optionally projected onto only reactions or metabolites before executing downstream analysis. Created in BioRender. Griebel, B. (2027) https://BioRender.com/5sgzvxr.

Figure 2. Overview of Flux Sampling Divergence Analysis (FSDA).

Figure 2.

Two condition-specific metabolic models (generated by constraining a base GSMM with gene expression or other -omic data, or by imposing another model manipulation like a simulated knockout) are flux sampled. The resulting distributions of fluxes for reactions or groups of reactions are then compared using Kullback-Leibler or Jensen-Shannon divergence metrics. Created in BioRender. Griebel, B. (2027) https://BioRender.com/gcewf00.

IMPLEMENTATION

Package Overview

MetworkPy offers a flexible toolkit for creating and analyzing graph and subgraph representations of an input GSMM (Figure 1). These network representations are in the form of NetworkX Graphs (or DiGraphs), or SciPy sparse matrices (currently only the bipartite network). These networks can be deconstructed using MetworkPy into neighborhoods and metabolite subnetworks, and the genes, reactions, or metabolites represented in these subnetworks can be used as metabolism-informed reference sets for enrichment analysis or other downstream bioinformatic pipelines. MetworkPy uses these network deconstruction methods, along with divergence-based analysis of flux sampling distributions (Figure 2), to contextualize gene sets of interest within the GSMM.

MetworkPy accepts as input: one or more “target” gene sets of interest and a GSMM. The input target gene sets can be derived from a broad range of bioinformatic workflows, such as differential gene or protein expression analysis, post-translational modification identification, or mutation analysis. To enable condition-specific granularity of analysis outputs, MetworkPy includes an implementation of the iMAT method [18, 19] to constrain input GSMMs with transcriptomic data.

MetworkPy can be used as a library for software developed in Python, as part of gene set-oriented bioinformatic pipelines, or in an interactive Python environment (i.e. Jupyter or Marimo). Written in pure Python, MetworkPy can also be easily modified. A summary of methods and functions featured in MetworkPy is described in Tables S1 and S2 in Additional File 1. To illustrate how MetworkPy’s analyses can assess various metabolic features, we have applied MetworkPy’s main analysis workflows to a small simulation metabolic model (see Additional File 1 S2.1 for description of the model and Additional File 2 for analysis results).

Metabolic Connectivity Network Generation

To facilitate analyses that leverage metabolic topology, MetworkPy offers flexible methods for converting a GSMM into a graph representation (Figure 1). A GSMM is first converted into a stoichiometric connectivity graph, which we represent as a bipartite network with nodes representing both reactions and metabolites. Edges connect reactions to metabolites (and metabolites to reactions) if a metabolite participates in a reaction (See S2.2.1 and Figure S2 in Additional File 1, and Additional File 2). Representing the GSMM as a bipartite graph allows for independent weighting and directionality of edges between a reaction and its metabolites. This weighting is flexible, allowing for user-defined forward and reverse weights for each reaction. Weights can be assigned based on stoichiometric coefficients, input -omics measurements, fluxes simulated via parsimonious flux balance analysis (pFBA) [49], geometric flux balance analysis (gFBA) [50], or flux variability analysis (FVA) [29]. Reactions weights can optionally be multiplied by the metabolite stoichiometric coefficients, and the production and reaction weights can be reweighted by a user-designated function if desired. The graph creation methods of MetworkPy also include several strategies for handling currency and/or carrier metabolites to avoid distortion of the topological properties of the graph (See Additional File 1 S2.2.1).

Sometimes, it is desirable to work with a graph that includes only reaction or only metabolite nodes. MetworkPy includes methods for projecting the bipartite metabolic network onto reaction or metabolite nodes. These methods allow for a variety of projection algorithms that enable flexible handling of edge weights (see Additional File 1 S2.2.1). MetworkPy also includes helper functions to create these networks directly from the GSMM. The reaction connectivity network can be further converted into a gene connectivity network (where genes are connected if they are associated with the same, or neighboring, reactions) to enable topology-aware analyses directly centering metabolic genes.

If there are multiple groups of nodes of interest in one of these graph representations, MetworkPy can also facilitate the creation of a target set connectivity graph (inspired by [39]), where nodes represent target sets of nodes from the original graph and are connected if the node target sets neighbor each other in the original graph (see Additional File 1 S2.2.1).

All metabolic topology graphs are represented as NetworkX Graphs [51]. This enables calculation of established graph-theoretic properties with pre-existing tools. Key graph properties assessed include centrality and community detection [51, 52] (see Additional File 1 S2.3.1 and S3.3).

Network-centric Gene Enrichment Analysis

Examining activity of metabolic pathways or subnetworks increases analysis robustness, since consistent activity over a set of related reactions is less likely to arise by chance. The highly interconnected nature of metabolism means that analyzing canonically defined pathways as separate entities, as done in conventional pathway enrichment analyses, can obscure the relationships between them. To address this challenge, MetworkPy defines graph-theoretic subnetworks from stoichiometric connectivity graphs. MetworkPy’s topology-driven subnetworks can highlight changes in reaction sets that are proximally connected in the metabolic network at the genome scale, even if they are not conventionally represented as linked in canonically described pathways. MetworkPy’s graph-theoretic strategy therefore has the advantage of identifying emergent metabolic associations that might arise in non-model organisms or systems that might be missed with conventional pathway definitions.

MetworkPy implements two types of subnetworks: reaction neighborhoods (described in Additional File 1 S2.2.2) and metabolite subnetworks (similar to those used in [24], described in Additional File 1 S2.2.3). These subnetworks can be used to inform network overlap analyses described further below or exported as gene set inputs to other bioinformatic pipelines that accept a customized gene set input (e.g., GSEA [53], GSVA [54], etc.).

Reaction neighborhoods are sets of reactions (or associated genes) that are proximally connected in the stoichiometric connectivity graph. Previous work has shown that neighboring reactions or metabolites within the connectivity network are informative about metabolic alterations [43] and their consequences on disease physiology [39]. MetworkPy generalizes neighbors in the connectivity network to include reactions within a user-configurable distance. MetworkPy offers several methods of working with these neighborhoods, including iterators over node or gene neighborhoods in a graph, and higher-order functions for mapping a function over these neighborhoods (in parallel). Examples of the utility of these neighborhoods are analysis using the network density metric and fuzzy intersection methods, described below.

Metabolite subnetworks identify the reactions and associated genes in the GSMM that are required to synthesize, or which consume each metabolite. Metabolite subnetwork definitions facilitate direct interrogation of how perturbations throughout a GSMM might influence metabolite levels. Differential Producibility Analysis (DPA), developed by [24], uses metabolite synthesis networks to identify metabolic alterations in the bacterial pathogen Mycobacterium tuberculosis (Mtb) [24, 25]. MetworkPy identifies the reactions in metabolite synthesis networks in a way similar to DPA [24], and extends the functionality by also defining subnetworks of reactions and associated genes that consume each metabolite.

Assessing the overlap of multiple sets of target genes can highlight neighborhoods or subnetworks that are concomitantly impacted by these different targets. Though enrichment metrics can be used for overlap analysis, they underreport instances of overlap when there are many genes in the target sets outside the overlapping region. Overlaps can also be obscured if there are no exact matches between the gene sets of interest. To overcome these challenges, MetworkPy establishes a novel density metric for overlap analysis. Density represents the proportion of genes or reactions in a reaction neighborhood or metabolite subnetwork that are included in a target set of interest. Given that density is assessed in a particular subnetwork, it is not impacted by genes in other subnetworks; thus, overlap evaluation is not diluted by out-of-scope genes. Furthermore, density converts the gene set into a fuzzy [55] reaction set (MetworkPy also includes alternate approaches for converting a gene set into a fuzzy reaction set, see Additional File 1 S2.3.2). When combined with fuzzy intersection analysis methods (for which MetworkPy includes several options, including one based on robust rank aggregation [56]), density can identify instances of fuzzy overlap amongst multiple gene sets (see Additional File 1 S2.3.2). Although MetworkPy’s density metric is geared toward analyzing GSMMs, these MetworkPy methods can also be applied to other biological networks.

In addition to density and enrichment analysis, MetworkPy also offers methods for clustering target sets of nodes within the stoichiometric connectivity graphs. The distance between target node sets can be returned as a matrix to facilitate clustering with methods that accept precomputed distances (e.g. from scikit-learn [57]). MetworkPy includes methods for agglomerative hierarchical clustering of node groups in the metabolic network, which can optionally return a linkage matrix that can be used with SciPy [58] to create a dendrogram (see Additional File 1 S2.3.4).

Information-theoretic Reaction Flux Divergence Analysis

Comparative FBA methods that investigate metabolic perturbations in GSMMs often focus on a single or a small number of feasible solutions (as in FVA, pFBA, etc.). This can miss a large portion of the flux space. Metabolic reaction flux sampling can assess distributions of feasible reaction flux solutions more comprehensively. MetworkPy includes an implementation of the corner sampling approach [59] and can also leverage flux distributions calculated from other sampling approaches (e.g., artificial centering hit-and-run (ACHR) [60] and optGp [30]) to assess the entire feasible flux space.

Results of flux sampling simulations have typically been investigated using statistical tests comparing the marginal distributions of individual reactions [17, 33, 34]. While this approach can identify metabolic alterations, it is limited in two key respects: 1) this approach is designed to compare a single reaction’s marginal flux distribution at a time, so changes in groups of reactions cannot be evaluated; and 2) this approach is designed to assess changes in a specific summary statistic. An alternative strategy to address these limitations is to use a statistical distance measure, such as the Kullback-Leibler divergence [59].

MetworkPy expands the use of divergence for investigating the feasible flux space [59, 61, 62] by including implementations of Kullback-Leibler [63] and Jensen-Shannon [64] divergence measures, based on the approaches of [65, 66], which can handle higher-dimensional distributions (Figure 2, see Additional File 1 S2.4 for details). MetworkPy’s Flux Sampling Divergence Analysis (FSDA) offers two key advantages: 1) divergence can evaluate changes for sets of reactions, making it compatible with assessing changes in pathways, metabolic subnetworks, and/or user-configurable sets of reactions; and 2) divergence is sensitive to a wide range of changes to the distribution, including shifts in mean or variance.

RESULTS AND DISCUSSION

ArgR Target Topology Analysis

To demonstrate the utility of MetworkPy’s topology-aware metabolic contextualization of target gene sets we applied these analyses to assess the metabolic regulation of the Mycobacterium tuberculosis (Mtb) transcription factor ArgR (Rv1657), a known regulator of arginine biosynthesis in Mtb [67–69].

We started by using MetworkPy to identify metabolite subnetworks and reaction neighborhoods in the Mtb GSMM iEK1011_v2 [16] (Additional File 1 S3.2 for details). Then, we evaluated the enrichment of genes targeted by ArgR (defined here as genes differentially expressed in an Mtb strain that recombinantly overexpressed argR [69]) in these subnetworks. As expected, we found increased density and significant enrichment for the regulatory target genes of ArgR in the arginine metabolite subnetwork (Benjamini-Hochberg false discovery rate (FDR) adjusted [70] enrichment p = 1.86*10−11, ranked as most significant) and the reaction neighborhoods around reactions in arginine biosynthesis: acetylglutamate kinase (ACGK, FDR adjusted enrichment p = 9.1*10−4, ranked as most significant) and ornithine carbamyltransferase (OCBT, FDR adjusted enrichment p = 1.8*10−2, ranked as second most significant) (see Figure 3, Additional File 1 S3.2, and Additional File 3).

Figure 3. ArgR target density and arginine biosynthesis pathways.

Figure 3.

Each panel shows an Escher Map [72] of nitrogen and central carbon metabolism, marked with information on arginine biosynthesis and ArgR-associated reactions. Both large and small circles indicate metabolites, and the connecting curved or straight lines indicate reactions (see Additional File 1 Figure S11 for a version of the Escher Map that includes reaction and metabolite labels). The black triangles indicate the reactions associated with genes targeted by ArgR based on data from [69]. (A) Shows reactions (highlighted in purple) that are annotated in the iEK1011_v2 metabolic model as being part of the ‘Arginine and Proline Metabolism’ subsystem [16]. Reactions in the ‘Purine and Pyrimidine Biosynthesis’ subsystem are colored teal. Specific metabolites and pathways of interest are labeled: PYR – Purine and Pyrimidine Biosynthesis, TCA - Tricarboxylic acid cycle, Arg - Arginine, Asp - Aspartate, Glu - Glutamate, Gln - Glutamine. (B) KEGG’s ‘Arginine biosynthesis’ pathway [10] is highlighted in dark blue. (C) ArgR target density values calculated with MetworkPy (based on the aforementioned targets [69] defined by the black triangles) are mapped onto the Escher Map; the color and thickness of the reactions are both proportional to the density level.

Second, by applying MetworkPy’s density metric, we detected higher density levels for reaction neighborhoods proximate to arginine metabolism, including reactions associated with purine and pyrimidine metabolism (Figure 3). Notably, associations with purine and pyrimidine metabolism were not detectable using GSEA with KEGG pathways or reaction subsystems defined by iEK1011_v2 [16] (see Additional File 1 S3.2 and Additional File 3).

Third, we analyzed the topology of ArgR targets using MetworkPy’s subset centrality methods. These methods similarly indicated the relationship between ArgR and arginine biosynthesis-associated metabolites and reactions (see Additional File 1 S3.3 and Additional File 3).

As a demonstration of integrating the gene sets identified by MetworkPy with other bioinformatic analyses, we combined the identified metabolite synthesis subnetworks with Gene Set Variability Analysis (GSVA) [54] as implemented in the decoupler package [71]. Using the metabolite subnetworks as gene set inputs to GSVA, we analyzed the transcriptomes elicited in the aforementioned Mtb strain that recombinantly overexpressed argR [69]. This approach identified arginine and closely related metabolites (e.g., ornithine) as the most altered upon ArgR overexpression (see Additional File 1 S3.2 and Additional File 3).

Gene Knock-out Divergence

A powerful application of MetworkPy’s FSDA is its ability to quantify network-level metabolic flux impacts of disrupting either individual or multiple metabolic genes (defined by user input or molecular profiling datasets). To demonstrate this, we examined the flux divergence in metabolite synthesis networks for all single gene knockouts in the iEK1011_v2 model of Mtb. Knockout simulations of essential genes (profiled by [73]; data retrieved from [74]) elicited significant divergence in the biomass reaction (Mann-Whitney U-test p = 4.5*10−66). Further, the divergence of biomass reaction is also significantly correlated with the Vulnerability Index of [74] (Pearson R = −0.61; p = 1.69*10−103). Using the divergence of the biomass, gene essentiality could be predicted with an AUC-ROC = 0.84, virtually identical to the AUC-ROC achieved by the traditional FBA optimal growth analysis (AUC-ROC = 0.84).

MetworkPy’s FSDA approach can yield information on more than just the biomass reaction. FSDA can also be used to evaluate impacts on both individual reactions and pathways, reaction neighborhoods, and/or metabolite production/consumption outcomes. For example, MetworkPy showed that genes targeted by ArgR caused significantly higher divergence values in arginine biosynthesis following knockout than those not targeted by ArgR (FDR adjusted Mann-Whitney U-test p = 2.23*10−6; see Additional File 1 S3.1 and Additional File 3).

Condition-specific GSMM Divergence

When paired with condition-specific GSMMs (such as models defined by gene expression patterns profiled under different experimental conditions), MetworkPy’s FSDA highlights and ranks reactions, pathways, reaction neighborhoods, or metabolite subnetworks with significantly altered flux distributions between the conditional models. To demonstrate utility, we compared the metabolic consequences of overexpressing ArgR relative to overexpressing each of the other Mtb TFs. We based this analysis on gene expression data from [69], generated for a library of Mtb strains recombinantly engineered to overexpress TFs (here referred to as TFOE strains). We used MetworkPy’s implementation of iMAT [18, 19] (see Additional File 1 S2.5) to generate condition-specific GSMMs for each TFOE strain, and to generate a reference GSMM using the median expression across all measured TFOE strains. We evaluated the divergence between each TFOE-specific GSMM and the median model for all individual reactions, metabolite synthesis subnetworks, model subsystems, and KEGG pathways. The divergence values were converted into z-scores for each network by normalizing across the TFs. For ArgR, the most perturbed metabolite synthesis network is ornithine, a metabolic precursor of arginine. Additionally, of the top 10 most perturbed reactions, 7 are in the “Arginine and Proline Metabolism” subsystem of the iEK1011_v2 model, with the other 3 being in the closely related “Alanine, Aspartate, and Glutamate Metabolism” subsystem.

We also combined the unnormalized divergence values with the neighborhood enrichment measures using Robust Rank Aggregation (RRA)[56]. We found that of the top 10 ranked reactions, 6 were in “Arginine and Proline metabolism”, and another 3 were in the closely related “Alanine, Aspartate, and Glutamate Metabolism” (see Additional File 1 S3.5 for more details).

In contrast, in comparing the pFBA-simulated fluxes generated from the ArgR iMAT model relative to the pFBA fluxes [49] from the median iMAT model, the top perturbed reactions are associated with the “Transport”, “Oxidative Phosphorylation”, “Redox Metabolism”, “Extracellular Exchange”, and “Purine and Pyrimidine Biosynthesis” subsystems (see Additional File 1 S3.4 and Additional File 3). We further compared alternative flux sampling-based approaches, evaluating differences in flux samples taken from the median iMAT model versus those taken from the ArgR iMAT model. We compared the marginal distributions for the reactions using several statistical tests (Student’s t-test, Mann–Whitney U test, Kolmogorov–Smirnov test, Kruskal–Wallis test). Though these tests were able to identify perturbations in reaction in the arginine biosynthesis pathway, none were able to differentiate these arginine reactions from reactions in the rest of metabolism, ranging from ‘Glycolysis/Gluconeogenesis’ to ‘Nucleotide Salvage Pathway’ (see Additional File 1 S3.4, and Additional File 3).

Software Comparison

There are a variety of other applications and libraries that overlap in functionality with subsets of MetworkPy’s utilities. In our literature review, we have found three classes of analyses that have overlap: 1) metabolic topology analysis, 2) flux sampling analysis, and 3) metabolite subnetwork analysis. We will describe comparisons against each class in the following sections. Overall, we find that MetworkPy brings together and generalizes diverse analysis approaches, providing a conveniently integrated library.

Metabolic topology analysis

The topological properties of metabolic networks have been analyzed in a variety of other studies (e.g., [36–38, 40, 42–47, 75–80]). However, in many cases the code for generating and analyzing the metabolic graph from the GSMM is not always available [36–38, 40, 43, 47, 75–77], or is deprecated [46, 78], or the method of constructing the metabolic network is specific to the analysis pipeline being developed [42, 44, 45, 79, 80].

Fluxer [81] and MetExplore [82, 83] are web applications that can be used to visualize and explore metabolic networks. Fluxer and MetExplore are graphical user interface (GUI) tools. GUIs simplify usage; however, GUIs can restrict flexibility and make automation and integration as part of a bioinformatic pipeline more challenging. MetworkPy focuses on usage as a software library, allowing for more flexibility in constructing graph representations from GSMMs, and simpler integration with pre-existing Python graph analysis tools (via NetworkX and SciPy). MetworkPy also offers additional tools for analyzing gene sets and building topologically-aware analysis approaches.

The MetExplore web app is based on a Java library called met4j [84]. Both MetworkPy and met4j can be used to construct and analyze metabolic networks in their respective software ecosystems. MetworkPy includes additional topological analysis features not available in met4j. These include density, neighborhood enrichment, and methods for analyzing multiple target sets (e.g. clustering, fuzzy overlap, and target set networks). In addition, MetworkPy includes flux sampling analysis tools not available in met4j.

An approach similar to network neighborhoods MetworkPy implements is used by [43] in identifying “reporter metabolites.” MetworkPy includes methods for creating neighborhood-based analyses that generalize neighborhood definitions by allowing user-selected radii and usage on weighted graphs.

Flux sampling analysis

There are several packages available for performing flux sampling using variations of the hit-and-run algorithm, including: COBRA [85], COBRApy [86], LooplessFluxSampler [87] and dingo [88]. Additionally, code is available for the corner sampling performed in [59]. MetworkPy includes a corner-based sampler that is easier to use for alternate analyses than is currently available from [59]. Further, MetworkPy includes tools for analyzing flux samples (obtained from any sampling approach) not available in the other packages. Among studies that analyze the results of flux sampling, they have generally only compared the marginals for single reactions [17, 33, 34, 59, 61, 62, 89], including those that use the Kullback-Leibler divergence [59, 61, 62, 89]. MetworkPy’s implementation of the Kullback-Leibler and Jensen-Shannon divergence metrics uses a nearest-neighbor based approach (based on [65, 66]), which can generalize to higher dimensions. Importantly, MetworkPy’s implementation enables direct comparison of groups of reactions via FSDA.

Metabolite subnetwork analysis

Previous studies have defined metabolite synthesis [24, 25, 90] and consumption [90] subnetworks to investigate metabolic perturbations, primarily to extract metabolic data from differential gene expression data. The identified metabolite networks from DPA [24, 25] (called producibility plots) include all reactions required to produce a particular metabolite, while MetPaths [90] are local, including only reactions which are proximate to the metabolite. MetworkPy defines the metabolites subnetworks globally, similar to [24, 25], and generalizes the producibility plots to allow for weighting with pFBA [49] or gFBA [50]. MetworkPy also can identify reactions and their associated genes that consume a given metabolite or its products. The code used to generate the synthesis networks in [24, 25] is not available, and the code for creating the MetPath [90] metabolite subnetworks is currently only available as a MATLAB toolbox. The metabolite networks were used with differential expression data. In the studies [24, 25], the networks were used in rank product tests, while in [90], the networks were used to calculate pathway scores based on weighted averages of gene expression fold-change values. MetworkPy’s metabolite networks can be used for these types of analysis as well, or with enrichment tests, or tests with other bioinformatic pipelines that accept a customized gene set input (e.g., GSEA [53], GSVA [54], etc.).

CONCLUSION

MetworkPy is a toolkit for genome-scale metabolic contextualization of gene sets of interest without requiring optimality assumptions. By implementing complementary topology and flux sampling divergence analyses of GSMMs, MetworkPy robustly and specifically highlights reactions, pathways, and metabolic subnetworks proximal to input gene sets. MetworkPy also includes flexible, generalizable methods for creating, deconstructing, and analyzing graph representations of GSMMs to enable customizable topology-aware analysis pipelines.

MetworkPy’s objective-independent approach makes it useful for investigating a broad range of bacterial and eukaryotic systems. Moreover, MetworkPy delivers analyses that are both descriptive (identifying reactions, pathways, neighborhoods, and metabolite subnetworks that are affected by user-defined gene sets or input molecular profiling datasets) and anticipatory (predicting genetic or chemical perturbations with desired metabolic shifts with flux divergence analysis). MetworkPy analyses complement other FBA and pathway enrichment approaches to facilitate multi-level metabolism-centric hypothesis generation for both characterization and interventional applications.

Supplementary Material

Supplement 1
media-1.pdf (2.1MB, pdf)
Supplement 2
media-2.xlsx (123.1KB, xlsx)
Supplement 3
media-3.xlsx (35.8MB, xlsx)

ADDITIONAL FILES

Additional File 1 (pdf): More detailed description of methods and tools available in MetworkPy

Additional File 2 (xlsx): Data related to the analyses performed on the small simulation metabolic model

Additional File 3 (xlsx): Data related to the analysis of the transcription factors of Mycobacterium tuberculosis

Acknowledgements

We gratefully acknowledge Dr. Sascha Schäuble, Dr. Jason Yang, and Mr. Ethan Bustad, for helpful discussions.

Funding

This work was supported by the National Institutes of Health [DP2AI164249, R01AI146194, R01AI150826, R01AI201771, U19AI162598] and the W. M. Keck Foundation.

ABBREVIATIONS

ACHR

artificial centering hit-and-run

ACGK

Acetylglutamate Kinase

ATP

Adenosine triphosphate

Arg

Arginine

Asp

Aspartate

AUC-ROC

Area under the receiver operating characteristic curve

DPA

Differential Producibility Analysis

FBA

Flux Balance Analysis

FSDA

Flux Sampling Divergence Analysis

FDR

False Discovery Rate

FVA

Flux Variability Analysis

Glu

Glutamate

Gln

Glutamine

GO

Gene ontology

GSMM

Genome-scale metabolic model

GSVA

Gene Set Variability Analysis

GUI

Graphical User Interface

H2O

water

iMAT

Integrative Metabolic Analysis Tool

Mtb

Mycobacterium tuberculosis

OCBT

Ornithine Carbamyltransferase

optGP

Optimized General Parallel Sampler

pFBA

Parsimonious Flux Balance Analysis

PYR

Purine and Pyrimidine Biosynthesis

RRA

Robust Rank Aggregation

TCA

Tricarboxylic acid cycle

TF

Transcription Factor

TFOE

Mtb strains recombinantly engineered to overexpress a transcription factor

Funding Statement

This work was supported by the National Institutes of Health [DP2AI164249, R01AI146194, R01AI150826, R01AI201771, U19AI162598] and the W. M. Keck Foundation.

Footnotes

AVAILABILITY AND REQUIREMENTS

Project name: MetworkPy

Project home page: https://github.com/Ma-Lab-Seattle-Childrens-CGIDR/metworkpy

Operating system(s): Platform independent

Programming languages: Python

Other requirements: Python 3.10 or higher, a compatible solver (CPLEX, Gurobi, GLPK, HiGHS, OSQP)

License: MIT

Any restrictions to use by non-academics: None

Competing interests

The authors declare that they have no competing interests

Availability of data and materials

MetworkPy is an open source Python package, with source code available at https://github.com/Ma-Lab-Seattle-Childrens-CGIDR/metworkpy, and can be installed from the Python Package Index (PyPI) using pip. Code used for generating the results in this paper can be found at https://github.com/Ma-Lab-Seattle-Childrens-CGIDR/metworkpy_application_note. Documentation for MetworkPy is available at https://metworkpy.readthedocs.io/en/latest/. All data associated with this study are in additional files.

REFERENCES

  • 1.Yin F. Lipid metabolism and Alzheimer’s disease: clinical evidence, mechanistic link and therapeutic promise. FEBS J. 2023;290:1420–53. 10.1111/febs.16344. [DOI] [Google Scholar]
  • 2.Halma MTJ, Tuszynski JA, Marik PE. Cancer Metabolism as a Therapeutic Target and Review of Interventions. Nutrients. 2023;15:4245. 10.3390/nu15194245. [DOI] [Google Scholar]
  • 3.Stokes JM, Lopatkin AJ, Lobritz MA, Collins JJ. Bacterial Metabolism and Antibiotic Efficacy. Cell Metab. 2019;30:251–9. 10.1016/j.cmet.2019.06.009. [DOI] [Google Scholar]
  • 4.Hobbs JK, Boraston AB. (p)ppGpp and the Stringent Response: An Emerging Threat to Antibiotic Therapy. ACS Infect Dis. 2019;5:1505–17. 10.1021/acsinfecdis.9b00204. [DOI] [Google Scholar]
  • 5.Eisenreich W, Rudel T, Heesemann J, Goebel W. Link Between Antibiotic Persistence and Antibiotic Resistance in Bacterial Pathogens. Frontiers in Cellular and Infection Microbiology. 2022;12. [Google Scholar]
  • 6.Harms A, Maisonneuve E, Gerdes K. Mechanisms of bacterial persistence during stress and antibiotic exposure. Science. 2016;354:aaf4268. 10.1126/science.aaf4268. [DOI] [Google Scholar]
  • 7.Singha B, Murmu S, Nair T, Rawat RS, Sharma AK, Soni V. Metabolic Rewiring of Mycobacterium tuberculosis upon Drug Treatment and Antibiotics Resistance. Metabolites. 2024;14:63. 10.3390/metabo14010063. [DOI] [Google Scholar]
  • 8.Ashburner M, Ball CA, Blake JA, Botstein D, Butler H, Cherry JM, et al. Gene Ontology: tool for the unification of biology. Nat Genet. 2000;25:25–9. 10.1038/75556. [DOI] [Google Scholar]
  • 9.The Gene Ontology Consortium. The Gene Ontology knowledgebase in 2026. Nucleic Acids Res. 2026;54:D1779–92. 10.1093/nar/gkaf1292. [DOI] [Google Scholar]
  • 10.Kanehisa M, Goto S. KEGG: Kyoto Encyclopedia of Genes and Genomes. Nucleic Acids Res. 2000;28:27–30. 10.1093/nar/28.1.27. [DOI] [Google Scholar]
  • 11.Jassal B, Matthews L, Viteri G, Gong C, Lorente P, Fabregat A, et al. The reactome pathway knowledgebase. Nucleic Acids Res. 2020;48:D498–503. 10.1093/nar/gkz1031. [DOI] [Google Scholar]
  • 12.Wu G, Haw R. Functional Interaction Network Construction and Analysis for Disease Discovery. Methods Mol Biol. 2017;1558:235–53. 10.1007/978-1-4939-6783-4_11. [DOI] [Google Scholar]
  • 13.Orth JD, Thiele I, Palsson BØ. What is flux balance analysis? Nat Biotechnol. 2010;28:245–8. 10.1038/nbt.1614. [DOI] [Google Scholar]
  • 14.Kavvas ES, Seif Y, Yurkovich JT, Norsigian C, Poudel S, Greenwald WW, et al. Updated and standardized genome-scale reconstruction of Mycobacterium tuberculosis H37Rv, iEK1011, simulates flux states indicative of physiological conditions. BMC Systems Biology. 2018;12:25. 10.1186/s12918-018-0557-y. [DOI] [Google Scholar]
  • 15.Robinson JL, Kocabaş P, Wang H, Cholley P-E, Cook D, Nilsson A, et al. An atlas of human metabolism. Sci Signal. 2020;13:eaaz1482. 10.1126/scisignal.aaz1482. [DOI] [Google Scholar]
  • 16.López-Agudelo VA, Mendum TA, Laing E, Wu H, Baena A, Barrera LF, et al. A systematic evaluation of Mycobacterium tuberculosis Genome-Scale Metabolic Networks. PLoS Comput Biol. 2020;16:e1007533. 10.1371/journal.pcbi.1007533. [DOI] [Google Scholar]
  • 17.Herrmann HA, Dyson BC, Vass L, Johnson GN, Schwartz J-M. Flux sampling is a powerful tool to study metabolism under changing environmental conditions. NPJ Syst Biol Appl. 2019;5:32. 10.1038/s41540-019-0109-0. [DOI] [Google Scholar]
  • 18.Zur H, Ruppin E, Shlomi T. iMAT: an integrative metabolic analysis tool. Bioinformatics. 2010;26:3140–2. 10.1093/bioinformatics/btq602. [DOI] [Google Scholar]
  • 19.Shlomi T, Cabili MN, Herrgård MJ, Palsson BØ, Ruppin E. Network-based prediction of human tissue-specific metabolism. Nat Biotechnol. 2008;26:1003–10. 10.1038/nbt.1487. [DOI] [Google Scholar]
  • 20.Becker SA, Palsson BO. Context-Specific Metabolic Networks Are Consistent with Experiments. PLoS Comput Biol. 2008;4:e1000082. 10.1371/journal.pcbi.1000082. [DOI] [Google Scholar]
  • 21.Gu C, Kim GB, Kim WJ, Kim HU, Lee SY. Current status and applications of genome-scale metabolic models. Genome Biol. 2019;20:121. 10.1186/s13059-019-1730-3. [DOI] [Google Scholar]
  • 22.Chandrasekaran S, Price ND. Probabilistic integrative modeling of genome-scale metabolic and regulatory networks in Escherichia coli and Mycobacterium tuberculosis. Proc Natl Acad Sci USA. 2010;107:17845–50. 10.1073/pnas.1005139107. [DOI] [Google Scholar]
  • 23.Smith K, Shen F, Lee HJ, Chandrasekaran S. Metabolic signatures of regulation by phosphorylation and acetylation. iScience. 2022;25:103730. 10.1016/j.isci.2021.103730. [DOI] [Google Scholar]
  • 24.Bonde BK, Beste DJV, Laing E, Kierzek AM, McFadden J. Differential Producibility Analysis (DPA) of Transcriptomic Data with Metabolic Networks: Deconstructing the Metabolic Response of M. tuberculosis. PLoS Comput Biol. 2011;7:e1002060. 10.1371/journal.pcbi.1002060. [DOI] [Google Scholar]
  • 25.Xu Y, Banerjee R, Kasibhatla S, McFadden J, Joshi R, Borah Slater K. Differential producibility analysis reveals drug-associated carbon and nitrogen metabolite expressions in Mycobacterium tuberculosis. J Biol Chem. 2025;301:108288. 10.1016/j.jbc.2025.108288. [DOI] [Google Scholar]
  • 26.Chung CH, Chandrasekaran S. A flux-based machine learning model to simulate the impact of pathogen metabolic heterogeneity on drug interactions. PNAS Nexus. 2022;1:pgac132. 10.1093/pnasnexus/pgac132. [DOI] [Google Scholar]
  • 27.Yang JH, Wright SN, Hamblin M, McCloskey D, Alcantar MA, Schrübbers L, et al. A White-Box Machine Learning Approach for Revealing Antibiotic Mechanisms of Action. Cell. 2019;177:1649–1661.e9. 10.1016/j.cell.2019.04.016. [DOI] [Google Scholar]
  • 28.Segrè D, Vitkup D, Church GM. Analysis of optimality in natural and perturbed metabolic networks. Proc Natl Acad Sci U S A. 2002;99:15112–7. 10.1073/pnas.232349399. [DOI] [Google Scholar]
  • 29.Gudmundsson S, Thiele I. Computationally efficient flux variability analysis. BMC Bioinformatics. 2010;11:489. 10.1186/1471-2105-11-489. [DOI] [Google Scholar]
  • 30.Megchelenbrink W, Huynen M, Marchiori E. optGpSampler: An Improved Tool for Uniformly Sampling the Solution-Space of Genome-Scale Metabolic Networks. PLoS One. 2014;9:e86587. 10.1371/journal.pone.0086587. [DOI] [Google Scholar]
  • 31.Haraldsdóttir HS, Cousins B, Thiele I, Fleming RMT, Vempala S. CHRR: coordinate hit- and-run with rounding for uniform sampling of constraint-based models. Bioinformatics. 2017;33:1741–3. 10.1093/bioinformatics/btx052. [DOI] [Google Scholar]
  • 32.Kuriya Y, Murata M, Yamamoto M, Watanabe N, Araki M. Prediction of Metabolic Flux Distribution by Flux Sampling: As a Case Study, Acetate Production from Glucose in Escherichia coli. Bioengineering (Basel). 2023;10:636. 10.3390/bioengineering10060636. [DOI] [Google Scholar]
  • 33.Meeson KE, Watson J, Rosser S, Hawke E, Pitt A, Moses T, et al. Flux Sampling Suggests Metabolic Signatures of High Antibody-Producing CHO Cells. Biotechnology and Bioengineering. 2025;122:1898–913. 10.1002/bit.28982. [DOI] [Google Scholar]
  • 34.van Rosmalen RP, Moreno-Paz S, Duman-Özdamar ZE, Suarez-Diez M. CFSA: Comparative flux sampling analysis as a guide for strain design. Metab Eng Commun. 2024;19:e00244. 10.1016/j.mec.2024.e00244. [DOI] [Google Scholar]
  • 35.Dusad V, Thiel D, Barahona M, Keun HC, Oyarzún DA. Opportunities at the Interface of Network Science and Metabolic Modeling. Front Bioeng Biotechnol. 2021;8. 10.3389/fbioe.2020.591049. [DOI] [Google Scholar]
  • 36.Jeong H, Mason SP, Barabási A-L, Oltvai ZN. Lethality and centrality in protein networks. Nature. 2001;411:41–2. 10.1038/35075138. [DOI] [Google Scholar]
  • 37.Plaimas K, Mallm J-P, Oswald M, Svara F, Sourjik V, Eils R, et al. Machine learning based analyses on metabolic networks supports high-throughput knockout screens. BMC Syst Biol. 2008;2:67. 10.1186/1752-0509-2-67. [DOI] [Google Scholar]
  • 38.Plaimas K, Eils R, König R. Identifying essential genes in bacterial metabolic networks with machine learning methods. BMC Syst Biol. 2010;4:56. 10.1186/1752-0509-4-56. [DOI] [Google Scholar]
  • 39.Lee D-S, Park J, Kay KA, Christakis NA, Oltvai ZN, Barabási A-L. The implications of human metabolic network topology for disease comorbidity. Proceedings of the National Academy of Sciences. 2008;105:9880–5. 10.1073/pnas.0802208105. [DOI] [Google Scholar]
  • 40.Ma H-W, Zhao X-M, Yuan Y-J, Zeng A-P. Decomposition of metabolic network into functional modules based on the global connectivity structure of reaction graph. Bioinformatics. 2004;20:1870–6. 10.1093/bioinformatics/bth167. [DOI] [Google Scholar]
  • 41.Zhao J, Ding G-H, Tao L, Yu H, Yu Z-H, Luo J-H, et al. Modular co-evolution of metabolic networks. BMC Bioinformatics. 2007;8:311. 10.1186/1471-2105-8-311. [DOI] [Google Scholar]
  • 42.Martínez VS, Saa PA, Jooste J, Tiwari K, Quek L-E, Nielsen LK. The topology of genome-scale metabolic reconstructions unravels independent modules and high network flexibility. PLOS Computational Biology. 2022;18:e1010203. 10.1371/journal.pcbi.1010203. [DOI] [Google Scholar]
  • 43.Patil KR, Nielsen J. Uncovering transcriptional regulation of metabolism by using metabolic network topology. Proceedings of the National Academy of Sciences. 2005;102:2685–9. 10.1073/pnas.0406811102. [DOI] [Google Scholar]
  • 44.Yang Z, Tamura T. GraphGDel: Constructing and Learning Graph Representations of Genome-Scale Metabolic Models for Growth-Coupled Gene Deletion Prediction. 2026. 10.48550/arXiv.2504.06316. [DOI] [Google Scholar]
  • 45.Beguerisse-Díaz M, Bosque G, Oyarzún D, Picó J, Barahona M. Flux-dependent graphs for metabolic networks. npj Syst Biol Appl. 2018;4:32. 10.1038/s41540-018-0067-y. [DOI] [Google Scholar]
  • 46.Ma H, Zeng A-P. Reconstruction of metabolic networks from genome data and analysis of their global structure for various organisms. Bioinformatics. 2003;19:270–7. 10.1093/bioinformatics/19.2.270. [DOI] [Google Scholar]
  • 47.Gerlee P, Lizana L, Sneppen K. Pathway identification by network pruning in the metabolic network of Escherichia coli. Bioinformatics. 2009;25:3282–8. 10.1093/bioinformatics/btp575. [DOI] [Google Scholar]
  • 48.Gao Y, Yuan Q, Yang X, Mao Z, Yu W, Liu H, et al. [A graph-theory-based method for processing of currency metabolites in metabolic networks]. Sheng Wu Gong Cheng Xue Bao. 2022;38:1554–64. 10.13345/j.cjb.210410. [DOI] [Google Scholar]
  • 49.Lewis NE, Hixson KK, Conrad TM, Lerman JA, Charusanti P, Polpitiya AD, et al. Omic data from evolved E. coli are consistent with computed optimal growth from genome-scale models. Mol Syst Biol. 2010;6:MSB201047. 10.1038/msb.2010.47. [DOI] [Google Scholar]
  • 50.Smallbone K, Simeonidis E. Flux balance analysis: a geometric perspective. J Theor Biol. 2009;258:311–5. 10.1016/j.jtbi.2009.01.027. [DOI] [Google Scholar]
  • 51.Hagberg AA, Schult DA, Swart PJ. Exploring Network Structure, Dynamics, and Function using NetworkX. In: Varoquaux G, Vaught T, Millman J, editors. Proceedings of the 7th Python in Science Conference. Pasadena, CA USA; 2008. p. 11–5. [Google Scholar]
  • 52.Harris J, Hirst JL, Mossinghoff M. Combinatorics and Graph Theory. New York, NY: Springer New York; 2008. 10.1007/978-0-387-79711-3. [DOI] [Google Scholar]
  • 53.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. Proceedings of the National Academy of Sciences. 2005;102:15545–50. 10.1073/pnas.0506580102. [DOI] [Google Scholar]
  • 54.Hänzelmann S, Castelo R, Guinney J. GSVA: gene set variation analysis for microarray and RNA-Seq data. BMC Bioinformatics. 2013;14:7. 10.1186/1471-2105-14-7. [DOI] [Google Scholar]
  • 55.Zadeh LA. Fuzzy sets. Information and Control. 1965;8:338–53. 10.1016/S0019-9958(65)90241-X. [DOI] [Google Scholar]
  • 56.Kolde R, Laur S, Adler P, Vilo J. Robust rank aggregation for gene list integration and meta-analysis. Bioinformatics. 2012;28:573–80. 10.1093/bioinformatics/btr709. [DOI] [Google Scholar]
  • 57.Pedregosa F, Varoquaux G, Gramfort A, Michel V, Thirion B, Grisel O, et al. Scikit-learn: Machine Learning in Python. Journal of Machine Learning Research. 2011;12:2825–30. [Google Scholar]
  • 58.Virtanen P, Gommers R, Oliphant TE, Haberland M, Reddy T, Cournapeau D, et al. SciPy 1.0: fundamental algorithms for scientific computing in Python. Nat Methods. 2020;17:261–72. 10.1038/s41592-019-0686-2. [DOI] [Google Scholar]
  • 59.Galuzzi BG, Milazzo L, Damiani C. Adjusting for false discoveries in constraint-based differential metabolic flux analysis. Journal of Biomedical Informatics. 2024;150:104597. 10.1016/j.jbi.2024.104597. [DOI] [Google Scholar]
  • 60.Kaufman DE, Smith RL. Direction Choice for Accelerated Convergence in Hit-and-Run Sampling. Operations Research. 1998;46:84–95. 10.1287/opre.46.1.84. [DOI] [Google Scholar]
  • 61.Martino DD, Mori M, Parisi V. Uniform Sampling of Steady States in Metabolic Networks: Heterogeneous Scales and Rounding. PLOS ONE. 2015;10:e0122670. 10.1371/journal.pone.0122670. [DOI] [Google Scholar]
  • 62.Fallahi S, Skaug HJ, Alendal G. A comparison of Monte Carlo sampling methods for metabolic network models. PLOS ONE. 2020;15:e0235393. 10.1371/journal.pone.0235393. [DOI] [Google Scholar]
  • 63.Kullback S, Leibler RA. On Information and Sufficiency. The Annals of Mathematical Statistics. 1951;22:79–86. 10.1214/aoms/1177729694. [DOI] [Google Scholar]
  • 64.Lin J. Divergence measures based on the Shannon entropy. IEEE Transactions on Information Theory. 1991;37:145–51. 10.1109/18.61115. [DOI] [Google Scholar]
  • 65.Wang Q, Kulkarni SR, Verdu S. Divergence Estimation for Multidimensional Densities Via k-Nearest-Neighbor Distances. IEEE Trans Inform Theory. 2009;55:2392–405. 10.1109/TIT.2009.2016060. [DOI] [Google Scholar]
  • 66.Ross BC. Mutual Information between Discrete and Continuous Data Sets. PLoS One. 2014;9:e87357. 10.1371/journal.pone.0087357. [DOI] [Google Scholar]
  • 67.Cherney LT, Cherney MM, Garen CR, James MNG. The structure of the arginine repressor from Mycobacterium tuberculosis bound with its DNA operator and Co-repressor, L-arginine. J Mol Biol. 2009;388:85–97. 10.1016/j.jmb.2009.02.053. [DOI] [Google Scholar]
  • 68.Cherney LT, Cherney MM, Garen CR, Lu GJ, James MNG. Structure of the C-terminal domain of the arginine repressor protein from Mycobacterium tuberculosis. Acta Crystallogr D Biol Crystallogr. 2008;64 Pt 9:950–6. 10.1107/S0907444908021513. [DOI] [Google Scholar]
  • 69.Rustad TR, Minch KJ, Ma S, Winkler JK, Hobbs S, Hickey M, et al. Mapping and manipulating the Mycobacterium tuberculosis transcriptome using a transcription factor overexpression-derived regulatory network. Genome Biol. 2014;15:502. 10.1186/PREACCEPT-1701638048134699. [DOI] [Google Scholar]
  • 70.Benjamini Y, Hochberg Y. Controlling the False Discovery Rate: A Practical and Powerful Approach to Multiple Testing. Journal of the Royal Statistical Society Series B (Methodological). 1995;57:289–300. [Google Scholar]
  • 71.Badia-i-Mompel P, Vélez Santiago J, Braunger J, Geiss C, Dimitrov D, Müller-Dott S, et al. decoupleR: ensemble of computational methods to infer biological activities from omics data. Bioinformatics Advances. 2022;2:vbac016. 10.1093/bioadv/vbac016. [DOI] [Google Scholar]
  • 72.King ZA, Dräger A, Ebrahim A, Sonnenschein N, Lewis NE, Palsson BO. Escher: A Web Application for Building, Sharing, and Embedding Data-Rich Visualizations of Biological Pathways. PLOS Computational Biology. 2015;11:e1004321. 10.1371/journal.pcbi.1004321. [DOI] [Google Scholar]
  • 73.DeJesus MA, Gerrick ER, Xu W, Park SW, Long JE, Boutte CC, et al. Comprehensive Essentiality Analysis of the Mycobacterium tuberculosis Genome via Saturating Transposon Mutagenesis. mBio. 2017;8:e02133–16. 10.1128/mBio.02133-16. [DOI] [Google Scholar]
  • 74.Bosch B, DeJesus MA, Poulton NC, Zhang W, Engelhart CA, Zaveri A, et al. Genome-wide gene expression tuning reveals diverse vulnerabilities of M. tuberculosis. Cell. 2021;184:4579–4592.e24. 10.1016/j.cell.2021.06.033. [DOI] [Google Scholar]
  • 75.Alam MT, Medema MH, Takano E, Breitling R. Comparative genome-scale metabolic modeling of actinomycetes: The topology of essential core metabolism. FEBS Letters. 2011;585:2389–94. 10.1016/j.febslet.2011.06.014. [DOI] [Google Scholar]
  • 76.Ma H-W, Zeng A-P. The connectivity structure, giant strong component and centrality of metabolic networks. Bioinformatics. 2003;19:1423–30. 10.1093/bioinformatics/btg177. [DOI] [Google Scholar]
  • 77.Wagner A, Fell DA. The small world inside large metabolic networks. Proc Biol Sci. 2001;268:1803–10. 10.1098/rspb.2001.1711. [DOI] [Google Scholar]
  • 78.Pitkänen E, Jouhten P, Rousu J. Inferring branching pathways in genome-scale metabolic networks. BMC Syst Biol. 2009;3:103. 10.1186/1752-0509-3-103. [DOI] [Google Scholar]
  • 79.Sharma K, Marucci L, Abdallah ZS. Flux sampling and graph neural networks for improved gene essentiality prediction in mammalian genome-scale metabolic models. npj Syst Biol Appl. 2026;12:107. 10.1038/s41540-026-00738-8. [DOI] [Google Scholar]
  • 80.Mori M, Cheng C, Taylor BR, Okano H, Hwa T. Functional decomposition of metabolism allows a system-level quantification of fluxes and protein allocation towards specific metabolic functions. Nat Commun. 2023;14:4161. 10.1038/s41467-023-39724-7. [DOI] [Google Scholar]
  • 81.Hari A, Lobo D. Fluxer: a web application to compute, analyze and visualize genome-scale metabolic flux networks. Nucleic Acids Res. 2020;48:W427–35. 10.1093/nar/gkaa409. [DOI] [Google Scholar]
  • 82.Cottret L, Wildridge D, Vinson F, Barrett MP, Charles H, Sagot M-F, et al. MetExplore: a web server to link metabolomic experiments and genome-scale metabolic networks. Nucleic Acids Res. 2010;38 Web Server issue:W132–7. 10.1093/nar/gkq312. [DOI] [Google Scholar]
  • 83.Cottret L, Frainay C, Chazalviel M, Cabanettes F, Gloaguen Y, Camenen E, et al. MetExplore: collaborative edition and exploration of metabolic networks. Nucleic Acids Res. 2018;46 Web Server issue:W495–502. 10.1093/nar/gky301. [DOI] [Google Scholar]
  • 84.Cottret L, Frainay C. MetExplore/met4j. 2026.
  • 85.Heirendt L, Arreckx S, Pfau T, Mendoza SN, Richelle A, Heinken A, et al. Creation and analysis of biochemical constraint-based models using the COBRA Toolbox v.3.0. Nat Protoc. 2019;14:639–702. 10.1038/s41596-018-0098-2. [DOI] [Google Scholar]
  • 86.Ebrahim A, Lerman JA, Palsson BO, Hyduke DR. COBRApy: COnstraints-Based Reconstruction and Analysis for Python. BMC Syst Biol. 2013;7:74. 10.1186/1752-0509-7-74. [DOI] [Google Scholar]
  • 87.Saa PA, Zapararte S, Drovandi CC, Nielsen LK. LooplessFluxSampler: an efficient toolbox for sampling the loopless flux solution space of metabolic models. BMC Bioinformatics. 2024;25:3. 10.1186/s12859-023-05616-2. [DOI] [Google Scholar]
  • 88.Chalkis A, Fisikopoulos V, Tsigaridas E, Zafeiropoulos H. dingo: a Python package for metabolic flux sampling. Bioinform Adv. 2024;4:vbae037. 10.1093/bioadv/vbae037. [DOI] [Google Scholar]
  • 89.Gelbach PE, Cetin H, Finley SD. Flux sampling in genome-scale metabolic modeling of microbial communities. BMC Bioinformatics. 2024;25:45. 10.1186/s12859-024-05655-3. [DOI] [Google Scholar]
  • 90.Mattei G, Gan Z, Ramazzotti M, Palsson BO, Zielinski DC. Differential Expression Analysis Utilizing Condition-Specific Metabolic Pathways. Metabolites. 2023;13:1127. 10.3390/metabo13111127. [DOI] [Google Scholar]

Associated Data

This section collects any data citations, data availability statements, or supplementary materials included in this article.

Supplementary Materials

Supplement 1
media-1.pdf (2.1MB, pdf)
Supplement 2
media-2.xlsx (123.1KB, xlsx)
Supplement 3
media-3.xlsx (35.8MB, xlsx)

Data Availability Statement

MetworkPy is an open source Python package, with source code available at https://github.com/Ma-Lab-Seattle-Childrens-CGIDR/metworkpy, and can be installed from the Python Package Index (PyPI) using pip. Code used for generating the results in this paper can be found at https://github.com/Ma-Lab-Seattle-Childrens-CGIDR/metworkpy_application_note. Documentation for MetworkPy is available at https://metworkpy.readthedocs.io/en/latest/. All data associated with this study are in additional files.


Articles from bioRxiv are provided here courtesy of Cold Spring Harbor Laboratory Preprints

RESOURCES