10.1.2.1.3. freeflux.core.metabolite

Define the Metabolite class.

10.1.2.1.3.1. Attributes

__author__

10.1.2.1.3.2. Classes

Metabolite

Define Metabolite object which constitutes a Reaction.

10.1.2.1.3.3. Module Contents

freeflux.core.metabolite.__author__ = 'Chao Wu'[source]
class freeflux.core.metabolite.Metabolite(id, atoms=None)[source]

Define Metabolite object which constitutes a Reaction.

Metabolites are considered identical when they have the same IDs and atoms.

Parameters:
  • id (str) – Metabolite ID.

  • atoms (str or list of str or None) – Carbons in metabolite, e.g., ‘abcd’ for metabolite without equivalents, and [‘abcd’, ‘dcba’] for metabolite with equivalents.

id[source]

Metabolite ID.

Type:

str

atoms_info[source]

equivalent => coefficient, e.g., {‘abcd’: 1.0} or {‘abcd’: 0.5, ‘dcba’: 0.5}.

Type:

dict

n_carbons[source]

# of carbons in metabolite.

Type:

int

host_reactions[source]

Reactions hosting the metabolite.

Type:

set of Reaction or None

id[source]
atoms = None[source]
host_reactions = None[source]
__hash__()[source]
__eq__(other)[source]
Parameters:

other (Metabolite)

property atoms_info[source]
property n_carbons[source]
__repr__()[source]