All Projects → neherlab → covid19_scenarios_data

neherlab / covid19_scenarios_data

Licence: other
Data preprocessing scripts and preprocessed data storage for COVID-19 Scenarios project

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to covid19 scenarios data

coronavirus
covid-19 data in J
Stars: ✭ 15 (-65.12%)
Mutual labels:  coronavirus, covid-19, covid, sars-cov-2
data2019nCoV
COVID-19 Pandemic Data R Package
Stars: ✭ 40 (-6.98%)
Mutual labels:  ncov, coronavirus, covid-19, covid
Covid 19 Data
Data on COVID-19 (coronavirus) cases, deaths, hospitalizations, tests • All countries • Updated daily by Our World in Data
Stars: ✭ 4,702 (+10834.88%)
Mutual labels:  coronavirus, covid-19, covid, sars-cov-2
rid-covid
Image-based COVID-19 diagnosis. Links to software, data, and other resources.
Stars: ✭ 74 (+72.09%)
Mutual labels:  research, coronavirus, covid-19, covid
corona tracker
COVID-19 tracking app - submission for https://wirvsvirushackathon.org/
Stars: ✭ 13 (-69.77%)
Mutual labels:  coronavirus, covid-19, covid, sars-cov-2
Ncovmemory
2020新冠肺炎记忆:报道、非虚构与个人叙述(持续更新) Memory of 2020 nCoV: Media Coverage, Non-fiction Writings, and Individual Narratives (Continuously updating)
Stars: ✭ 11 (-74.42%)
Mutual labels:  ncov, coronavirus, covid-19
Coronavirus Tracker Api
🦠 A simple and fast (< 200ms) API for tracking the global coronavirus (COVID-19, SARS-CoV-2) outbreak. It's written in python using the 🔥 FastAPI framework. Supports multiple sources!
Stars: ✭ 1,577 (+3567.44%)
Mutual labels:  ncov, coronavirus, covid-19
COVID breakdown
COVID-19 statistics in Taiwan
Stars: ✭ 15 (-65.12%)
Mutual labels:  coronavirus, covid-19, covid
CoronaVirus-2019-nCoV-Live-Tracking
CoronaVirus(COVID-19) Live Map Tracker Android Kotlin App
Stars: ✭ 43 (+0%)
Mutual labels:  outbreak, coronavirus, covid-19
red-cross
官方公示数据概览
Stars: ✭ 18 (-58.14%)
Mutual labels:  ncov, coronavirus, covid-19
Projeto-EAR-Celso
e-AR - Emergency Ventilator
Stars: ✭ 17 (-60.47%)
Mutual labels:  ventilator, coronavirus, covid-19
BioExplorer
The Blue Brain BioExplorer (BBBE) is a tool for scientists to extract and analyze scientific data from visualization and interactive exploration
Stars: ✭ 18 (-58.14%)
Mutual labels:  science, coronavirus, sars-cov-2
covid-19-sg
Visualising COVID-19/Coronavirus cases and cluster zones in Singapore
Stars: ✭ 15 (-65.12%)
Mutual labels:  ncov, coronavirus, covid-19
CoWin-Vaccine-Notifier
Automated Python Script to retrieve vaccine slots availability and get notified when a slot is available.
Stars: ✭ 102 (+137.21%)
Mutual labels:  coronavirus, covid-19, covid
Covid-19-API
A realtime API for coronavirus cases on Heroku. Data automatically updated every 10 minutes!
Stars: ✭ 59 (+37.21%)
Mutual labels:  ncov, coronavirus, covid-19
COVID19-taiwan
Release COVID-19 (SARS-CoV-2) FDA / NHI drugs screening results.
Stars: ✭ 24 (-44.19%)
Mutual labels:  coronavirus, covid-19, sars-cov-2
covid19-animation-generator
Generates an animation of COVID-19 data
Stars: ✭ 33 (-23.26%)
Mutual labels:  coronavirus, covid-19, covid
COVID-19-DETECTION
Detect Covid-19 with Chest X-Ray Data
Stars: ✭ 43 (+0%)
Mutual labels:  coronavirus, covid-19, covid
Covid19radar
Open Source / i18n / iOS Android Cross Platform Contact Tracing App by exposure notification framework Xamarin App and Server Side Code
Stars: ✭ 35 (-18.6%)
Mutual labels:  coronavirus, covid-19, covid
Api
API for Current cases and more stuff about COVID-19 and Influenza
Stars: ✭ 2,323 (+5302.33%)
Mutual labels:  coronavirus, covid-19, covid

NOTE: This repo has been moved directly within covid19-scenarios. Please continue the discussion there

COVID-19 Scenarios Data

Data preprocessing scripts and preprocessed data storage for COVID-19 Scenarios project

License GitHub commit activity GitHub contributors GitHub last commit

Join the community on Spectrum Contributions: welcome Discuss: in issue 18

Twitter Follow

Got questions or suggestions?

Image for the link to join the chat

Discover

Simulator Source code repository Data repository Updates
Image with app logo and text 'Try' Image with GutHub logo and text 'Get Involved' Image with GutHub logo and text 'Add Data' Image with Twitter logo and text 'Follow'

