Estimating farm-to-farm disease transmission using pathogen genetic and animal movement data
We integrate transmission tree analysis (https://github.com/xavierdidelot/TransPhylo) with social network analysis to uncover the livestock farm-level disease transmission link. Series of pathogen genetic data collected from multiple farm outbreaks along with corresponding animal movement data are recommended to be an input of this analysis.
Time resolved phylogenetic tree must be created from the well-aligned pathogen genetic sequences via BEAST software (https://beast.community/).
- Time resolved phylogenetic tree (NEXUS format from BEAST MCC tree) of pathogen's genetic sequences; beastmcc.tree
- Metadata of the sequence samples including at least ID of isolates, sampling date, and farm premises; metadata.csv
- Animal movement data comprising origin (tail), destination (head), and date of shipment; movement.csv
- Metadata spreadsheet may include farm production type, herd size, or farm's geographical coordinates
- All other farms' coordinates in the area where the samples were collected may be used for farm's spatial point density calculation; locationall.csv
- Open "Restimation-ergm.R"
- Install all required packages (first 10 lines)
- At line 12 of the script: change "x" to "path to your working directory" that keeps the input files
- Run them all!
- Transphylo's transmission tree: MCMC diagnostics (trace & ESS) and colored transmission tree
- Infection chain length (ICL; animal level) vs Movement path-length (MPL; farm-level): Normality test, Pearson's correlation, and linear regression plot
- Farm-level reproduction number (R) estimation: Boxplot of ICL ~ MPL with the cut-off value at MPL = 1 and statistic summary of the farm-level R
- Dyads: dyadic relationship between all samples, including transmission link (1,0), movement path-length (steps), sampling interval (days), and distance between farms (km)
- Node attributes: same as the metadata file plus sampling season, farm's spatial point density, and in-degree and out-degree of the 6-month period (according to sampling date) movement network