All Projects → epiforecasts → covid-rt-estimates

epiforecasts / covid-rt-estimates

Licence: MIT license
National and subnational estimates of the time-varying reproduction number for Covid-19

Programming Languages

r
7636 projects
python
139335 projects - #7 most used programming language
shell
77523 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to covid-rt-estimates

web-coronavirus-stats
🌎 🦠 😷 Coronavirus disease (COVID-2019) global / world / country statistics and reports
Stars: ✭ 2 (-93.55%)
Mutual labels:  country, covid-19
Covid19radar
Open Source / i18n / iOS Android Cross Platform Contact Tracing App by exposure notification framework Xamarin App and Server Side Code
Stars: ✭ 35 (+12.9%)
Mutual labels:  country, covid-19
CovidAndroid
Android app to track and record COVID status. Mainly for Ethiopia
Stars: ✭ 18 (-41.94%)
Mutual labels:  covid-19
Covid19arData
Data COVID-19 Argentina actualizada y en formatos abiertos.
Stars: ✭ 51 (+64.52%)
Mutual labels:  covid-19
world
A Laravel package which provides a list of the countries, states, cities, currencies, timezones and languages.
Stars: ✭ 479 (+1445.16%)
Mutual labels:  country
COVID19-Algeria-and-World-Dataset
A COVID-19 dataset with 90 World countries including Algeria.
Stars: ✭ 18 (-41.94%)
Mutual labels:  covid-19
Kaggle
Kaggle Kernels (Python, R, Jupyter Notebooks)
Stars: ✭ 26 (-16.13%)
Mutual labels:  covid-19
covid19 scenarios data
Data preprocessing scripts and preprocessed data storage for COVID-19 Scenarios project
Stars: ✭ 43 (+38.71%)
Mutual labels:  covid-19
epidemic-simulator
A HTML/JavaScript simulator for an epidemc on a population
Stars: ✭ 23 (-25.81%)
Mutual labels:  covid-19
the-researcher-covid-tracker
ระบบติดตามและรายงานข้อมูลการระบาดและการฉีดวัคซีน COVID-19 ในประเทศไทย
Stars: ✭ 111 (+258.06%)
Mutual labels:  covid-19
awesome-covid-19-resources
A curated list of awesome resources for COVID-19
Stars: ✭ 36 (+16.13%)
Mutual labels:  covid-19
GeoLite2-Country
GeoLite2-Country.mmdb.gz CDN files based on Free Open Source CDN jsDelivr!
Stars: ✭ 69 (+122.58%)
Mutual labels:  country
COVID-19-historical-data-visualization-2019-nCoV-
使用BlankerL提供的数据仓库实现的新型冠状病毒疫情数据可视化
Stars: ✭ 47 (+51.61%)
Mutual labels:  covid-19
covid19
This API provides updated real-time data on coronavirus cases from the worldometers page, provided by the most reputable organizations and statistical offices in the world.
Stars: ✭ 77 (+148.39%)
Mutual labels:  covid-19
vacme-zurich-parser
Helps to find available slots on zh.vacme.ch corona vaccination service
Stars: ✭ 12 (-61.29%)
Mutual labels:  covid-19
red-cross
官方公示数据概览
Stars: ✭ 18 (-41.94%)
Mutual labels:  covid-19
COVID-19-train-audio
COVID-19 Coughs files for training AI models
Stars: ✭ 39 (+25.81%)
Mutual labels:  covid-19
coronavirus-dresden
Collects official SARS-CoV-2 infection statistics published by the city of Dresden.
Stars: ✭ 19 (-38.71%)
Mutual labels:  covid-19
SupplyInfo
Help your neighbourhood get supplies in the most efficient and safe way possible. Alert your locality on available essentials in the neighbourhood by using Neighbourhood Supply.
Stars: ✭ 17 (-45.16%)
Mutual labels:  covid-19
covidtrackerapiwrapper
CovidSharp is a crossplatform C# API wrapper for the Coronavirus tracking API (https://github.com/ExpDev07/coronavirus-tracker-api)
Stars: ✭ 11 (-64.52%)
Mutual labels:  covid-19

National and subnational estimates of the time-varying reproduction number for Covid-19

MIT license Status Website epiforecasts.io/covid

This repository contains estimates of the time-varying reproduction number for every country in the world listed in the ECDC Covid-19 data source and subnational estimates for 9 countries.

Summarised estimates as csv's can be found in the **/summary folders. National estimates can be found in the national folder and subnational estimates in the subnational/country subfolder depending on the country of interest.

All regions have Rt estimates based on case counts. In some regions, we also separately estimate Rt using counts of hospital admissions or deaths. The differences between each of these estimates might suggest uneven or changing transmission by age and/or severity in the general population. For more on the influence and different uses of data source on Rt, see here.

Latest results

Estimates are generated using {EpiNow2} and presented on epiforecasts.io/covid (which also outlines the method used). If using these estimates please consider citing our associated paper.