Overview

This repository serves as the source of observational data for covid19_scenarios. It ingests data from a variety of sources listed in sources.json. For each source there is a parser written in python in the directory parsers. The data is stored as tsv files (tab separated values) for each location or country. These tabular files are mainly meant to enable data curation and storage, while the web application needs json files as input.

The following commands assume that you have cloned this repository as covid19_scenarios_data and run these commands from outside this repository. To run the parsers, call

python3 covid19_scenarios_data/generate_data.py --fetch

This will update the tables in the directory case-counts. For each parser there is a separate directory which contains individual case counts for each location covered by the parser.

To only run specific parsers, run

python3 covid19_scenarios_data/generate_data.py --fetch --parsers netherlands switzerland

To generate jsons for the app, specific the path the location of the target. This can either be done in combination with updating the tsv files or separately depending on whether the command is run with --fetch or not.

python3 covid19_scenarios_data/generate_data.py \
        --output-cases path/case-counts.json  \
        --output-population path/population.json

To generate the integrated scenario json, run

python3 covid19_scenarios_data/generate_data.py \
        --output-cases path/case-counts.json  \
        --output-scenarios path/scenarios.json

Contents

Country codes

List of countries associated to regions, subregions, and three letter codes supplied by the U.N.

Population data

List of settings used by the default scenario by COVID-19 epidemic simulation for different regions of interest.

Case count data

Within the directory ./case-counts is a structured set of tsv files containing aggregated data for select country and subregion/city. We welcome contributions to keep this data up to date. The format chosen is:

time    cases   deaths   hospitalized    ICU     recovered
2020-03-14 ...

We are actively looking for people to supply data to be used for our modeling!

Contributing and curating data:

Adding parser or case count data for a new region:

The steps to follow are:

Identify a source for case counts data that is updated frequently (at least daily) as outbreak evolves.
  • Write a script that downloads and converts raw data into a dict of lists of lists {'': [['2020-03-20', 1, 0, ...], ['2020-03-21', 2, 0, ...]]}
    • Columns: [time, cases, deaths, hospitalized, ICU, recovered]
    • Important: all columns must be cumulative data.
    • The time column must be a string formatted as YYYY-MM-DD
    • Try to keep the same order of columns for hygiene, although it should not ultimately matter
    • If data is missing, please leave the entry empty (i.e., ['2020-03-20',1, None, None, ...])
    • Use the store_data() function in utils to store the data into .tsv automatically
  • Ensure that the data provided to store_data() is well formatted
    • The keys in the datastructure provided to utils should be
      • For countries: U.N. country names (see country_codes.csv), or
    • For states within countries: -, where is the three letter code for the country (see country_codes.csv), and is the state name
    • The second parameter is the string identifying your parser (see sources.json entry below)
  • Place the script into the parsers directory
    • The name should correspond to the region name desired in the scenario.
    • There must be a function parse() defined that calls store_data() from utils
Update the sources.json file to contain all relevant metadata.
  • The three fields are:
    • primarySource = The URL/path to the raw data
    • dataProvenance = The organization behind the data collection
    • license = The license governing the usage of data
Test your parser and create a Pull Request
  • Create the appropriate directory in case-counts/
  • Test your parser from the directory above (outside your covid19_scenario_data folder) using
python3 covid19_scenarios_data/generate_data.py --fetch --parsers <yourparsername>
  • Check the resulting output in case-counts//, and add the files to your Pull Request together with the parser and sources.json
Add populations data for the additional regions/states.

Case count data is most useful when tied to data on the population it refers to. To ensure new case counts are correctly included in the population presets, add a line to the populationData.tsv for each new region (see Adding/editing population data for a country and/or region below).

Updating/editing case count data for the existing region:

We note that this option is not preferred relative to a script that automatically updates as outlined above. However, if there is no accessible data sources, one can manually enter the data. To do so

Commit a manually entered file into the "manuals" directory
  • Please use only the U.N. designated name for the country, the file name should be .tsv.

Adding/editing population data for a country and/or region:

As of now all data used to initialize scenarios used by our model is found within populationData.tsv It has the following form:

name    populationServed    ageDistribution hospitalBeds    ICUBeds suspectedCaseMarch1st   importsPerDay   hemisphere
Switzerland ...
  • Names: the U.N. designated name found within country_codes.csv
    • For a sub-region/city, please prefix the name with the three letter country code of the containing country. See country_codes.csv for the correct letters.
  • populationServed: a number with the population size
  • ageDistribution: name of the country the region is within. Must be U.N. designated name
  • hospitalBeds: number of hospital beds within the region
  • ICUBeds: number of ICU beds
  • suspectedCasesMarch1st: The number of cases thought to be within the region on March 1st.
  • importsPerDay: number of suspected import cases per day
  • hemisphere: either 'Northern', 'Southern', or 'Tropical', used to determine parameters for the epidemiology

At least one of suspectedCasesMarch1st and importsPerDay needs to be non-zero. Otherwise there is no outbreak (good news in principle, but not useful for exploring scenarios).

License

Mixed

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].