6.1.2.1. equilibrator_api.compatibility

Provide functions for compatibility with COBRA.

6.1.2.1.1. Module Contents

equilibrator_api.compatibility.map_cobra_reactions(cache: equilibrator_cache.CompoundCache, reactions: List[cobra.Reaction], **kwargs) Dict[str, equilibrator_api.phased_reaction.PhasedReaction][source]

Translate COBRA reactions to eQuilibrator phased reactions.

Parameters:
  • cache (equilibrator_cache.CompoundCache) –

  • reactions (iterable of cobra.Reaction) – A list of reactions to map to equilibrator phased reactions.

  • kwargs – Any further keyword arguments are passed to the underlying function for mapping metabolites.

Returns:

A mapping from COBRA reaction identifiers to equilibrator phased reactions where such a mapping can be established.

Return type:

dict

See also

equilibrator_cache.compatibility.map_cobra_metabolites