Skip to content

Imperial group malaria modelling for the Vaccine Impact Modelling Consortium

Notifications You must be signed in to change notification settings

mrc-ide/VIMC_malaria

Repository files navigation

VIMC Malaria modelling

This repository contains code used to estimate the impact of malaria vaccines on cases, deaths, and DALYs from 2000-2100 for the Vaccine Impact Modelling Consortium (VIMC). More information on the VIMC can be found here. This workflow is written in orderly2, a package designed to facilitate reproducible analysis. Source code is found in the /src folder, with the name of each folder corresponding to the name of each report. The following reports + actions are run chronologically to produce final estimates, with more detail below. The helper functions developed for this workflow can be found in the vimcmalaria package.

Quick Start

In order to run this workflow, run the "workflow.R" script.

  • Process_inputs formats the input files needed for this workflow.
  • Process_country parameterizes, models, and postprocesses outputs used to estimate vaccine impact.
  • Scale_and_plot scales outputs based on World Malaria Report estimates, then plots outputs.

Save input files

VIMC model inputs are saved locally and not tracked on this repository due to large size and privacy issues. VIMC inputs and site files should be saved under /src/process_inputs/vimc_inputs and /src/process_inputs/site_files, respectively. Contact Lydia for access to these files.

Run process inputs report

This only needs to be run one time for each country, if VIMC inputs and site files do not change.

Change input parameters

The following parameters must be changed for each run:

  • iso3c: country/countries you would like to run models for
  • draw: parameter draw value for model run. For median parameter values, set to 0.
  • description: description of the reason for a certain model run. Make sure to change this value for each run, unless you seek to overwrite pre-existing outputs.
  • quick_run: Boolean, for whether you would like to run a test model or the full simulation. A test model produces outputs with wider age bands and a shorter time horizon (2000-2035), in order to optimize model run time. Preferable to set to TRUE when testing models locally, debugging changes, etc.
  • scenario: scenario you would like to run models for. Options:
    • 'no-vaccination': No vaccines implemented
    • 'r3-default': Initial series of R21, based on GAVI forecasts.
    • 'r3-r4-default': Full series of R21 (with booster), based on GAVI forecasts.
    • 'rts3-bluesky': 90% coverage of initial series of RTS,S for entire modelling period
    • 'rts3-default': Initial series of RTS,S, based on GAVI forecasts.
    • 'rts3-rts4-bluesky': 90% of full series of RTS,S (90% coverage for entire modelling time period)

The make_parameter_map function will create input parameter data frames (at the site and country level) for all of the sites in the 31 VIMC-modelled countries, as well as each VIMC vaccination scenario.

Run process country and scale_and_plot for all countries, parameter draws, and scenarios of interest

This reports must be run in chronological order for all of the sites in a country for the vaccine scenario of interest. The code to run these reports can be found here. Note that given long run time, you will likely prefer to launch models on the cluster. Ensure orderly2, malariasimulation, dplyr, and data.table are installed in your cluster environment before launching models or they will fail.

Other notes

This workflow can be quite space-intensive (particularly when running models for all sites in the 31 VIMC input countries). It is worthwhile to monitor the size of this repository and regularly clean out non-final reports.

Methods documentation

Process inputs

Process external inputs for country of interest, including site file, demographic, and vaccine coverage data ("process_inputs"). Reads in and saves the following inputs by country:

  • Site file (characterizing the level and pattern of transmission in an admin 1 unit, in addition to intervention coverage and vector species)
  • Life expectacy by age (from VIMC)
  • Mortality rate (from VIMC)
  • Population size (from VIMC)

These reports should only be run once, then rerun if inputs change.

Parameterize model

Parameterize model. Models are run with single year age groups from 0 to 100, from 2000-2100. The process_coutnry script pulls in the corresponding site file for an admin 1 unit, which characterizes the pattern on malaria transmission in this area. The interventions component of the site file is modified based on the VIMC scenario of interest, specifying the coverage and booster coverage for each year of the simulation (for either RTS,S or R21). These values are added to the site file via the following columns: rtss_coverage, rtss_booster_coverage, r21_coverage, and r21_booster_coverage. We additionally added the columns vaccine to specify whether the vaccine scenario is RTS,S or R21; and scenario_type to specify whether a routine or optimal (blue-sky) scenario is being implemented.

R21 vaccine profile parameters are obtained from the pre-print "The Public Health Impact and Cost-Effectiveness of the R21/Matrix-M Malaria Vaccine: A Mathematical Modelling Study", in which a semi-mechanistic vaccine efficacy model was fit to phase 2b R21 trial data on children observed over 12-18 months of follow-up in Nanoro, Burkina Faso. The median vaccine efficacy parameters used are found in the table below.

image

We additionally carry over intervention coverage from the last observed year (typically 2023) out to 2100, assuming constant values for the remainder of the simulation period. Note that insecticide-treated net (ITN) usage follows a 3-year cyclical pattern based on administrated and time-based waning of net efficacy-- the pattern of the last 3 year cycle observed is carried out for the remainder of the simulation period, to capture this temporal trend. We utilize a modified version of the site package to translate site file inputs into malariasimulation parameters. The package is found here. The add_interventions() function in the site file was modified to impose flat booster coverage depending on scenario and pull in median R21 vaccine profile parameters in addition to RTS,S. The modified source code for this function is found below:

Launch model

Run malariasimulation model. If you would like to obtain an estimate of model run time, test this report locally before launching on the cluster.

Postprocess outputs

Outputs are processed in the following steps.

  • get_rates() from the postie package is used to estimate incidence, mortality, YLD, YLL, and DALY rates from model outputs. Note that these rates are based on the population size used to run the model, not the real-world population size of the site modelled. DWs for malaria are sourced from the Global Burden of Disease study. For the purposes of VIMC modelling, we ignore malaria GBD disability weights for comorbid conditions such as anemia and motor impairiment. For documentation on the DW values used, see source code here.
  • Because the VIMC utilizes country-specific life-expectancy, YLLs and DALY rates are recalculated based on these inputs.
  • Rates are multiplied by site population to estimate cases, deaths, and DALYs from 2000-2050.
  • We scale site file populations such that the sum of site file populations is equivalent to the national VIMC population.
  • From 2050 onward, site population is estimated as (national population in year) * [(scaled site population in 2050)/ (national population in 2050)]. We assume that the proportional breakdown of population by site is fixed from 2050-2100, in the absence of other data.

Aggregate outputs up to country level ("process_country") via simple summation.

Produce country diagnostics

Produce diagnostic report. Note that for this report to run properly, you must have processed outputs (from "process_country") for the no-vaccination scenario in addition to the intervention scenario you specify. You cannot run a diagnostic report for the no-vaccination scenario alone.

About

Imperial group malaria modelling for the Vaccine Impact Modelling Consortium

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published