• Stars
    star
    1,228
  • Rank 36,931 (Top 0.8 %)
  • Language
    C++
  • License
    GNU General Publi...
  • Created about 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

This is the COVID-19 CovidSim microsimulation model developed by the MRC Centre for Global Infectious Disease Analysis hosted at Imperial College, London.

COVID-19 CovidSim Model

This is the COVID-19 CovidSim microsimulation model developed by the MRC Centre for Global Infectious Disease Analysis hosted at Imperial College, London.

CovidSim models the transmission dynamics and severity of COVID-19 infections throughout a spatially and socially structured population over time. It enables modelling of how intervention policies and healthcare provision affect the spread of COVID-19. It is used to inform health policy by making quantitative forecasts of (for example) cases, deaths and hospitalisations, and how these will vary depending on which specific interventions, such as social distancing, are enacted.

With parameter changes, it can be used to model other respiratory viruses, such as influenza.

IMPORTANT NOTES

⚠️ This code is released with no support.

⚠️ This model is in active development and so parameter name and behaviours, and output file formats will change without notice.

⚠️ The model is stochastic. Multiple runs with different seeds should be undertaken to see average behaviour. This can now be done easily with the /NR command line parameter. The model code behaves deterministically if run with the same number of threads enabled and run with the same random number seeds.

⚠️ As with any mathematical model, it is easy to misconfigure inputs and therefore get meaningless outputs. The Imperial College COVID-19 team only endorses outputs it has itself generated.

Status

Action Status Action Status Action Status Action Status Action Status

This model is in active development and subject to significant code changes to:

  • Enable modelling of more geographies

  • Enable modelling of different intervention scenarios

  • Improve performance

Building

The model is written in C++.

The primary platforms it has been developed and tested on are Windows and Ubuntu Linux.

It should build and run on any other POSIX compliant Unix-like platform (for example macOS, other Linux distributions). However, no active development occurs on them.

Running the model for the whole of the UK requires approximately 20GB of RAM. Other regions will require different amounts of memory (some up to 256GB).

It is strongly recommended to build the model with OpenMP support enabled to improve performance on multi-core processors. 24 to 32 core Xeon systems give optimal performance for large (e.g. UK, US) populations.

See build.md for detailed build instructions.

Testing

From within your build directory do:

make test
# If you want more progress indication
make test ARGS="-V"
# To parallelise tests add a -jN option for instance:
make test ARGS="-j6"
make test ARGS="-j6 -V"
# or
ctest -V
ctest -V -j6
# etc...

IMPORTANT: The test scripts use test data only are not runs reflective of real-world situations.

Sample Data

The directory data contains sample data.

The Python script run_sample.py demonstrates how to invoke CovidSim to use this data. See the sample README for details on how to run the samples.

The directory report9 contains files to allow the results tables in the Imperial College Report 9 - Impact of non-pharmaceutical interventions (NPIs) to reduce COVID-19 mortality and healthcare demand to be reproduced.

Documentation

Model documentation can be found in the docs directory. Of particular interest are:

Given the entire Imperial College team is working full-time on the COVID-19 response, documentation is currently sparse. More documentation and sample files will be added as time permits. In the coming few weeks this will include a much more extensive set of input files to model strategies for exiting lockdown.

Relevant papers

The following papers are relevant to the model. Please note that some of them may require a subscription.

Copyright and Licensing

The source code for CovidSim is licensed under the GPLv3, see LICENSE.md.

It is Copyright Imperial College of Science, Technology and Medicine. The lead developers are Neil Ferguson, Gemma Nedjati-Gilani and Daniel Laydon.

Additional contributions for open-sourcing made by Imperial College of Science, Technology and Medicine, GitHub Inc, and John Carmack are copyright the authors.

Licensing details for material from other projects may be found in NOTICE.md. In summary:

CovidSim includes code modified from RANLIB which is licensed under the LGPLv3.

Sample data in the repository has been derived from the following sources:

WorldPop (www.worldpop.org - School of Geography and Environmental Science, University of Southampton; Department of Geography and Geosciences, University of Louisville; Departement de Geographie, Universite de Namur) and Center for International Earth Science Information Network (CIESIN), Columbia University (2018). Global High Resolution Population Denominators Project - Funded by The Bill and Melinda Gates Foundation (OPP1134076). https://dx.doi.org/10.5258/SOTON/WP00647

WorldPop is licensed under the Creative Commons Attribution 4.0 International License (CC BY 4.0). The text of the license can be found at: https://creativecommons.org/licenses/by/4.0/legalcode

Contributing

Due to time pressure on the development team, we are unable to provide user support at this time.

If you find issues with the code please raise them in our Issue Tracker.

This repository has a code of conduct which is detailed in the code of conduct. When raising an issue in this repository you agree to abide by the code of conduct.

More Repositories

1

odin

ᚩ A DSL for describing and solving differential equations in R
R
98
star
2

EpiEstim

A tool to estimate time varying instantaneous reproduction number during epidemics
R
94
star
3

COVID19_CFR_submission

Repository for all scripts required to replicate the CFR analysis for paper submission.
R
69
star
4

squire

SEIR transmission model of COVID-19. Documentation at:
R
49
star
5

covid19-forecasts-orderly

R
29
star
6

sircovid

C++
28
star
7

individual

R Package for individual based epidemiological models
R
27
star
8

provisionr

📦📦➡️🏛️ Provision a library of R packages
R
27
star
9

epireview

R
22
star
10

PhyDyn

PhyDyn: Epidemiological modelling in BEAST
Java
22
star
11

rrq

🏃🏃🏃 Lightweight Redis queues
R
22
star
12

mcstate

✨🧹 Monte-Carlo State Space Models
R
18
star
13

dust

✨✨✨ Iterate multiple realisations of stochastic models
C++
18
star
14

skygrowth

Phylodynamic inference
R
15
star
15

reactidd

This repository supports epidemiological and disease-dynamic analyses of data from the REal Time Assessment of Community Transmission (REACT) study. It includes both code and data. For code-related enquiries please contact Oliver Eales: oliver (dot) eales (at) unimelb (dot) edu (dot) au
R
15
star
16

dde

🕦🔜🕘 Delay differential equation solver
R
14
star
17

SIMPLEGEN

Simulating Plasmodium Epidemiological and Genetic Data
R
12
star
18

bootstrap4-collapse

Just all the css and js you need from Bootstrap4 to implement their collapse functionality.
CSS
12
star
19

ring

💍 Ring buffers
R
12
star
20

drjacoby

Flexible Markov chain monte carlo via reparameterization
R
12
star
21

didehpc

☁️💻☁️ Support for the DIDE cluster
R
10
star
22

nimue

C
9
star
23

syncr

🔃 R interface to rsync
R
9
star
24

global-lmic-reports

Global LMIC COVID-19 reports. Updated to include HICs. Previous data is periodically backed up at https://mrcdata.dide.ic.ac.uk/global-lmic-reports/
HTML
9
star
25

naomi

Naomi model for subnational HIV estimation
R
9
star
26

reestimate_covidIFR_analysis

Repo for work on ICL Report 34 and subsequent Comm Med Methods Paper
R
9
star
27

spam.mpxv

Stochastic pair approximation model for Monkeypox virus
R
8
star
28

global-lmic-reports-orderly

COVID-19 forecast reports for LMICs
R
8
star
29

deterministic-malaria-model

Deterministic malaria model using odin
C
8
star
30

cinterpolate

📊➡️〰️ Interpolating functions from C, in R
R
8
star
31

malariasimulation

The malaria model
R
7
star
32

eppasm

EPP Age/Sex Model (EPP-ASM)
R
6
star
33

Brazil_COVID19_distributions

This repository contains code and data for the "Inference of COVID-19 epidemiological distributions from Brazilian hospital data" manuscript
Python
6
star
34

infectiousdiseasemodels-2022

Introduction to Mathematical Models of the Epidemiology & Control of Infectious Diseases - 2022
R
6
star
35

tfpscanner

Transmission fitness polymorphism scanner
R
6
star
36

sarscov2-transmission-england

R
6
star
37

first90release

R
5
star
38

covid-vaccine-impact-orderly

R
5
star
39

odin.js

Compile odin models to javascript
R
5
star
40

demogsurv

Analysis of demographic indicators from Demographic and Health Surveys (DHS) and other household surveys
R
5
star
41

contact_patterns

🤝🤧 Systematic review of contact surveys relevant to transmission of respiratory pathogens 🤧🤝
R
5
star
42

epihawkes

R
5
star
43

welcome

👋👋👋 Get started at mrc-ide
5
star
44

apothecary

💊🏥👌 SEIR Model of COVID-19 Transmission for Modelling Impact of Treatments and Therapeutics 👌🏥💊
C
4
star
45

shinyq

🌟🚶🚶🚶🌟 shiny application with a queue
R
4
star
46

odin-dust-tutorial

R
4
star
47

context

♻️ Reproduce an environment
R
4
star
48

queuer

🚶🚶🚶 Prototype general queue
R
4
star
49

RMAPI

Mapping Averaged Pairwise Information in R
C++
4
star
50

malariaModelFit

Rcpp package containing code for fitting malaria model by MCMC
C++
4
star
51

malariaEquilibrium

R
4
star
52

conan

📦📦➡️🏛️ Conan the Librarian ⚔️
R
4
star
53

covfefe

Flexible simulation of P. falciparum genetic data
C++
4
star
54

dopri-js

🕦🔜🕘 Ordinary and delay differential equation solver
TypeScript
4
star
55

shiny_dide

🌟🏥🌟 DIDE shiny server configuration
Shell
4
star
56

infectiousdiseasemodels-2019

Introduction to Mathematical Models of the Epidemiology & Control of Infectious Diseases
R
4
star
57

priority-pathogens

https://mrc-ide.github.io/priority-pathogens/
R
4
star
58

PlasmoMAPI

Mapping Plasmodium Spatial Connectivity from Genetic Data
R
4
star
59

sarscov2-b.1.1.7

Assessing transmissibility of SARS-CoV-2 lineage B.1.1.7 in England (peer-reviewed)
HTML
4
star
60

typochallengedata

Analysing data collected in typo challenge
R
3
star
61

scott

Structured COalescent Transmission Tree simulation
R
3
star
62

stochasticity-practical

✨📈✨ Shiny application for stochasticity practical
R
3
star
63

OmicronSeverity

Source code to accompany Lancet Paper, Nyberg, Ferguson et al, March 2022
R
3
star
64

sarscov2-roadmap-england

HTML
3
star
65

esft

R
3
star
66

wodin-msc-idm-2023

R
3
star
67

tfpbrowser

Shiny app for tfpscanner
R
3
star
68

covid19_mainland_China_report

HTML
3
star
69

MissingCases

NetLogo
3
star
70

COVIDCurve

Simple Inference of age-specific IFRs for COVID-19 using a Bayesian statistical model
R
3
star
71

covid_global_impact

covid_global_impact
R
3
star
72

ccmpp.tmb

Cohort component population projection and reconstruction model in TMB
R
3
star
73

siR

🤒 Individual-based SIR models in R and Rcpp 🤒
R
3
star
74

bhrp

Code for linking Bellman Harris with Renewal Processes
R
3
star
75

typochallenge

☑️📆❎ Typo challenge
R
3
star
76

odin.dust

Compile odin to dust
R
3
star
77

POLICI_africa_south_america

Shiny app to show African and South American YF coverage
R
2
star
78

mint

Malaria Indicators Tool
TypeScript
2
star
79

mlesky-experiments

R
2
star
80

wodin-msc-idm-2022

R
2
star
81

drat

📦📦📦 drat repository
HTML
2
star
82

spimalot

R
2
star
83

hermione

R
2
star
84

YFestimation

R
2
star
85

outbreakteachR

Demonstration of analysis associated to "paper outbreak" teaching practical
HTML
2
star
86

MIPanalyzer

Filtering and analysis of MIP data
R
2
star
87

YFburden

R
2
star
88

global-lmic-reports-staging

Daily updated LMIC COVID-19 reports (Staging)
HTML
2
star
89

buildr

👷📦 Build packages on request
R
2
star
90

hint-deploy

Deployment tool for hint
Python
2
star
91

umbrella

☂️ Rainfall & Seasonality ☂️
R
2
star
92

cepi_retrospective_analysis

R
2
star
93

orderly2

R
2
star
94

msc-istda-2019

Introduction to Statistical Thinking and Data Analysis, MSc Epidemiology and MSc Health Data Analytics 2019
HTML
2
star
95

YellowFeverModelEstimation2019

R
2
star
96

beers

🍻 📦 Beers Interpolation and Subdivision (my first R package)
R
2
star
97

novel-data-streams

2
star
98

heartbeatr

💗💻💗 Redis heartbeat support
R
2
star
99

mrc-imperial-poster-template

TeX
2
star
100

icl-hbv

The HBV model developed at Imperial College London
MATLAB
2
star