15.1.1.5.1.1. cobra.medium.boundary_types
¶
Contains function to identify the type of boundary reactions.
This module uses various heuristics to decide whether a boundary reaction is an exchange, demand or sink reaction. It mostly orientates on the following paper:
Thiele, I., & Palsson, B. Ø. (2010, January). A protocol for generating a high-quality genome-scale metabolic reconstruction. Nature protocols. Nature Publishing Group. http://doi.org/10.1038/nprot.2009.203
15.1.1.5.1.1.1. Module Contents¶
-
cobra.medium.boundary_types.
find_external_compartment
(model)[source]¶ Find the external compartment in the model.
Uses a simple heuristic where the external compartment should be the one with the most exchange reactions.
Parameters: model (cobra.Model) – A cobra model. Returns: The putative external compartment. Return type: str
-
cobra.medium.boundary_types.
is_boundary_type
(reaction, boundary_type, external_compartment)[source]¶ Check whether a reaction is an exchange reaction.
Parameters: Returns: Whether the reaction looks like the requested type. Might be based on a heuristic.
Return type: boolean