infection-delay-project

所属分类:C/C++基础
开发工具:Jupyter Notebook
文件大小:62KB
下载次数:0
上传日期:2022-02-08 11:03:27
上 传 者sh-1993
说明:  纸张代码:Yücel,S.G.,Pereira,R.H.M.,Peixoto,P.S.&Camargo,C.Q.(2023)。网络中心性的影响和...
(Code for Paper: Yücel, S.G., Pereira, R.H.M., Peixoto, P.S. & Camargo, C.Q. (2023). Impact of network centrality and income on slowing infection spread after outbreaks. Applied Network Science, 8(16). <https://doi.org/10.1007/s41109-023-00540-z>)

文件列表:
code (0, 2022-02-08)
code\effective_distance_and_SIR (0, 2022-02-08)
code\effective_distance_and_SIR\EpiCommute.py (16816, 2022-02-08)
code\effective_distance_and_SIR\SIR_preprocess.ipynb (8817, 2022-02-08)
code\effective_distance_and_SIR\SIR_run.py (1644, 2022-02-08)
code\effective_distance_and_SIR\calculate_effective_distances.ipynb (226206, 2022-02-08)
code\effective_distance_and_SIR\effective_distance_py_baseline.py (19673, 2022-02-08)
code\effective_distance_and_SIR\effective_distance_real_change.py (20311, 2022-02-08)
code\infection delay (0, 2022-02-08)
code\infection delay\calculate_infection_delay.py (2769, 2022-02-08)
code\infection delay\reorient_infection_delay_tables.py (1391, 2022-02-08)
code\preprocessing (0, 2022-02-08)
code\preprocessing\OD_matrix_clean_prepare.R (7728, 2022-02-08)
code\preprocessing\interpolation.ipynb (37324, 2022-02-08)
code\preprocessing\mobility_change.ipynb (3250, 2022-02-08)
code\results (0, 2022-02-08)
code\results\create_median_tables.ipynb (51124, 2022-02-08)
code\results\finalize_and_test.ipynb (17485, 2022-02-08)
code\results\map_viz.R (857, 2022-02-08)
code\results\paper_viz_script.R (5492, 2022-02-08)

# Infection Delay Data and Code This GitHub repository contains all of the code required for the preprocessing, implementation, and subsequent analysis of the Infection Delay Model paper. It also contains the raw data required for the project, along with effective distance inputs to the main models, and final result data sets. ## Data **Stored here: https://doi.org/10.5281/zenodo.5947174** The raw data folder contains the census and commuting data, along with their relevant shapefiles and labels. It also contains the shapefiles for the 2599 hexagons used in this analysis. The prelim_data folder contains the h3_IDs table, used to numerically identify hexagons (more info included in info file in folder). It also includes the commuting data, already preprocessed using code in the Effective Distance/SIR Model folder to filter out regions which do not have suitable data. The SIR_model_inputs folder has the mobility matrix based on the commuting data, and the population data (both already filtered to include suitable regions, same as above). The infection_delay_inputs folder contains the baseline and real mobility effective distance matrices. The mobility_data folder contains the raw mobility data from March - September 2020 (raw_mobility_data.csv), the mobility reductions across all hexagons with data around the lockdown (mobility_reduction.csv), and the mobility change (filtered_mobility_reduction.csv) used in the effective_distance_real_changes.py code, filtered for the regions which are suitable for the effective distance/SIR calculations. The result_data folder contains the tables used to generate the results, including the weighted median 10-day infection delay values for every region, the outbreak divided results, merged with income and centrality data. The final data files are 'weighted_hexagon_data.csv' and 'longford_outbreak_split_delays'. NOTE: The infection delay files take up 30+ GB of storage, and are not included here. In both mobility scenario, 2599 tables are generated, each with 2599 columns, representing the time series of every hexagon for every outbreak scenario. These are then duplicated in reorient_infection_delay_tables.py, to make them amenable to analysis. Full commuting data set, beyond that included in the raw data folder, can be found here http://www.metro.sp.gov.br/pesquisa-od/. ## Code ### 1. Preprocessing Contains the code for the interpolation of census and commuting survey data to the h3 hexagons. Also contains code for calculating hexagon cell mobility changes after lockdown and preprocessing the raw commuting data (processed commuting data in Zenodo repository). ### 2. Effective Distance/SIR Model (citations below) Once the preprocessing is complete, this directory contains the necessary steps to calculate the dominant path effective distances on the h3-interpolated commuting network. This includes both the baseline and real mobility reduction scenarios. The h3 hexagons used in the analysis must be filtered by coordinating across the SIR and effective distance files, to ensure that all conditions necessary to run the analyses are met. The hexagons must have mobility data immediately before and after the lockdown, and must meet a threshold in the population-commuter table in the SIR model's code. These steps are already incorporated in this repo's effective distance and commuting data. ### 3. Infection Delay Code Calculates the infection delay values for every region across all outbreak scenarios. The code outputs 2599 files, each one showing the infection delay values for every recipient location, for a given outbreak location. The other file changes the orientation so that each file represents the infection delay values for a single recipient location across all outbreak scenarios. ### 4. Results The results file first organizes the income and centrality data, then creates the weighted median infection delay values and the unweighted median infection delay values. It also divides the outbreak locations into top and bottom 50% in-degree centrality groups, and calculates each region's median infection delay under each income and centrality grouping. -------------------------------------------------------------------------------------------------- * Effective Distance code from: https://github.com/andreaskoher/effective_distance Iannelli, F., Koher, A., Brockmann, D., Hovel, P., & Sokolov, I. M. (2017). Effective distances for epidemics spreading on complex networks. Physical Review. E, 95(1–1), 12313. https://doi.org/10.1103/PhysRevE.95.012313 Note: adjustments to effective_distance code are made in effective_distance_real_changes.py to incorporate real mobility adjustments. * SIR Model code from: https://github.com/franksh/EpiCommute Schlosser, F., Maier, B. F., Jack, O., Hinrichs, D., Zachariae, A., & Brockmann, D. (2021). COVID-19 lockdown induces disease-mitigating structural changes in mobility networks. Proceedings of the National Academy of Sciences of the United States of America, 117(52), 32883–32890. https://doi.org/10.1073/PNAS.2012326117

近期下载者

相关文件


收藏者