Skip to content

Commit e8ff39c

Browse files
committed
Merging DESCRIPTION
2 parents 930bc37 + 75bdaa4 commit e8ff39c

200 files changed

Lines changed: 9179 additions & 802 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
# tabby2
2+
3+
A friendly user tool for visualizing state level TB predictions and interventions.
4+
5+
Online at https://ppmltools.org/tabby2
6+
7+
# Installation and Setup
8+
9+
Clone the project
10+
11+
git clone git@github.com:ppml/tabby2.git
12+
13+
Note that tabby2 makes use of Cario, a library in R which
14+
depends on having a few packages available.
15+
16+
On Debian based Linuxs this means having the following packages
17+
installed:
18+
19+
sudo apt install libgtk2.0-dev libcairo2-dev xvfb xauth xfonts-base libxt-dev
20+
21+
Now we can go ahead and install the R package dependencies:
22+
23+
# move into our project on terminal:
24+
cd tabby2/
25+
git checkout beta/
26+
R
27+
28+
# in R:
29+
devtools::install_deps("utilities/")
30+
devtools::install_deps("tabby1utilities/")
31+
32+
We will also need MITUS, the model of tuberculosis that Tabby2 renders the
33+
outcomes of.
34+
35+
# in terminal
36+
cd .. # clone MITUS next to tabby2, or any other directory works fine too
37+
git clone git@github.com:PPML/MITUS.git
38+
cd MITUS/
39+
R
40+
41+
# in R:
42+
devtools::install("./", dependencies=TRUE)
43+
44+
We also need the package MITUSCalibPlots, which handles the generation of
45+
calibration plots from stored data in the MITUS package.
46+
47+
# in terminal
48+
cd .. # clone MITUS_Calib_Plots next to tabby2, or any other directory works fine too
49+
git clone git@github.com:PPML/MITUS_Calib_Plots.git
50+
cd MITUS_Calib_Plots/
51+
R
52+
53+
# in R:
54+
devtools::install("./", dependencies=TRUE)
55+
56+
We also need the `tabus` package, the package which does fast reshaping of outcomes from MITUS
57+
for plotting with ggplot2.
58+
59+
# in terminal
60+
cd .. # clone reshape_mitus_results_for_tabby2 next to tabby2, or any other directory works fine too
61+
git clone git@github.com:ppml/reshape_mitus_results_for_tabby.git
62+
cd reshape_mitus_results_for_tabby/
63+
R
64+
65+
# in R:
66+
devtools::install("./", dependencies=TRUE)
67+
68+
Now we can run Tabby2
69+
70+
# in terminal
71+
cd ../
72+
cd tabby2/
73+
R
74+
75+
# in R:
76+
shiny::runApp()
77+

VERSION.md

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# Tabby2 Versioning System
2+
3+
This document provides the specification for how the Tabby2 versioning system
4+
should be used.
5+
6+
The purpose of the versioning system is to alert users of the Tabby2 web
7+
application to changes to Tabby2 which they may want to take note of.
8+
9+
### Location of the Version Number
10+
11+
The authority on the Tabby2 version number is specified in the
12+
`utilities/DESCRIPTION` file "Version:" line item.
13+
14+
This is done so that Tabby2 can render its version number in many places from
15+
one single source of authority.
16+
17+
### Changelog
18+
19+
The changelog providing brief descriptions of each version increment is
20+
stored in `utilities/inst/Rmd/changelog.Rmd`.
21+
22+
### Version Format
23+
24+
The format of the Tabby2 version is given by three numbers separated by two
25+
periods, e.g. "Tabby2 Version 2.0.1"
26+
27+
These version numbers are ordered in decreasing significance.
28+
29+
Changes to the first of these version numbers should indicate a major change in
30+
the scope of the project, such as changes in the funding source or
31+
methodological approach.
32+
33+
Changes to the middle of these version numbers should indicate a significant
34+
release, indicating the successful completion of another round of Scientific
35+
Web Tool Clearance at the Centers for Disease Control and Prevention has been
36+
performed for Tabby2.
37+
38+
Changes to the last of these version numbers reflect smaller changes to the
39+
contents of Tabby2 to which the user should be alerted, such as the expansion
40+
and improvement of the underlying model, improvements to the user interface, or
41+
changes which affect the numbers depicted in downloadable outcomes from the
42+
application.

globals.R

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,37 @@
1+
2+
geographies <- setNames(nm = state.abb, state.name)
3+
geographies[['US']] <- 'United States'
4+
geographies[['DC']] <- 'District of Columbia'
5+
6+
available_geographies <- geographies[scan_for_available_geographies(names(geographies))]
7+
8+
invert_geographies <- setNames(nm = unname(geographies), object = names(geographies))
9+
110
tabnames <- c(
211
about = "Introduction",
312
scenarios = "Scenarios",
413
predefined = "Predefined Scenarios",
5-
customscenarios = "Build Scenarios",
14+
customscenarios = "Build Custom Scenarios",
615
estimates = "Estimates",
716
timetrends = "Time Trends",
817
agegroups = "Age Groups",
918
calibration = "Comparison to Recent Data",
10-
# downloads = "Downloads",
1119
readmore = "Further Description",
20+
changelog = "Changelog",
1221
feedback = "Feedback"
1322
)
1423

