5.1.1.1.1. etfba.core.metabolite

Difine the Metabolite class.

5.1.1.1.1.1. Classes

Singleton

Make a singleton metaclass.

Metabolite

Metabolite instances created with identical IDs, names, and all other attributes

5.1.1.1.1.2. Module Contents

class etfba.core.metabolite.Singleton(name, bases, attrs)[source]

Bases: type

Make a singleton metaclass.

_instances[source]
__call__(*args, **kwargs)[source]

Call self as a function.

class etfba.core.metabolite.Metabolite(metabid, name=None, compartment=None, *, is_h=False, is_h2o=False)[source]

Metabolite instances created with identical IDs, names, and all other attributes are treated as a singular instance.

kms[source]

Key is the reaction ID where the metabolite is involved, value is the corresponding Km value.

Type:

PrettyDict

km[source]

Km value of the metabolite in the host reaction.

Type:

positive float

coes[source]

Key is the reaction ID where the metabolite is involved, value is the corresponding stoichiometric coefficient in the reaction. Negative for substrates and positive for products.

Type:

PrettyDict

coe[source]

Stoichiometric coefficient of the metabolite in the host reaction.

Type:

positive float

is_h[source]

Indicates whether it is a proton.

Type:

bool

is_h2o[source]

Indicates whether it is water.

Type:

bool

is_constrained_by_mass_balance[source]

Indicates whether it appears in the mass balance constraints.

Type:

bool

host[source]

The host reaction of the metabolite.

Type:

Reaction

role[source]

Role played by the metabolite in the host reaction.

Type:

{‘substrate’, ‘product’}

metabid[source]
name[source]
compartment[source]
is_h[source]
is_h2o[source]
kms[source]
coes[source]
is_constrained_by_mass_balance = False[source]
host = None[source]
role = None[source]
property km[source]
property coe[source]
__repr__()[source]

Return repr(self).