Skip to main content
  • Home
  • Development
  • Documentation
  • Donate
  • Operational login
  • Browse the archive

swh logo
SoftwareHeritage
Software
Heritage
Archive
Features
  • Search

  • Downloads

  • Save code now

  • Add forge now

  • Help

https://doi.org/10.5281/zenodo.17250317
02 October 2025, 10:45:25 UTC
  • Code
  • Branches (0)
  • Releases (1)
  • Visits
    • Branches
    • Releases
      • 1
      • 1
    • fdf7e47
    • /
    • EmilieFinch-dengue-singapore-e2f227e
    • /
    • README.md
    Raw File Download

    To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used.
    Select below a type of object currently browsed in order to display its associated SWHID and permalink.

    • content
    • directory
    • snapshot
    • release
    origin badgecontent badge
    swh:1:cnt:8218ae051d32e2c25a92b10e7e54ececee4c4806
    origin badgedirectory badge
    swh:1:dir:591db6c1f83b45e89cee45406703c7c8ab3421ab
    origin badgesnapshot badge
    swh:1:snp:30886de14e43342b80ccc590672391e395022068
    origin badgerelease badge
    swh:1:rel:eb2febacff7df1a4ad8e98a4f0357c326a61cd41

    This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file.
    Select below a type of object currently browsed in order to generate citations for them.

    • content
    • directory
    • snapshot
    • release
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    Generate software citation in BibTex format (requires biblatex-software package)
    Generating citation ...
    README.md
    # dengue-singapore
    
    This repo contains code and data to support Finch _et al_ "Climate variation and serotype competition drive dengue outbreak dynamics in Singapore". This study quantifies the role of climate variation and serotype competition in shaping dengue risk in Sinapore using over 20 years of weekly case data, and integrates these findings into an early warning system framework able to predict dengue outbreaks up to 2 months ahead. Model fitting is performed in `INLA`. Climate and dengue case data are available in the `data` folder. Note that data on dengue serotype frequencies shown in Figure 1 are not included in this repo as they are not publicly available.
    
    To reproduce the analysis, open the .Rproj file. The following scripts read in the data and run the analysis:
    - [R/00_load-data.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/00_load-data.R)
    - [R/01_run-selected-models.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/01_run-selected-models.R)
    - [R/02_run-tscv-predictions.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/02_run-tscv-predictions.R)
    - [R/03_wolbachia-counterfactual.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/03_wolbachia-counterfactual.R)
    
    The following scripts contain functions needed for analysis. These do not need to be run seperately as they are sourced in the main workflow scripts.
    - [R/create-lagged-data_fn.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/create-lagged-data_fn.R)
    - [R/fit-inla_fn.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/fit-inla_fn.R)
    - [R/tscv-prediction_fn.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/tscv-prediction_fn.R)
    - [R/utils_fn.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/utils_fn.R)
    - [R/inla-counterfactual_fn.R](https://github.com/EmilieFinch/dengue-singapore/blob/main/R/inla-counterfactual_fn.R)
      
    Model outputs are included in the `output` folder and manuscript figures can be generated by knitting [reports/manuscript-figures.Rmd](https://github.com/EmilieFinch/dengue-singapore/blob/main/reports/manuscript-figures.Rmd).
    
    This analysis was performed using R 4.1.1 and INLA_21.11.22. This analysis was performed on a Mac OSX system with 32 Gb RAM and 10 cores. Please note the TSCV prediction step is computationally intensive and takes several hours to run under these specifications for a given forecast horizon.
    

    back to top

    Software Heritage — Copyright (C) 2015–2026, The Software Heritage developers. License: GNU AGPLv3+.
    The source code of Software Heritage itself is available on our development forge.
    The source code files archived by Software Heritage are available under their own copyright and licenses.
    Terms of use: Archive access, API— Content policy— Contact— JavaScript license information— Web API