corneto.io.sbml_model_to_graph#

corneto.io.sbml_model_to_graph(model)#

Convert parsed SBML records to a CORNETO metabolic hypergraph.

Raw SBML species and reaction identifiers are preserved. Boundary and constant species are kept in the graph’s sbml_excluded_species metadata and excluded from mass-balance vertices. The active FBC objective, when present, is stored as fba_objective in the graph metadata. Pass that mapping explicitly as objectives when building corneto.methods.fba.MultiSampleFBA.

Parameters:

model (MetabolicModel) – Parsed records returned by read_sbml.

Returns:

A graph with one hyperedge per SBML reaction.

Return type:

Graph