-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
69 lines (38 loc) · 3.12 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
---
title: "README"
author: "Loes Soetens"
date: "11 may 2017"
output: html_document
---
*Contactviz*: an analysis and visualization tool for contact tracing data
=================================================
*Contactviz* implements new methods for the exploration and analysis of contact tracing data, by taking into account that the data are censored. For a detailed explanation on the methods behind the estimation of the outbreak parameters, see (-link to article to be added-).
Installing *Contactviz*
-------------
To install the development version from github:
```{r install, eval=FALSE}
library(devtools)
install_github("lsoetens/Contactviz")
```
Then, to load the package, use:
```{r load}
library("Contactviz")
```
The package contains a shiny-app, which can subsequently be run with:
```{r run, eval=FALSE}
runContactviz()
```
The shiny-app `Contactviz` is available via a user-friendly web interface, running locally on the default web browser.
![data](https://github.com/lsoetens/Contactviz/blob/master/Figs/input_tabs_2.PNG)
The first tab 'data upload' specifies the data requirements. Currently only comma separated value (.csv) files are supported by the tool. On this github page, two example data sets can be downloaded (they are in the 'data' folder of this page). One is containing data on the smallpox outbreak in Tilburg, the Netherlands in 1951, and the other one contains simulated data.
![disease](https://github.com/lsoetens/Contactviz/blob/master/Figs/Disease_specific_settings_2.PNG)
The second tab is concerned with disease specific settings, such as the parameters on the incubation period or generation interval. For several infectious diseases the parameters are built-in, but they can also be adjusted manually. It also contains a slider for setting how strict you want to be in following-up contacts.
![outbreak](https://github.com/lsoetens/Contactviz/blob/master/Figs/Outbreak_specific_settings_2.PNG)
The third tab is on outbreak specific settings. The date of analysis ('current date') should be specified; it defaults to the date of onset of disease of the latest case in the dataset.
After uploading the data and setting the specific settings, one can press the 'plot output' button and subsequently a plot is shown at the bottom of the screen. It will take about 20 seconds for the plot to load, as it takes some time to estimate the outbreak parameters.
The download-button below the plot makes it possible to download the plot as a pdf-file.
![plot](https://github.com/lsoetens/Contactviz/blob/master/Figs/Plot_output_2.PNG)
This plot is the main output. It contains a time-oriented network of all cases (squares and diamonds) and contacts still in follow-up (horizontal red bars); the evolution of Rt during the outbreak; an epicurve; and the estimations of the attack rates for various exposure routes.
Next to this plot, the data itself can also be viewed in the other output- tab.
![table](https://github.com/lsoetens/Contactviz/blob/master/Figs/Plot_data_table.PNG)
For those who are familiar with R, an R script containing the code behind the Shiny app can be found in the R folder on this github page.