ecoli.variants.condition

ecoli.variants.condition.apply_variant(sim_data, params)[source]

Modify sim_data to environmental condition from condition_defs.tsv.

Parameters:
  • sim_data (SimulationDataEcoli) – Simulation data to modify

  • params (dict[str, Any]) –

    Parameter dictionary of the following format:

    {
        # Environmental condition: "basal", "with_aa", "acetate",
        # "succinate", "no_oxygen"
        "condition": str,
    }
    

Returns:

Simulation data with the following attributes modified:

sim_data.condition
sim_data.external_state.current_timeline_id

Return type:

SimulationDataEcoli