Skip to content

Latest commit

 

History

History
83 lines (60 loc) · 3.27 KB

README.md

File metadata and controls

83 lines (60 loc) · 3.27 KB

Development

Data Vaccinations docs Testing docs

Here you will find all the different scripts and tools that we use to generate the data.

Currently, most of the pipelines have been integrated into our cowidev library. For details about the library structure and guidelines to contribute please refer to the library documentation.

Folders

Folder Description
docs/ Development documentation.
grapher/ Hosts internal files that power our grapher visualizations.
input/ External files used to compute derived metrics, such as X-per capita, and aggregate groups, such as 'Asia', etc.
output/ Temporary files. Only for development purposes. Use it at your own risk.
src/cowidev/ cowidev library. It contains the code for almost all project's pipelines.
scripts Legacy folder. Contains some parts of the code, such as the COVID-19 testing collection scripts. The code is a mixture of R and Python scripts.

Note that the folder public/data is not to be modified, as it contains output files generated by this pipeline.

Library cowidev

Install it by runing pip install . from this directory.

Currently it contains the code for the following data pipelines:

  • Excess mortality
  • Google Mobility
  • OxCGRT
  • Variants
  • Vaccination
  • YouGov

Vaccination data

📁 Find it at scripts/vaccinations/

It is pobably the most mature and complex process. It has a submodule in the cowidev library that provides all the tools to run all country importers.

More info:

Test data

📁 Find it at scripts/testing/

It resembles very much the architecture of the vaccination pipeline, but differs in some key points. The most noticeable difference is that it contains both R and python code. We currently prefer contributions in Python.

More info:

Excess Mortality data

📁 Find it at cowidev.excess_mortality

Collects excess mortality data and exports it to human-readable format.

More info:

Run it:

python -m cowidev.excess_mortality etl

YouGov

📁 Find it at cowidev.yougov

Run it:

python -m cowidev.yougov

Others

📁 Find them at scripts/