equilibrator_api.compatibility ============================== .. py:module:: equilibrator_api.compatibility .. autoapi-nested-parse:: Provide functions for compatibility with COBRA. Module Contents --------------- .. py:function:: map_cobra_reactions(cache: equilibrator_cache.CompoundCache, reactions: List[cobra.Reaction], **kwargs) -> Dict[str, equilibrator_api.phased_reaction.PhasedReaction] Translate COBRA reactions to eQuilibrator phased reactions. :param cache: :type cache: equilibrator_cache.CompoundCache :param reactions: A list of reactions to map to equilibrator phased reactions. :type reactions: iterable of cobra.Reaction :param 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. :rtype: dict .. seealso:: :obj:`equilibrator_cache.compatibility.map_cobra_metabolites`