BDI-pathogens / OpenABM-Covid19

OpenABM-Covid19: an agent-based model for modelling the spread of SARS-CoV-2 (coronavirus) and control interventions for the Covid-19 epidemic
GNU General Public License v3.0
111 stars 76 forks source link

R meta model (beta) #218

Closed roberthinch closed 3 years ago

roberthinch commented 3 years ago

First cut of MetaModel implemented in R. Separate instances of OpenABM are run for each of n_regions in up to n_nodes separate R sessions (using R package parallel). New infections are seeded in each region based upon the migration_matrix and the number of new infections in each region. Migration seed infections occur at a delayed time (default 5 days) after the new infections occur in the linked region (note this delay is also the frequency at which the parallel processes must talk to each other). Most key model features (updating params, seeding new variants, results ) can be set globally or at a sub-model level. The MetaModel also includes a plot() method for generating movies of spread of infections (using plotly). 2 example MetaModel are added as examples: a rectangle with nearest neighbour migration and a model of England (at UTLA level) using mobile telephone data to estimate migration.

Currently beta, requires:

  1. testing
  2. support for vaccinations