Skip to content

unicef/get_zika_cases_from_paho

Repository files navigation

Get zika case files from Paho

Each Epi week, the Pan American Health Organization posts a new excel file containing the number of new cases per country. Code in this repository fetches that data to store in JSON, and also aggregates by ISO week in order to compare with other data sets.

Setup

git clone git@github.com:unicef/get_zika_cases_from_paho.git
cd get_zika_cases_from_paho
cp config-sample.js config.js
bash setup.sh
npm install
Download excel files

Download excel files with international cases by epi week to raw_dir (config.js). files are saved as json since had difficulty saving as xls.

node fetch_cases.js
Convert to JSON

Read raw files and transform to usable json objects useful for running models.

node summarize_cases.js
Aggregate by ISO week

To group new Epi week cases by ISO week, we use a simple “week to day” algorithm — i.e., take the total number of new cases, divide it by the number of days since the publication of the last Paho file, and assign that value to each day leading up to the end of that epi week.

For an indepth explanation read Epi week to ISO week - overlaying virus case data with mobility..

test
mocha ./lib/epi2iso_test.js
run
node group_paho_by_iso.js --provider paho

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published