ecoli.analysis.multivariant.metabolite_unmet_need

Plot unmet homeostatic need for metabolites for multivariant simulation.

For each variant, shows a bar chart of the top-N metabolites by mean |unmet need| and a timeseries of unmet need, aggregated across all cells in that variant. One bar+line subplot per variant, stacked vertically.

Configure the number of initial generations to exclude from the averages using the “skip_n_gens” key in the analysis params (defaults to 0).

ecoli.analysis.multivariant.metabolite_unmet_need._format_int_list(values)[source]

Format a sorted list of ints compactly, collapsing contiguous runs for making the seed and generation labels in the title.

e.g. [0, 1, 2, 3] -> "0-3", [3, 5, 6, 7] -> "3, 5-7".

Parameters:

values (list[int])

Return type:

str

ecoli.analysis.multivariant.metabolite_unmet_need.plot(params, conn, history_sql, config_sql, success_sql, sim_data_dict, validation_data_paths, outdir, variant_metadata, variant_names)[source]

One bar+line subplot per variant, aggregated across all cells in that variant.

Parameters:
Return type:

None