Open michaelsilverstein opened 2 years ago
Proposal: we can use the compartment for reactions model.exchanges
to find the name of the extracellular compartment.
Reactions are classified as "exchange" reactions if it has no reactants or products (model.reaction.boundary = True
).
Here is where model.exchanges
is define: https://github.com/opencobra/cobrapy/blob/e838e5403be7243a18dc7ae10e26551cb28d21cc/src/cobra/core/model.py#L966-L972
Where model.reaction.boundary
is defined: https://github.com/opencobra/cobrapy/blob/dc68ee66f6192ad02687aa2da12def3cfe36513d/src/cobra/core/reaction.py#L537-L543
Cobrapy even relies on e
in compartment name: https://github.com/opencobra/cobrapy/blob/e838e5403be7243a18dc7ae10e26551cb28d21cc/src/cobra/medium/boundary_types.py#L29-L59
BIGG names compartments as
e
whereas CarveMe usesC_e
. Handling:For inference, need checkpoint to ensure that all models contain shared compartment
Unittest: on BIGG and CarveMe model