LogoLogo
JHU-IDDCOVID-19 Scenario Modeling hubCOVID-19 Forecast Hub
  • Home
  • 🦠gempyor: modeling infectious disease dynamics
    • Modeling infectious disease dynamics
    • Model Implementation
      • flepiMoP's configuration file
      • Specifying population structure
      • Specifying compartmental model
      • Specifying initial conditions
      • Specifying seeding
      • Specifying observational model
      • Distributions
      • Specifying time-varying parameter modifications
      • Other configuration options
      • Code structure
    • Model Output
  • 📈Model Inference
    • Inference Description
    • Inference Implementation
      • Specifying data source and fitted variables
      • (OLD) Configuration options
      • (OLD) Configuration setup
      • Code structure
    • Inference Model Output
    • Inference with EMCEE
  • 🖥️More
    • Setting up the model and post-processing
      • Config writer
      • Diagnostic plotting scripts
      • Create a post-processing script
      • Reporting
    • Advanced
      • File descriptions
      • Numerical methods
      • Additional parameter options
      • Swapping model modules
      • Using plug-ins 🧩[experimental]
  • 🛠️How To Run
    • Before any run
    • Quick Start Guide
    • Multiple Configuration Files
    • Synchronizing Files
    • Advanced run guides
      • Running with Docker locally 🛳
      • Running locally in a conda environment 🐍
      • Running on AWS 🌳
      • Running On A HPC With Slurm
    • Common errors
    • Useful commands
    • Tips, tricks, FAQ
  • 🗜️Development
    • Git and GitHub Usage
    • Guidelines for contributors
  • Deprecated pages
    • Module specification
  • JHU Internal
    • US specific How to Run
      • Running with Docker locally (outdated/US specific) 🛳
      • Running on Rockfish/MARCC - JHU 🪨🐠
      • Running with docker on AWS - OLD probably outdated
        • Provisioning AWS EC2 instance
        • AWS Submission Instructions: Influenza
        • AWS Submission Instructions: COVID-19
      • Running with RStudio Server on AWS EC2
    • Inference scratch
Powered by GitBook
On this page
  • Print Functions:
  • Spatial Setup:
Edit on GitHub
Export as PDF
  1. More
  2. Setting up the model and post-processing

Config writer

PreviousSetting up the model and post-processingNextDiagnostic plotting scripts

Last updated 2 months ago

The model needs the configurations file to run (described in previous sections). These configs become lengthy and sometimes difficult to type manually. The config writer helps to generate configs provided the relevant files are present.

Print Functions:

These functions are used to print specific sections of the configuration files.

print_header

Used to generate the global header. For more information on global headers click .

Variable name
Required (default value if optional)
Description

sim_name

Required

Name of the configuration file to be generated. Generally based on the type of simulation

setup_name

Optional (SMH)

Type of run - a Scenario Modeling Hub ("SMH") or Forecasting Hub ("FCH") Simulation.

disease

Optional (covid19)

Pathogen or disease being simulated

smh_round

Optional (NA)

Round number for Scenario Modeling Hub Submission

model_output_dir_name

Optional (model_output)

Folder path where the outputs of the simulated model are stored

sim_start_date

Required

Start date for model simulation

sim_end_date

Required

End date for model simulation

start_date_groundtruth

Optional (NA)

Start date for fitting data for inference runs

end_date_groundtruth

Optional (NA)

End date for fitting data for inference runs

nslots

Required

Number of independent simulations to run

print_spatial_setup

Used to generate the spatial setup section of the configuration. For more information on spatial setup click .

Variable name
Required (default value if optional)
Description

census_year

Optional (2019)

The year of data uses to generate the geodata files for US simulations ?? [Unsure about this]

sim_states

Required

Vector of locations that will be modeled (US Specific?)

geodata_file

Optional (geodata.csv)

Name of the geodata file which is imported

mobility_file

Optional (mobility.csv)

Name of the mobility file which is imported

popnodes

Optional (pop2019est)

Name of a column in the geodata file that specifies the population of every subpopulation column

nodenames

Optional (subpop)

Name of a column in the geodata file that specifies the name of the subpopulation

state_level

Optional (TRUE)

Specifies if the subpopulations are US states

print_compartments

Used to generate the compartment list for each way a population can be divided.

Variable Name
Required (default value if optional)
Description

inf_stages

Optional (S,E,I1,I2,I3,R,W)

Various infection stages an individual can be in

vaccine_compartments

Optional (unvaccinated, 1dose, 2dose, waned)

Various levels of vaccinations an individual can have

variant_compartments

Optional (WILD, ALPHA, DELTA, OMICRON)

Variants of the pathogen

age_strata

Optional (age0to17, age18to64, age65to100)

Different age groups, the population has been stratified in

Parts of the configuration files that are printed but not needed for FlepiMop runs (need to be mentioned for US or COVID-19 specific runs??)

Spatial Setup:

  • census year: year of geodata files

  • modeled states (sim_states): This has US state abbreviations. Do we include the names of the sub-populations in the geodata file? Eg: small_province, large_province

  • state_level: Specifies if the runs are run for US states

🖥️
HERE
HERE