To confirm the latest version check the production date in the metadata tab on the relevant github link. Alternatively check the Version tab to see how recently it was produced (Note EST timezone).

Dataset Produced? rt / summary files
regional-cases ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/region/cases/summary
regional-deaths ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/region/deaths/summary
cases ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/national/cases/summary
deaths ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/national/deaths/summary
belgium ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/belgium/cases/summary
brazil ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/brazil/cases/summary
canada ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/canada/cases/summary
colombia ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/colombia/cases/summary
germany ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/germany/cases/summary
india https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/india/cases/summary
italy ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/italy/cases/summary
russia https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/russia/cases/summary
united-kingdom ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/united-kingdom/cases/summary
united-kingdom-deaths ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/united-kingdom/deaths/summary
united-kingdom-admissions ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/united-kingdom/admissions/summary
united-kingdom-local ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/united-kingdom-local/cases/summary
united-kingdom-local-deaths ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/united-kingdom-local/deaths/summary
united-kingdom-local-admissions ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/united-kingdom-local/admissions/summary
united-states ✔️ https://github.com/epiforecasts/covid-rt-estimates/tree/master/subnational/united-states/cases/summary

Updating the estimates

  1. Clone the repository (This results in shallow clone with just the HEAD commit, remove the --depth flag for a full clone but note that this will take some time as the full history is large).
git clone --depth 1 https://github.com/epiforecasts/covid-rt-estimates.git

Using a remote server

Run the following on the command line replacing path-to-key, username@public-ip-of-server, github-username, and github-pat with your information. Note this is not a secure way of transferring your GitHub PAT.

curl --fail https://raw.githubusercontent.com/epiforecasts/covid-rt-estimates/master/bin/update-via-ssh.sh > update-via-ssh.sh
sudo bash update-via-ssh.sh path-to-key username@public-ip-of-server github-username github-pat

See bin/update-via-ssh.sh for details on what this script is doing and the more detailed step by step instructions below.

Using Docker

  1. Log in to GitHub Docker package repository.
docker login docker.pkg.github.com

Script approach

  1. (Optional - must be done at least once) Update the docker container (by default this pulls a built image passing "build" instead triggers a build based on local files).
sudo bash bin/update-docker.sh
  1. Run the following in a bash terminal (see docker logs covidrtestimates for runtime information).
sudo bash bin/update-via-docker.sh

Step by step

  1. (Optional) Build the docker container locally.
docker build . -t covidrtestimates
  1. (Optional). Alternatively pull the built docker container.
docker pull docker.pkg.github.com/epiforecasts/covid-rt-estimates/covidrtestimates:latest
docker tag docker.pkg.github.com/epiforecasts/covid-rt-estimates/covidrtestimates:latest covidrtestimates
  1. Update the estimates (see docker logs covidrtestimates for runtime information).
# This command uses the code that ships with in the docker image. You can use
# your own version by mounting it in the container
sudo docker run -d --user rstudio --name covidrtestimates covidrtestimates /bin/bash bin/update-estimates.sh

Using R

  1. Install dependencies.
devtools::install_dev_deps()
  1. Run Rscript R/run-region-updates.R.

Adding --help will show documentation and the command options. This can run all or some regions and subregions, control logging, exclude unstable regions and set the maximum execution time for each set of analysis.

Note: Currently regions are either global or country level but the region/subregion pattern could be reused on any level of parent/child geographic dataset.

A timing log will be output and updated in runtimes.csv. Times of -1 = error and 999999 = killed by timeout

Development environment

This analysis was developed in a docker container based on the epinow2 docker image.

To build the docker image run (from the covid-rt-estimates directory):

docker build . -t covidrtestimates

Alternatively to use the prebuilt image first login into the GitHub package repository using your GitHub credentials (if you have not already done so) and then run the following:

# docker login docker.pkg.github.com
docker pull docker.pkg.github.com/epiforecasts/covid-rt-estimates/covidrtestimates:latest
docker tag docker.pkg.github.com/epiforecasts/covid-rt-estimates/covidrtestimates:latest covidrtestimates

To run the docker image run:

docker run -d -p 8787:8787 --name covidrtestimates -e USER=covidrtestimates -e PASSWORD=covidrtestimates covidrtestimates

The rstudio client can be found on port :8787 at your local machines ip. The default username:password is covidrtestimates:covidrtestimates, set the user with -e USER=username, and the password with - e PASSWORD=newpasswordhere. The default is to save the analysis files into the user directory.

To mount a folder (from your current working directory - here assumed to be tmp) in the docker container to your local system use the following in the above docker run command (as given mounts the whole covidrtestimates directory to tmp).

--mount type=bind,source=$(pwd)/tmp,target=/home/covidrtestimates

To access the command line run the following:

docker exec -ti covidrtestimates bash

To add another country see SMG.md

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].