Generating key points…
Answers are grounded in this paper and cite their sources.
ScoTox transmission-reduction analysis Code and data to reproduce the survival, extrinsic incubation period (EIP) and transmission-reduction (R0) analyses and figures for: A genetic system eliminates Zika-infected mosquitoes Authors: Sanjay Basu, David J. Kealy, Sarah Lumley, Paul J. Huxley, Barry Atkinson, Mathilde L. Schade-Weskott, Leo Uchida, Sara Rooney, Will Larner, Eugenia E. Montiel, Michelle A.E. Anderson, Rafael Gutierrez-Lopez, Emily Levitt, Henry M. Munyanduki, Ahmed M. E. Mohamed, Andrew T. Clarke, Sandra Koit, Eva Zusinaite, Rennos Fragkoudis, Neil M. Ferguson, Ilaria Dorigatti, Andres Merits, Christine M. Reitmayer, Luke Alphey. Full affiliations are in the Zenodo record metadata. Licence: [CODE LICENCE] (code); [DATA LICENCE] (data). Quick start for reviewers Install R (4.6.1 was used) and a C++ toolchain for Stan (Xcode command-line tools on macOS, Rtools on Windows, build-essential on Linux). Install the packages listed under "Software" below. Unzip the project anywhere and open scotox_modelling.Rproj in RStudio (see "Paths"). Run the scripts in scripts/ in order, from a fresh R session: 01_prepare_data.R, 02_fit_survival_models_main.R, 03_fit_tesla_eip_models_with_LOO.R, 04_calculate_transmission_outputs.R,05_make_figures.R. The full pipeline took about 15 minutes on a MacBook (macOS, Apple silicon, R 4.6.1). Almost all of that is Bayesian model fitting in scripts 02 and 03. Scripts 04 and 05 take about 15 seconds together. If you only want to check the figures and tables, you do not need to refit anything: results/ already contains every output, and results/fits/ contains the fitted brms models. Scripts 04 and 05 can be run directly from those saved fits (they read from results/fits/ and results/processed_data/). Folder contents Folder Contents scripts/ Numbered analysis scripts (run in order). 00_setup.R is sourced by the others. analysis_helpers/ Helper functions: data cleaning, survival models, EIP models, R0 calculations, plotting. data/ Input data (see "Input data"). results/tables/ CSV outputs (see "Outputs"). results/figures/ PNG figures. results/fits/ Fitted brms model objects (.rds, about 158 MB in total). results/processed_data/ Intermediate R objects passed between scripts (.rds). Input data All inputs are in data/. Do not rename them; the paths are set in scripts/00_setup.R. File Used by Description ScoTox Bloodmeal and IT infection and phenotype.xlsx script 01 Mosquito survival and phenotype records. Six sheets: Y006-Y008 are blood-meal replicates 1-3 and Y009-Y011 are intrathoracic (IT) replicates 1-3. Groups are LVP and ZZ-Cre/AaHIT mosquitoes given DMEM or ZIKV. simplified_F012_data.csv script 01 Daily counts per pot for the intrathoracic experiments: number at start of day, number surviving, deaths, and counts for stage 1 ("Full"), stage 2 ("Onset") and altered behaviour. InfectionData.csv script 03 Per-mosquito infection, dissemination and infectiousness by day and temperature. The analysis uses the 28 C data. [DATA SOURCE / CITATION FOR THIS DATASET] Software Versions used to generate the saved results: Package Version R 4.6.1 brms 2.23.0 (rstan 2.32.7 backend, the brms default) loo 2.10.0 posterior 1.7.0 tidyverse 2.0.0 (dplyr 1.2.1, tidyr 1.3.2, readr 2.2.0, stringr 1.6.0, purrr 1.2.2, tibble 3.3.1, ggplot2 4.0.3) readxl 1.5.0 magrittr used in script 04 mgcv 1.9.4 (spline smooths via brms) install.packages(c("tidyverse", "readxl", "magrittr", "here", "posterior", "loo", "mgcv", "brms")) rstan is installed with the instructions at https://mc-stan.org/rstan/ . Paths No path editing is needed. Scripts 00 to 05 set project_dir <- here::here(), which finds the project root from the scotox_modelling.Rproj file, so the folder can be unzipped anywhere. Open the project in RStudio (or start R inside the project folder) before running a script. All other paths (inputs, results/) are built from project_dir in 00_setup.R. What each script does Script Purpose Main outputs 00_setup.R Paths, output folders and shared constants (28 C, daily mortality range mu = 0.05-0.20, behaviour shift 0-8 days). None 01_prepare_data.R Cleans survival data and builds the aggregate daily datasets for the blood-meal and intrathoracic experiments. *_dn.csv, *_counts.csv, *_records.csv,results/processed_data/*_dn.rds 02_fit_survival_models_main.R Fits lognormal, gamma, Weibull and discrete-time hazard-spline survival models to six datasets and selects the best by survival RMSE. results/fits/*, *_survival_rmse_compare.csv, best_models.csv, survival_fit_diagnostics.csv 03_fit_tesla_eip_models_with_LOO.R Fits gamma, lognormal and Weibull EIP models to the 28 C infectiousness data and compares them by PSIS-LOO. tesla_28_*.csv, Tesla_EIP50_*.csv, tesla_eip_metadata.rds,Tesla_28_parametric_pmf.png 04_calculate_transmission_outputs.R Propagates survival and EIP uncertainty to the relative reduction in R0 and the maximum baseline R0 for suppression, across mu and the behaviour-shift scenarios. R0_sensitivity_*.csv, analysis_metadata.csv 05_make_figures.R Draws the figures. results/figures/*.png Outputs and figures File Description Figure1_relative_reduction_and_maxR0.png Main Figure 1 (panels A and B). Panels also saved separately as Figure1A_... and Figure1B_.... Figure_S1_EIP_and_bloodmeal_survival.png Supplementary Figure S1: Tesla EIP distribution and blood-meal survival fit. Figure_S2_intrathoracic_secondary_analysis.png Supplementary Figure S2: intrathoracic secondary analysis. *_all_survival_fits.png Supplementary comparison of all four candidate survival fits per dataset (blood-meal control and transgenic, IT death, IT behaviour). Tesla_28_parametric_pmf.png EIP probability mass functions for the three families. [MAP EACH FIGURE TO ITS NUMBER IN THE MANUSCRIPT IF THEY DIFFER.] Key tables in results/tables/: File Description R0_sensitivity_long_bloodmeal_only.csv,R0_sensitivity_long_with_intrath.csv Long-format results. Columns: route, temp, mu, shift_days, state, metric, median, lower, upper (95% credible interval), model_class(hazard spline or Weibull). R0_sensitivity_plot_subset_*.csv Subsets used for plotting. R0_sensitivity_long_two_survival_models_*.csv Hazard spline vs Weibull comparison. bloodmeal_relative_reduction_weibull_vs_spline.csv Model-form sensitivity summary. tesla_28_eip_loo_compare.csv PSIS-LOO comparison of gamma, lognormal and Weibull EIP models. tesla_28_parametric_summary.csv,tesla_28_gamma_eip_distribution.csv Posterior summaries of the EIP distribution. *_survival_rmse_compare.csv, best_models.csv Survival model comparison and selected models. survival_fit_diagnostics.csv Divergences, Rhat and effective sample size for every fitted model. analysis_metadata.csv Plain-language record of modelling choices and assumptions. Notes on the analysis The hazard-spline model is the primary survival model for all downstream R0 results; Weibull is kept as a model-form sensitivity. The EIP family is chosen by PSIS-LOO. Gamma has the best score, but the three families are practically indistinguishable (see tesla_28_eip_loo_compare.csv). The posterior median gamma PMF is used as a fixed input downstream, so the reported credible intervals reflect survival uncertainty only. The intrathoracic route is a secondary analysis. Reproducibility and known warnings Seeds are fixed in the helper functions. On the machine above, a complete re-run of scripts 02 to 05 reproduced every CSV and PNG byte-for-byte and gave identical posterior draws. Stan results can differ in the last digits across platforms and compilers, so tiny numerical differences on another system are expected. Script 02 prints a warning about 2 divergent transitions (of 16,000 draws). This comes from the hazard-spline fit to the intrathoracic altered-behaviour data (it_behaviour), where 100% of mosquitoes had died by the last observed day (the daily hazard is exactly 1). Rhat and effective sample sizes for that fit are acceptable. That fit appears only in the supplementary survival-fit comparison plot (IT_behaviour_all_survival_fits.png); it is not used in script 04 or in Figure 1, S1 or S2. Diagnostics for all 24 fitted models are in results/tables/survival_fit_diagnostics.csv. If something fails, restart R and re-run from script 01 in a clean session.
No takes yet. Share an insight, caveat, or question.
Basu et al. (2026) studied this question.
Synapse has enriched 8 closely related papers on similar clinical questions. Consider them for comparative context: