medusa.core.member
¶
Module Contents¶
-
class
medusa.core.member.
Member
(ensemble=None, identifier=None, name=None, states=None)¶ Bases:
cobra.core.object.Object
Object representing an individual member (i.e. model) in an ensemble
Parameters: - identifier (string) – The identifier to associate with the member.
- ensemble (medusa.core.ensemble.Ensemble object) – The ensemble that the member belongs to.
- states (dictionary of medusa.core.feature.Feature:component_attribute value) – dictionary of Features mapping to the value of the Feature’s component_attribute (value type depends on component_attribute type, e.g. float for “lb”, string for “_gene_reaction_rule”) for the member.
-
to_model
(self)¶ Generate a cobra.Model object with the exact state of this member.
The resulting cobra.Model does not contain any Metabolites, Genes, or Reactions that were inactive in the member.
Returns: model – The extracted member as a cobrapy model. Return type: cobra.Model
-
_set_id_with_model
(self, value)¶