Skip to content

Analysis scripts for the paper "Atmospheric aerosol and the occurrence of localized meningitis epidemics: an ecological analysis of high spatial resolution data in Burkina Faso"

Notifications You must be signed in to change notification settings

MaximeMaW/MeningitisDustDynamics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Supporting analyses for the paper “A health-center level analysis of bacterial meningitis putative risk factors in Burkina Faso: operational perspectives”

Here are the scripts used to derive the figures of the paper “A health-center level analysis of bacterial meningitis putative risk factors in Burkina Faso: operational perspectives” (manuscript in preparation). The aim is to make sure that the analyses are fully reproducible, that is:

  • The full dataset will be available upon request. They remain the property of the Direction de la Lutte contre la Maladie, Burkina Faso
  • The preprocessing and analysis scripts are made public here

This document is organized as follows:

  1. Organization of the repository: where to find the analyses, the scripts, etc.
  2. Processed data: we introduce the intermediate analysis files that were derived and then used for the analysis
  3. Figures: we introduce the rationale and the key steps of the analysis behind each figure (this do not prevent you from reading the code)
  4. Additional analyses: additional analysis that might be of interest, even if they didn’t end up in the paper.

These scripts are released under the GNU General Public License v3 or newer (GPLv3+). This means that you have the right to use, to study and modify the code and to share the modifications. Please keep a mention of the initial author.

Also, the scripts are written in R. Sometimes the code might be hard to read/hard to follow, feel free to contact the authors for clarification.

Organization of the repository

File architecture

Disclaimer: this repository do not contain the datasets. These datasets are available upon request at the DLM or from the corresponding author.

The repository is organized in several folders and subfolders:

  1. scripts: this folder contains only the scripts to generate the data.
  2. figures: this folder contains the figures that were included in the manuscript. The output might not be exactly the same as the ones you obtain when running the script. One of the explanations is that sometimes, the figures have been edited with the Inkscape software (to adjust the layout, add arrows, change colours, etc).
  3. README.org: this instructions file

The analyses are split by “categories”:

  1. aot_plots: about the joint analysis of meningitis data and AOT fields
  2. cluster_analysis: about the derivation of a fine characterization of single epidemic clusters
  3. cluster_example: about the computation of the the spatio-temporal K-Ripley functions, and the resamplings to seek for a null and a generative model.
  4. data_completeness: provides various statistics about the quality of the dataset, including the validation with respect to other sources of data.
  5. data_statistics: some statistics about the datasets
  6. early_cases: includes the analyses related to the influence of early cases on meningitis epidemics.
  7. meningitis_belt: extraction of the meningitis belt from Giovanni.

In the scripts/ folder are the .R scripts and in the figures/ folder the .pdf exports, and if needed, the .svg that creates the final figure.

Fig.DescriptionFolderScript
1Rain levels on the meningitis beltmeningitis_beltN/A
2Completeness of the datasetdata_completenessfig_data_completeness.R
3Sample high incidence eventsdata_completenessfig_data_completeness.R
4Types of epidemic clusterscluster_examplefig_clustering.R
5K-Ripley vs. null modelcluster_examplefig_clustering.R
6K-Ripley vs. generative modelcluster_examplefig_clustering.R
7Examples of single clusterscluster_analysisfig_cluster_analysis
and clustanalis.R
8Temporal link between epidemics/AOTaot_plotsfig_aot.R
9Time-space matrix of AOT/meningitisaot_plotsfig_nospatial_corr.R
10Enrichment near meningitis onsetaot_plotsfig_nospatial_corr.R
11ROC curve
12Epidemics with various thresholdsaot_plotsfig_nospatial_corr.R
13Geolocalization of the HCdata_completenessmap_hc.R
14Choice of the spatial aggregation
15Effect of spatial threshold on cities
16Statistics on the clusters
17Dynamics of the clusters (cases)
18Dynamics of the clusters (incidences)

For some figures, I haven’t taken the time to format a proper working code. Please contact us if you need it. The tables can be generated with the code in the early_cases/ folder. Some extra numbers mentioned in the text are generated in the data_statistics/ folder.

Running the scripts

All the scripts depend on a toolbox called utilitaires.R (included in the scripts folder). Make sure that R can access it. In many cases, one script generates several figures. It might be possible to run the chunks separately if you are only interested in one figure or in one panel (but be careful with side-effects). Also, sometimes you have the choice to either recompute a heavy analysis or to directly load a preprocessed version. The choice is usually performed by switching a flag to TRUE or FALSE.

The scripts have various dependencies. Make sure that they are installed and that you have placed the datasets at the right locations (which is usually NOT next to the analysis script) before you start. Dependencies include (but not only):

  • reshape
  • zoo
  • RColorBrewer
  • classInt
  • rgdal
  • rgeos
  • maptools
  • viridis
  • fields
  • scales
  • spatstat
  • stpp
  • ISOweek
  • ncdf4
  • reshape2
  • parallel
  • stringr

Processed datasets

These scripts depend on various sources of data that are described below:

Figures

Additional analyses

About

Analysis scripts for the paper "Atmospheric aerosol and the occurrence of localized meningitis epidemics: an ecological analysis of high spatial resolution data in Burkina Faso"

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages