-
Notifications
You must be signed in to change notification settings - Fork 147
Who covid 19 #1692
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Who covid 19 #1692
Changes from 8 commits
Commits
Show all changes
21 commits
Select commit
Hold shift + click to select a range
ee01c5c
PR for covid19 dataset
shapateriya 23ea55d
Merge branch 'master' into who_covid_19
shapateriya d19912e
updated files
shapateriya 7e6d716
updated the files as per gemini suggstion
shapateriya 7677965
updated the code as per gemini sugegstion v2
shapateriya 2521290
Merge branch 'master' into who_covid_19
shapateriya 07880ea
updated manifest.json
shapateriya ac18e15
added test data
shapateriya 3151ca7
Merge branch 'master' into who_covid_19
shapateriya 6d0e6e3
resolved internal comments
shapateriya f5f7c46
Merge branch 'master' into who_covid_19
shapateriya 2592216
updated pvmap
shapateriya 7a0a964
Merge branch 'master' into who_covid_19
shapateriya 8dbc5b6
updated pvmap
shapateriya 3992a9c
tmcf changes
shapateriya e7cdd24
updated files as per latest changes
shapateriya 14573a8
Merge branch 'master' into who_covid_19
shapateriya 361b6ec
updated files
shapateriya 3296a72
updated files
shapateriya 3eadeaa
updated manifest file
shapateriya b2f00fc
Merge branch 'master' into who_covid_19
shapateriya File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # covid_Covid_19 Dataset | ||
|
|
||
| - source: https://data.who.int/dashboards/covid19/cases?n=c | ||
|
|
||
| - type of place: Country Data | ||
|
|
||
| - statvars: Health | ||
|
|
||
| - years: 2021 to 2025 | ||
|
|
||
| - place_resolution: manually. | ||
|
|
||
| ### Release Frequency: P1Y | ||
|
shapateriya marked this conversation as resolved.
|
||
|
|
||
| ### How to run: | ||
|
|
||
| - To download the input file | ||
|
|
||
| `bash download.sh` | ||
|
|
||
| - StatVar Script | ||
|
|
||
| `python3 ../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/COV_VAC_UPTAKE_2021_2023.csv --pv_map=pvmap/COV_VAC_UPTAKE_2021_2023_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --config_file=common_metadata.csv --output_path=output/COV_VAC_UPTAKE_2021_2023` | ||
|
|
||
| `python3 ../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/COV_VAC_UPTAKE_2024.csv --pv_map=pvmap/COV_VAC_UPTAKE_2024_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --config_file=common_metadata.csv --output_path=output/COV_VAC_UPTAKE_2024` | ||
|
|
||
| `python3 ../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/WHO-COVID-19-global-monthly-death-by-age-data.csv --pv_map=pvmap/WHO-COVID-19-global-monthly-death-by-age-data_pvmap.csv --config_file=common_metadata.csv --statvar_dcid_remap_csv=remap/WHO-COVID-19-global-monthly-death-by-age-data_remap.csv --output_path=output/death_by_age` | ||
|
|
||
| `python3 ../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/WHO-COVID-19-global-daily-data.csv --pv_map=pvmap/WHO-COVID-19-global-daily-data_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --places_resolved_csv=place_resolver.csv --config_file=common_metadata.csv --output_path=output/global_daily_data` | ||
|
|
||
| `python3 ../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/WHO-COVID-19-global-hosp-icu-data.csv --pv_map=pvmap/WHO-COVID-19-global-hosp-icu-data_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --config_file=common_metadata.csv --statvar_dcid_remap_csv=remap/WHO-COVID-19-global-hosp-icu-data_remap.csv --output_path=output/global_hosp_icu_data` | ||
|
|
||
| #### Refresh type: Fully Autorefresh | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| Node: E:data->E0 | ||
| observationDate: C:data->observationDate | ||
| observationAbout: C:data->observationAbout | ||
| observationPeriod: C:data->observationPeriod | ||
| value: C:data->value | ||
| unit: C:data->unit | ||
| variableMeasured: C:data->variableMeasured | ||
| typeOf: dcs:StatVarObservation |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| parameter,value | ||
| header_rows,1 | ||
| output_columns,"observationAbout,observationDate,variableMeasured,observationPeriod,value,unit,scalingFactor" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| #!/bin/bash | ||
| # Script to download all five WHO COVID-19 datasets | ||
|
|
||
| # Set path variable for cleaner reading | ||
| PYTHON_UTIL="../../util/download_util_script.py" | ||
| OUTPUT_DIR="input_files/" | ||
| mkdir -p "$OUTPUT_DIR" | ||
|
|
||
| # 1. Archived Vaccine Uptake (2021-2023) | ||
| python3 "$PYTHON_UTIL" --download_url=https://srhdpeuwpubsa.blob.core.windows.net/whdh/COVID/COV_VAC_UPTAKE_2021_2023.csv --output_folder="$OUTPUT_DIR" | ||
|
|
||
| # 2. Current Vaccine Uptake (2024) | ||
| python3 "$PYTHON_UTIL" --download_url=https://srhdpeuwpubsa.blob.core.windows.net/whdh/COVID/COV_VAC_UPTAKE_2024.csv --output_folder="$OUTPUT_DIR" | ||
|
|
||
| # 3. Global Daily Data | ||
| python3 "$PYTHON_UTIL" --download_url=https://srhdpeuwpubsa.blob.core.windows.net/whdh/COVID/WHO-COVID-19-global-daily-data.csv --output_folder="$OUTPUT_DIR" | ||
|
|
||
| # 4. Global Hospitalization/ICU Data | ||
| python3 "$PYTHON_UTIL" --download_url=https://srhdpeuwpubsa.blob.core.windows.net/whdh/COVID/WHO-COVID-19-global-hosp-icu-data.csv --output_folder="$OUTPUT_DIR" | ||
|
|
||
| # 5. Monthly Deaths by Age Data | ||
| python3 "$PYTHON_UTIL" --download_url=https://srhdpeuwpubsa.blob.core.windows.net/whdh/COVID/WHO-COVID-19-global-monthly-death-by-age-data.csv --output_folder="$OUTPUT_DIR" | ||
|
|
||
| echo "All 5 download jobs complete." | ||
|
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,50 @@ | ||
| { | ||
| "import_specifications": [ | ||
| { | ||
| "import_name": "who_covid_19", | ||
| "curator_emails": [ | ||
| "support@datacommons.org" | ||
| ], | ||
| "provenance_url": "https://data.who.int/dashboards/covid19/cases?n=c", | ||
| "provenance_description": "World Health Organization's (WHO) raw data and statistical releases covering global COVID-19 cases, deaths, hospitalizations, and vaccination coverage", | ||
| "scripts": [ | ||
| "download.sh", | ||
| "../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/COV_VAC_UPTAKE_2021_2023.csv --pv_map=pvmap/COV_VAC_UPTAKE_2021_2023_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --config_file=common_metadata.csv --output_path=output/COV_VAC_UPTAKE_2021_2023", | ||
|
shapateriya marked this conversation as resolved.
Outdated
|
||
| "../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/COV_VAC_UPTAKE_2024.csv --pv_map=pvmap/COV_VAC_UPTAKE_2024_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --config_file=common_metadata.csv --output_path=output/COV_VAC_UPTAKE_2024", | ||
| "../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/WHO-COVID-19-global-monthly-death-by-age-data.csv --pv_map=pvmap/WHO-COVID-19-global-monthly-death-by-age-data_pvmap.csv --config_file=common_metadata.csv --statvar_dcid_remap_csv=remap/WHO-COVID-19-global-monthly-death-by-age-data_remap.csv --output_path=output/death_by_age", | ||
| "../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/WHO-COVID-19-global-daily-data.csv --pv_map=pvmap/WHO-COVID-19-global-daily-data_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --places_resolved_csv=place_resolver.csv --config_file=common_metadata.csv --output_path=output/global_daily_data", | ||
| "../../tools/statvar_importer/stat_var_processor.py --input_data=input_files/WHO-COVID-19-global-hosp-icu-data.csv --pv_map=pvmap/WHO-COVID-19-global-hosp-icu-data_pvmap.csv --existing_statvar_mcf=stat_vars.mcf --config_file=common_metadata.csv --statvar_dcid_remap_csv=remap/WHO-COVID-19-global-hosp-icu-data_remap.csv --output_path=output/global_hosp_icu_data" | ||
| ], | ||
| "import_inputs": [ | ||
| { | ||
| "template_mcf": "output/COV_VAC_UPTAKE_2021_2023.tmcf", | ||
| "cleaned_csv": "output/COV_VAC_UPTAKE_2021_2023.csv" | ||
| }, | ||
| { | ||
| "template_mcf": "output/COV_VAC_UPTAKE_2024.tmcf", | ||
| "cleaned_csv": "output/COV_VAC_UPTAKE_2024.csv" | ||
| }, | ||
| { | ||
| "template_mcf": "output/death_by_age.tmcf", | ||
| "cleaned_csv": "output/death_by_age.csv" | ||
| }, | ||
| { | ||
| "template_mcf": "output/global_daily_data.tmcf", | ||
| "cleaned_csv": "output/global_daily_data.csv" | ||
| }, | ||
| { | ||
| "template_mcf": "output/global_hosp_icu_data.tmcf", | ||
| "cleaned_csv": "output/global_hosp_icu_data.csv" | ||
| } | ||
| ], | ||
| "source_files": [ | ||
| "COV_VAC_UPTAKE_2021_2023.csv", | ||
| "COV_VAC_UPTAKE_2024.csv", | ||
| "WHO-COVID-19-global-monthly-death-by-age-data.csv", | ||
| "WHO-COVID-19-global-daily-data.csv", | ||
| "WHO-COVID-19-global-hosp-icu-data.csv" | ||
| ], | ||
| "cron_schedule": "0 0 1 1 *" | ||
|
shapateriya marked this conversation as resolved.
Outdated
|
||
| } | ||
| ] | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.