1524
tabcontents <- list(
16-
about = uiOutput('aboutUI'),
25+
about = aboutUI(available_geographies),# uiOutput('aboutUI'),
1726
scenarios = NULL,
1827
predefined = standardInterventionsUI(),
1928
customscenarios = scenariosUI(),
2029
estimates = tabby1Estimates('tabby1'),
2130
timetrends = tabby1TimeTrends('tabby1'),
2231
agegroups = tabby1AgeGroups('tabby1'),
2332
calibration = comparison_to_recent_data(),
24-
# downloads = downloadsAndSettingsUI(),
2533
readmore = readmoreUI(),
34+
changelog = changelogUI(),
2635
feedback = feedbackForm()
2736
)
2837

inst/md/about.md

Lines changed: 31 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,33 @@
1-
Tabby2 is a web application providing predictions of future TB
2-
epidemiology in the United States under a range of different assumptions
3-
and policy scenarios. Users can select a health outcome and
4-
subpopulation of interest, then select one or multiple scenarios to
5-
compare. Results are displayed graphically, and following inputs from
6-
the user the graphs update automatically to reflect the new selections.
7-
Visualizations can be downloaded in various formats, and the estimates
8-
underlying the graphs can also be downloaded in tabular format.
1+
Tabby2 is a web application that provides projections of future tuberculosis
2+
(TB) epidemiology in the United States under a range of TB and LTBI testing and
3+
treatment scenarios that can be chosen by the user. The application includes
4+
several predefined scenarios, which explore changes in the care cascades for TB
5+
disease and latent TB infection (LTBI). The application also allows users to
6+
define new scenarios, which can project the impact of greater targeted testing
7+
and treatment of high-risk populations, or changes to the performance of
8+
current TB control programs. After specifying scenarios, users can select a
9+
health outcome and subpopulation of interest, and then view results of one or
10+
more of the scenarios they have specified. Results are displayed graphically,
11+
and these graphs can be adjusted based on user input to include additional
12+
results or focus on particular population subgroups. Visualizations can be
13+
downloaded in various formats, and the estimates underlying the graphs can also
14+
be downloaded in tabular format.
915

10-
The estimates shown by Tabby2 are based on a transmission-dynamic model
11-
of TB epidemiology in the US, incorporating TB transmission and natural
12-
history; TB drug resistance patterns; prior and future TB prevention and
13-
control; the impact of HIV on TB; heterogeneity in TB risks among
14-
US-born and foreign-born populations; and age-based differences in
15-
disease mechanisms and risk factor prevalence. Detailed methods
16-
(analytic methods, scenario and outcome definitions) and main results
17-
for this analysis are described in detail in "Prospects for tuberculosis
18-
elimination in the United States: results of a transmission dynamic
19-
model".
16+
The estimates shown by Tabby2 are based on a mathematical model of TB
17+
epidemiology in the United States, which incorporates TB transmission and
18+
natural history; prior and future TB prevention and control; heterogeneity in
19+
TB risks among U.S.-born and non-U.S.-born populations; and age-based
20+
differences in disease mechanisms and risk factor prevalence. This model has
21+
been fit to local data from each of the following high TB incidence states:
22+
California, Florida, Georgia, Illinois, Massachusetts, New Jersey, New York,
23+
Pennsylvania, Texas, Virginia, and Washington. The model has also been fit to
24+
aggregate data for the United States to allow national-level analyses. These
25+
analyses expand on an earlier study on future TB epidemiology in the United
26+
States (Menzies et al 2018. “Prospects for tuberculosis elimination in the
27+
United States: results of a transmission dynamic model” Am J Epid
28+
187(9):2011-2020) (<https://academic.oup.com/aje/article/187/9/2011/4995883>)).
29+
30+
This research was funded by the CDC, National Center for HIV, Viral Hepatitis,
31+
STD, and TB Prevention Epidemiologic and Economic Modeling Agreement (NEEMA, \#
32+
5U38PS004644-01).
2033

21-
This web tool was funded by the CDC, National Center for
22-
HIV, Viral Hepatitis, STD, and TB Prevention Epidemiologic and Economic
23-
Modeling Agreement (NEEMA, \# 5U38PS004644-01).

inst/md/changelog.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
# Changelog
3+
4+
5+
6+
<strong> This is Tabby2 version 2.0.0.</strong>
7+
8+
Version 2.0.0 represents the first version of Tabby2 which has
9+
passed the CDC Scientific Web Tool Clearance process.

0 commit comments

Comments
 (0)