Welcome to the GitHub repository for Unpacking sources of transmission in HIV prevention trials with deep-sequence pathogen data – BCPP/ Ya Tsie study.
This repo is organized as follows:
Software | Version |
---|---|
R | 4.1.2 |
Stata (optional) | 13.1 |
Note that Stata is required only if you would like to run the script: estimate_transmission_risk.do
Clone the spillover-infections repo and change directory into it
git clone git@github.com:magosil86/spillover-infections.git
cd spillover-infections
You're all set! Now for some examples
R version
estimate_transmission_risk.r
Notes
- This script will fit models to estimate the risk of transmission between communities and save the models in the workspace:
estimate_transmission_risk.rda
- Pre-run models are available at:
bcpp_spillovers/results/estimate_transmission_risk.rda
- Tip! To view the pre-run models in R:
# Load workspace
load(bcpp_spillovers/results/estimate_transmission_risk.rda)
# Load libraries
library(dplyr) # needed for sorting and merging data.frames
library(tidyr) # needed for combining or splitting fields
library(MASS) # for predicting fitted values and fitting negative binomial models
# View post-baseline model
nb_glm_offset_ln_sample_oc_same_comm_linear_post_baseline
# View baseline model
nb_glm_offset_ln_sample_oc_same_comm_linear_baseline_2
Stata version
estimate_transmission_risk.do
estimate_preventable_trms_with_nationwide_intervention.r
Notes
- This script produces a .csv file named:
preventable_trms_nationwide_intervention.csv
- The .csv file contains three columns:
- mean estimate of preventable transmissions
- 95% lower confidence bound
- 95% upper confidence bound
- Pre-processed output is available at:
bcpp_spillovers/results/preventable_trms_nationwide_intervention.csv
And that's it, you are all set!
- To ask questions, learn about updates, or just interact with other users, please use the Github Discussions forum.
- To suggest new features or report bugs, please file an issue.
Contributions are welcome. Please observe the Contributor Code of Conduct when participating in this project.
Lerato E. Magosi, Eric Tchetgen Tchetgen, Vlad Novitsky, Molly Pretorius Holme, Janet Moore, Pam Bachanas, Refeletswe Lebelonyane, Christophe Fraser, Sikhulile Moyo, Kathleen E. Hurwitz, Tendani Gaolathe, Ravi Goyal, Joseph Makhema, Shahin Lockman, Max Essex, Victor De Gruttola, & Marc Lipsitch (2024) Unpacking sources of transmission in HIV prevention trials with deep-sequence pathogen data – BCPP/ Ya Tsie study
Lerato E. Magosi, Victor De Gruttola and Marc Lipsitch.
Lerato E. Magosi magosil86@gmail.com or lmagosi@hsph.harvard.edu
See the LICENSE file.