Skip to content

Latest commit

 

History

History

plotters

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Plotters - Visualization and analysis of model outcomes and input

List and description of main scripts used.

Compare simulations to data

  • data_comparison.py compares the predicted number of new detected hospitalized cases, cumulative detections of hospitalized cases, total number of case hospitalizations and number of critical cases to hospital data and case reports for specified EMS region as included in exp_name (using base or age emodl)
  • data_comparison_spatial.py compares the predicted number of new detected hospitalized cases, cumulative detections of hospitalized cases, total number of case hospitalizations and number of critical cases to hospital data and case reports for all EMS regions (using locale emodl)
  • data_comparison_spatial2.py same as data_comparison_spatial.py, for comparing two or more experiments (runs slow)
  • data_comparison_spatial3.py same as data_comparison_spatial.py, for plotting trends by a specified paramter

Comparison multiple simulation experiments

  • plot_split_by_param Takes two experiment simulations and compares generates a plot comparing the trajectories of both
  • plot_by_param_ICU_nonICU Plots the most recent trend in EMresource data for ICU and non-ICU and compares the next 2-3 weeks forward predictions, either with one or two exp_names
  • plot_exp_by_varying_param.py Plot to show trends by varying sample parameter (i.e. for intervention scenarios) within one simulation.
  • bar_timeline_plotter.py Often used for civis slides, generates timeline comparing outcome channelf across multiple simulation experiments and cumulative barplot

Compare parameter or channels within one simulation experiment

  • aggregate_by_param.py Aggregate custom specified channels by defined parameter and generate plot for 1 channel across all groups compared by that parameter. Saved a csv with aggregated trajectores (large if too many channels selected!)
  • plot_split_by_param_trajectories Simple plot per outcome channel for one experiment, instead of aggregating trajectories, show single trajectories
  • plot_split_by_channel Plotter for comparing 2 channels in one panel for example used to plot vaccinations or detections (i.e. all vs detected, all vs vaccinated ...)
  • plot_single_trajectories.py

Stacked and grouped timeline plots

Process-for-civis scripts

(see description in main readme)

Parameter fitting and selection of best fitting trajectories

Building on trace_selection.py, which ranks the simulated trajectories based on negative log-likelihood , the simulate_traces.py script extracts the a) single best fitting parameter set or b) n best fitting parameter sets, and combines these now region specific fitted parameters with sample parameters. Next to the csv files the script generates bat/sh submission script to run a follow up simulation with fitted parameters. The script also uses functions from sample_parameters.py.

Further scripts