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".