All Projects → epiforecasts → NCoVUtils

epiforecasts / NCoVUtils

Licence: Unknown, MIT licenses found Licenses found Unknown LICENSE MIT LICENSE.md
Utility functions for the 2019-NCoV outbreak

Programming Languages

r
7636 projects
Dockerfile
14818 projects

Projects that are alternatives of or similar to NCoVUtils

SacredUtils
Configuration utility for Sacred & Sacred Underworld with Material Design. Abandoned 05/07/2020.
Stars: ✭ 27 (+0%)
Mutual labels:  utilities
lintje
Lintje is an opinionated linter for Git.
Stars: ✭ 25 (-7.41%)
Mutual labels:  utilities
shouko
Xpand the feature set of your Android!
Stars: ✭ 118 (+337.04%)
Mutual labels:  utilities
COVID19-taiwan
Release COVID-19 (SARS-CoV-2) FDA / NHI drugs screening results.
Stars: ✭ 24 (-11.11%)
Mutual labels:  2019-ncov
rorshach
A watchman for your directories. Rorshach allows you to listen to file system changes and run commands when these events occur.
Stars: ✭ 26 (-3.7%)
Mutual labels:  utilities
elixir-utilities-web
Utilties for the Developer. Regex, HTTP echo. Diffing
Stars: ✭ 36 (+33.33%)
Mutual labels:  utilities
dpytools
Collection of easy to use, beginner friendly but powerful, orthogonal tools to speed up discord bots development (discord.py)
Stars: ✭ 23 (-14.81%)
Mutual labels:  utilities
Puppy
Daily Use Utilities and Frameworks by .NET Core
Stars: ✭ 14 (-48.15%)
Mutual labels:  utilities
sugar
moved to https://git.matthewbutterick.com/mbutterick/sugar
Stars: ✭ 19 (-29.63%)
Mutual labels:  utilities
table2ascii
Python library for converting lists to fancy ASCII tables for displaying in the terminal and on Discord
Stars: ✭ 31 (+14.81%)
Mutual labels:  utilities
JimmysUnityUtilities
A bunch of code I like to have on hand while working in Unity
Stars: ✭ 93 (+244.44%)
Mutual labels:  utilities
tsafe
🔩 The missing TypeScript utils
Stars: ✭ 285 (+955.56%)
Mutual labels:  utilities
AutoScreenshot
Automatic screenshot maker for Windows
Stars: ✭ 49 (+81.48%)
Mutual labels:  utilities
rebellion
A collection of core libraries for Racket
Stars: ✭ 78 (+188.89%)
Mutual labels:  utilities
OrganizeMediaFiles
a collection of Python scripts that help you organize media files into a directory tree "year/month" based on metadata , using exiftool
Stars: ✭ 24 (-11.11%)
Mutual labels:  utilities
roku-libs
Compilation of utilities for Roku development
Stars: ✭ 47 (+74.07%)
Mutual labels:  utilities
common
Metarhia Common Library
Stars: ✭ 55 (+103.7%)
Mutual labels:  utilities
microlibs-scala
No description or website provided.
Stars: ✭ 24 (-11.11%)
Mutual labels:  utilities
kitty-theme-changer
Obsolete: use "kitty +kittens themes"
Stars: ✭ 26 (-3.7%)
Mutual labels:  utilities
COVID-19-historical-data-visualization-2019-nCoV-
使用BlankerL提供的数据仓库实现的新型冠状病毒疫情数据可视化
Stars: ✭ 47 (+74.07%)
Mutual labels:  2019-ncov

Data extraction tools for the Covid-19 outbreak

badge R-CMD-check Codecov test coverage develVersion Documentation DOI

This package is now depreciated with development being moved to covidregionaldata

Note: This package makes extensive use of memoise and writes a .cache to the directory in which its functions are run. This speeds up data retrieval and avoids hitting rate limits but does not follow CRAN best practice. Use with care. The cache can be reset with reset_cache() when updated data is required from the online source.

Installation

Install the development version of the package with:

remotes::install_github("epiforecasts/NCoVUtils")

Usage

Worldwide data

There are two sources of worldwide, country-level data on cases and deaths.

  1. Extract total global cases and deaths by country, and specify source, using:
  • NCoVUtils::get_total_cases(source = c("WHO", "ECDC"))
  1. Extract daily international case and death counts compiled by the WHO using:
  • NCoVUtils::get_who_cases(country = NULL, daily = TRUE))
  1. Extract daily international case and death counts compiled by ECDC using:
  • NCoVUtils::get_ecdc_cases()

A further function for worldwide data extracts non-pharmaceutical interventions by country:

  • NCoVUtils::get_interventions_data()

And anonymised international patient linelist data can be imported and cleaned with:

  • NCoVUtils::get_linelist()

Sub-national data

We have several functions to extract sub-national level data by country. These are typically at the admin-1 level, the largest regions available. We are also working on joining the data to standard georeferencing codes to allow easy mapping.

Currently we include functions for sub-national data in the following countries:

Europe

  • Belgium

  • France

  • Germany

  • Italy

  • Spain

  • United Kingdom

Americas

  • Canada

  • United States

Eastern Mediterranean

  • Afghanistan

Western Pacific

  • Korea

  • Japan

South-East Asia

  • None currently available

Africa

  • None currently available

We are working to improve and expand the package: please see the Issues and feel free to comment. We are keen to standardise geocoding (issues #81 and #84) and include data on priority countries (#72). As our capacity is limited, we would very much appreciate any help on these and welcome new pull requests.

Development

Set up

Set your working directory to the home directory of this project (or use the provided Rstudio project). Install the analysis and all dependencies with:

remotes::install_github("epiforecasts/NCoVUtils", dependencies = TRUE)

Render documentation

Render the documentation with the following:

Rscript inst/scripts/render_output.R

Docker

This package is developed in a docker container based on the tidyverse docker image.

To build the docker image run (from the NCoVUtils directory):

docker build . -t ncovutils

To run the docker image run:

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

The rstudio client can be found on port :8787 at your local machines ip. The default username:password is ncovutils:ncovutils, 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 ncovutils directory to tmp).

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

To access the command line run the following:

docker exec -ti ncovutils bash

Alternatively the package environment can be accessed via binder.

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