vivarium.processes.injector module

Injector Process

Injectors model the appearance of substances within a cell or its environment. For example, we could inject antibiotics into a cell. More commonly, though, injector processes let us build toy examples. As such, we use injectors in the documentation to keep our examples simple.

class vivarium.processes.injector.Injector(initial_parameters=None)[source]

Bases: vivarium.core.process.Process

Models the direct injection of substrates into a cell

Ports:

  • internal: The store into which the substrates will be injected.

Note

Each of these processes only supports injecting into a single store. To inject into multiple stores, create a separate instance of this injector process for each store.

Parameters

initial_parameters (dict) – An optional configuration dictionary that may include the key substrate_rate_map whose value must be a dictionary mapping substrate variable names to the rate (as a float) at which they should be injected. Rates are interpreted as being in units of \(\frac{substrateVariableUnit}{timestepUnit}\), so for a variable with units of molarity and a timestep in seconds, rates should be in \(\frac{M}{s}\).

name = 'injector'
next_update(timestep, states)[source]
ports_schema()[source]
vivarium.processes.injector.main()[source]
vivarium.processes.injector.run_injector()[source]
vivarium.processes.injector.test_injector()[source]