7.1.2.2. pta.compartment_parameters

Parameters for the compartments of a metabolic network.

7.1.2.2.1. Module Contents

pta.compartment_parameters.any_compartment = __any__[source]

Pseudo-identifier representing any compartment.

class pta.compartment_parameters.CompartmentParameters(compartment_pH: Dict[str, pta.constants.Q] = None, compartment_pMg: Dict[str, pta.constants.Q] = None, compartment_I: Dict[str, pta.constants.Q] = None, compartment_phi: Dict[str, pta.constants.Q] = None, T: pta.constants.Q = default_T)[source]

Parameters for the compartments of a metabolic network.

Parameters
  • compartment_pH (Dict[str, Q], optional) – Mapping from compartment identifiers to the pH of the compartment.

  • compartment_pMg (Dict[str, Q], optional) – Mapping from compartment identifiers to the pMg of the compartment.

  • compartment_I (Dict[str, Q], optional) – Mapping from compartment identifiers to the ionic strength of the compartment.

  • compartment_phi (Dict[str, Q], optional) – Mapping from compartment identifiers to the electrostatic potential of the compartment.

  • T (Q, optional) – Temperature of the system (temperature must be the same for all compartments).

pH(self, compartment: str) pta.constants.Q[source]

Gets the pH of a compartment.

pMg(self, compartment: str) pta.constants.Q[source]

Gets the pMg of a compartment.

I(self, compartment: str) pta.constants.Q[source]

Gets the ionic strength of a compartment.

phi(self, compartment: str) pta.constants.Q[source]

Gets the electrostatic potential of a compartment.

T(self) pta.constants.Q[source]

Gets the temperature of the system.

static load(params_file: Union[pathlib.Path, str]) CompartmentParameters[source]

Loads the compartment parameters from a .csv file.

Parameters

params_file (Union[Path, str]) – Path to the file containing the parameter values or name of a builtin parameter set (any file present in data/compartment_parameters/, e.g. ‘e_coli’ or ‘human’).

Returns

New instance of this class, containing the parameters loaded from the file.

Return type

CompartmentParameters