magenta is an individual-based simulation model of malaria epidemiology and parasite genetics, which was designed to extends the Imperial malaria model by tracking the infection history of individuals. With this addition, genetic characteristics of the parasite can be assessed for looking at both neutral genetic variation as well as loci under selection.
The model is written in C++/Rcpp and interfaced with R, incorporating both the deterministic version of the Imperial College Transmission model developed by Joel Hellewell and Hannah Slater, which helps initialise the model near equilbrium. In addition it is used to quickly the mosquito feeding behaviour, which is passed to magenta in order to increase its speed.
magenta is installed from github with:
#install.packages("devtools")
devtools::install_github("OJWatson/magenta")Note that on Windows, a toolkit (Rtools) needs to be installed separately for devtools to work.
Once installed, the package can be loaded using:
magenta is documented on a dedicated website.
This includes the following vignettes:
magenta and how to use itVignettes are pre-evaluated. The editable sources are in vignettes_src/ and are built into vignettes/ with Rscript vignettes_src/build_vignettes.R, so that building the package never re-runs a simulation.
Maintainer: OJ Watson (o.watson15@imperial.ac.uk)