Skip to content

Code for reproducing the results from the preprint "Estimating the date of emergence of an epidemic outbreak from detection data: Applications to COVID-19".

License

Notifications You must be signed in to change notification settings

JuliaEpi/estimate-emergence-from-data

 
 

Repository files navigation

Estimate emergence from data

Code for reproducing the results from the preprint:

Using early detection data to estimate the date of emergence of an epidemic outbreak

Sofía Jijón1, Peter Czuppon2, François Blanquart3 and Florence Débarre4

1Institute of ecology and environmental sciences of Paris (iEES Paris, UMR 7618), Sorbonne Université, CNRS, UPEC, IRD, INRAE, Paris 75005, France

2Institute for Evolution and Biodiversity, University of Münster, Germany

3Center for Interdisciplinary Research in Biology, CNRS, Collège de France, PSL Research University

URL: Preprint

Abstract

While the first infection by an emerging disease is often unknown, information on early cases can be used to date it, which is of great interest to trace the disease's origin and understand early infection dynamics. Here, we extend the method presented in (Czuppon et al., 2021) to estimate the time series from emergence (i.e., infection of the first human case by the focal disease or variant) to the detection of N cases. We run numerical simulations of infectious disease spreading from a single infectious individual and calibrate the model to reproduce the observed cases in two main epidemiological contexts (the emergence of the Alpha SARS-CoV-2 variant in the UK and the early cases of COVID-19 in Wuhan), but the code was built in a generic form to facilitate applications to other datasets. The main outcome of our model is the expected time to N detected cases.

Contents

  • Data/ contains the files containing the time series of the early cases we use to calibrate the model for different epidemiological contexts, as well as the emergence or tMRCA estimates from previously published studies.

  • Routines/ contains the functions used repeatedly in each application.

  • SetParameters_EpiContext/ contains the parameterizations for each application of the model

  • Fig1-2_Emergence/ and Fig3_Sensitivity Analyses/ contain the codes to reproduce the results (.jl) and figures (.R) presented in the main text. See more details in the Readme.md files contained in each folder.

  • Fig4_ModelDiagram/ plots a simplified diagram of the model (TikZ, .tex).

Implementation details

Simulations are built in Julia version 1.8.0.

Figures are built in R version 4.1.2, using the ggplot2 package version 3.3.

About

Code for reproducing the results from the preprint "Estimating the date of emergence of an epidemic outbreak from detection data: Applications to COVID-19".

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 51.7%
  • Julia 42.1%
  • TeX 6.2%