Hide code
library(here) # directory management
library(tidyverse) # data wrangling
options(dplyr.summarise.inform = FALSE)
library(pals) # color palettes for figures
The challengeABM package includes the simulate_room_to_room() function for simulating virus transmission between cattle. At simulation start, cattle (agents) are divided among five isolated rooms, with two donor cattle in Room 1, and four cattle in each of the other rooms, Rooms 2-5. On simulation hour 1, the two donor cattle are inoculated by a virus. The donor cattle remain isolated from other cattle for a 24hr period, then at the 24hr mark, the donor cattle (now infected) are moved to Room 2. At the next 24hr interval (48 hours since start of simulation), the donor cattle leave Room 2 and proceed to Room 3, where they remain for a 24hr period. The process continues with donors moving to Room 4 at 72hrs and finally Room 5 at 96hrs. The status of individual virus loads, clinical presentation (score), and other factors are recorded on an hourly basis.
Depending on the quantity of virus in the donor cattle and chance contacts, they may or may not infect others. The quantity of virus in nasal passages and in blood serum has been calibrated to match the experimental study described in the analysis with parameters recorded in the base_config_fmdv.yaml configuration file that is available with this script.
Load needed libraries:
Simulation code is available here: challengeABM. The GitHub site includes an Overview, Design concepts, Details document.
Set random seed for reproducible runs.
Run the simulation based using a configuration file with needed parameters..
View change in nasal and virus quantities within individual animals.
View the disease status of individual animals.
Running the model with the below seed will produce a comparable result to the animal experiment outcome.
View the disease status of Group 2 animals. Note that donors did not become infectious until after more than 48 hours post inoculation. As a result, Group 2 animals exposed to donors during the 24-48hour period did not become infected. Also note that two infected animals never progressed to clinical disease.