Let's look into a sample plot,
out/manual/plotOut/svg_plots/massFractionSummary.svg, and try to understand as much as we can about what it means and how it was generated.
This plot contains how much of each type of mass is present in all cells. Since we simulated just one cell, it will be the same as the results for that cell.
We can see that all of them grow more or less linearly, perhaps as the start of an exponential. We can see that all of them grow more or less linearly, perhaps as the start of an exponential. We can see that all of them grow more or less linearly, perhaps as the start of an exponential.
By grepping the title "Cell mass fractions" in the source code, we see the files:
which must correspond to the different
models/ecoli/analysis/cohort/massFractionSummary.py models/ecoli/analysis/multigen/massFractionSummary.py models/ecoli/analysis/variant/massFractionSummary.py
massFractionSummaryplots throughout different levels of the hierarchy.
models/ecoli/analysis/variant/massFractionSummary.pya little bit, we see that:
- the plotting is done with Matplotlib, hurray
- it is reading its data from files under
./out/manual/wildtype_000000/000000/generation_000000/000000/simOut/Mass/, more precisely
./out/manual/wildtype_000000/000000/generation_000000/000000/simOut/Mass/columns/<column-name>/data. They are binary files however.Looking at the source for
wholecell/io/tablereader.pyshows that those are just a standard NumPy serialization mechanism. Maybe they should have used the Hierarchical Data Format instead.We can also take this opportunity to try and find where the data is coming from.
./out/manual/wildtype_000000/000000/generation_000000/000000/simOut/Mass/looks like an ID, so we
grepthat and we reach
models/ecoli/listeners/mass.py.From this we understand that all data that is to be saved from a simulation must be coming from listeners: likely nothing, or not much, is dumped by default, because otherwise it would take up too much disk space. You have to explicitly say what it is that you want to save via a listener that acts on each time step.