EPIGRASS -.epg file Definition

The .epg file defines the epidemic model and the parameters to be used by EPIGRASS. It can be edited by the user directly, by means of a text editor, or using the .epg editor.

Basic structure of a .epg file:

The .epg is divided into seven sections:
  1. THE WORLD
  2. EPIDEMIOLOGICAL MODEL
  3. MODEL PARAMETERS
  4. INITIAL CONDITIONS
  5. EPIDEMIC EVENTS
  6. TRANSPORTATION MODEL
  7. SIMULATION AND OUTPUT

WARNING: Sections cannot be removed or created.

Each section has a set of variables that specifies your model.

NOTE: No variable can be removed, even if not used by your model. If a variable is not used by your model, just leave it there that will do no harm.


THE WORLD

Here you define the files that describe your virtual world.


EPIDEMIOLOGICAL MODEL

Epigrass has a set of built-in models (SIS, SIS_s ,SIR, SIR_s, SEIS, SEIS_s, SEIR, SEIR_s,SIpRpS, SIpRpS_s,SIpR,SIpR_s,Influenza). Besides these, the user may define his/her own model and access by the protect word Custom. The epidemic model is defined by the variable:

MODEL PARAMETERS

They can be specified as constants or as functions of global or site-specific variables. These site-specific variables, are provided in the sites file.

In this section, there is a set of variables that cannot be removed from the .epg file (if your model does not require them, just ignore them). These are: Besides these required parameters, the user may add any number of extra parameters to the epg file. To do this, just click the button NEW VARIABLE and choose section MODEL PARAMETERS. A new line will be added to the editor, allowing you to set the value for this variable and add comments.

INITIAL CONDITIONS

Here, the number of individuals in each epidemiological state is specified. They can be specified in absolute or relative numbers (adding to 1).

The protected letter N is the population size of each site. It can be used when defining the population in each state. See examples.

Note that the rule defined here will be applied equally to all sites. For site-specific definitions, go to section EVENTS (below).

Here, there are three mandatory parameters: (they cannot be removed from the file. If the variable is not present in the your model, it will be ignored).

Examples:
S = 0.99*N, E = 0, I = 0.01*N (the same fraction of susceptibles is applied to all sites)
S = N, E = 0, I = 0 (all individuals are susceptibles. Arrival of index case will be set in the EVENT section)
S = N-1, E = 0, I = 1 (simulation starts with one infected individual per site)

Besides these mandatory variables, the user may add as many new variables as his/her model requires. To do this, just click on the ADD VARIABLE button and choose a name for this variable (careful not to duplicate names). Then, a new line will be created in the .epg editor. Add the parameter value and comments.

EPIDEMIC EVENTS

In this section, time-specific and/or site-specific events are defined. Localities where the events are to take place should be identified by their code (which is the column after population size in the sites datafile). All variables here are defined as Python lists (see examples).

TRANSPORTATION MODEL

In this section, some aspects of the movement of individuals between sites are defined.

SIMULATION AND OUTPUT

Here, you specify extra parameters for the simulation, and what you want as output (and where).