4.1.2.1. equilibrator_api.compatibility¶
Provide functions for compatibility with COBRA.
4.1.2.1.1. Module Contents¶
-
equilibrator_api.compatibility.map_cobra_reactions(cache: equilibrator_cache.CompoundCache, reactions: List[‘cobra.Reaction’], **kwargs) → Dict[str, 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.
- Other Parameters
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
See also
equilibrator_cache.compatibility.map_cobra_metabolites