localcovid19now

localcovid19now: processing and mapping COVID-19 case data at subnational scales - Published in JOSS (2023)

https://github.com/sjbeckett/localcovid19now

Science Score: 93.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
    Found 8 DOI reference(s) in README and JOSS metadata
  • Academic publication links
    Links to: joss.theoj.org
  • Committers with academic emails
  • Institutional organization owner
  • JOSS paper metadata
    Published in Journal of Open Source Software
Last synced: 6 months ago · JSON representation

Repository

processing and mapping COVID-19 case data at subnational scales

Basic Info
Statistics
  • Stars: 5
  • Watchers: 6
  • Forks: 6
  • Open Issues: 0
  • Releases: 1
Created over 4 years ago · Last pushed about 3 years ago
Metadata Files
Readme License

README.md

localcovid19now

This repository serves as a framework to assemble and visualize recent case data from regional data sources across the globe. The package was assembled by researchers at the Georgia Institute for Technology and the Applied Bioinformatics Laboratory, and forms a core component of exposure risk calculations used in the COVID-19 Event Risk Tool.

We compile data from a variety of sources.

A description of the package can be found here or in our paper.

DOI

Citation

Please cite our work as:

Beckett, S.J., Brandel-Tanis F.A., Nguyen Q., Chande A.T., Rishishwar L., Andris C., Weitz J.S. 2023. localcovid19now: processing and mapping COVID-19 case data at subnational scales. Journal of Open Source Software, 8(81), 4898, https://doi.org/10.21105/joss.04898

Installation

The localcovid19now library is available in R. It can be installed by running:

```R library("devtools") install_github("sjbeckett/localcovid19now")

library("localcovid19now") ``` We note that our package uses other common packages across the R ecosystem to run. The installation of these packages should be initialized by the above commands. We also note that some users may need to change default timeout settings in order to install the package.

Use

Functionality is provided to load in data for a particular country, for example: ```R US <- LoadData("LoadUS")

Malaysia <- LoadData("LoadMalaysia")

USandMalaysia <- LoadData(c("LoadUS","LoadMalaysia"))

Note that to load data for the Philippines the googledrive package is used, requiring users' google credentials. The permission to "See, edit, create, and delete all of your Google Drive files." needs to be checked for this to work.

See more here: https://googledrive.tidyverse.org/reference/drive_auth.html

credentials can be set before running the function:

googledrive::drive_auth(email = TRUE)

Philippines <- LoadData("LoadPhilippines")

A list of loading options is given by:

countrylist

``` or to load all available datasets as:

```R GLOBALMAP <- LoadData() #note, by default, this applies tidying to data such that countries whose data is older than 30 days is dropped.

can additionally see the full scope of potential datasets as:

GLOBALMAP2 <- LoadData(dropNACountry = FALSE) ```

Once loaded, the per capita active case data can be mapped with built in helper functions: ```R

show per capita active cases per 100,000 people in leaflet for GLOBALMAP

PerCapitaMap_leaflet(GLOBALMAP,100000)

show per capita active cases per 100,000 people in tmap for GLOBALMAP2

PerCapitaMap_tmap(GLOBALMAP2,100000) ```

Active cases per capita across the globe

Additionally, with a provided assumed ascertainment bias (ratio between true infections and recorded cases), the risk that one or more people in a group of a particular size can be estimated and mapped:

```R

assume an ascertainment bias of 4 infections per recorded case.

US$AB <- 4

show risk that one or more people are infectious in a group of 50 using leaflet

EventMap_leaflet(US,50,US$AB)

show risk that one or more people are infectious in a group of 100 using tmap

EventMap_tmap(US,100,US$AB)

maps can be saved using tmap commands. Here we also use a projection more suited to the US:

MAP = EventMaptmap(US,100,US$AB,projection=5070) tmap::tmapsave(MAP,"US_RiskMap.png")

Some resources for choosing projections can be found here: https://proj.org/usage/index.html and here: https://epsg.io/ and

we can also create a table of event risk by location as:

createc19rdata(dfin = US, ascbias_list = cbind(AB4 = US$AB)) ```

event risk in the US

We caution that the case ascertainment bias may differ both across different regions and across time (due to differences in testing strategies).

Community guidelines

We welcome contributions from the community. We encourage and recommend that feedback, bug reports, and feature requests should first be documented as an Issue on GitHub.

Owner

  • Name: Stephen Beckett
  • Login: sjbeckett
  • Kind: user
  • Location: Atlanta
  • Company: Georgia Institute of Technology

JOSS Publication

localcovid19now: processing and mapping COVID-19 case data at subnational scales
Published
January 21, 2023
Volume 8, Issue 81, Page 4898
Authors
Stephen J. Beckett ORCID
School of Biological Sciences, Georgia Institute of Technology, Atlanta, GA, United States of America
Freyja A. Brandel-Tanis ORCID
School of City and Regional Planning, Georgia Institute of Technology, Atlanta, GA, United States of America, School of Civil and Environmental Engineering, Georgia Institute of Technology, Atlanta, GA, United States of America
Quan Nguyen
School of Biological Sciences, Georgia Institute of Technology, Atlanta, GA, United States of America, School of Chemical and Biomolecular Engineering, Georgia Institute of Technology, Atlanta, GA, United States of America
Aroon T. Chande ORCID
Applied Bioinformatics Laboratory, Georgia Institute of Technology, Atlanta, GA, United States of America
Lavanya Rishishwar ORCID
School of Biological Sciences, Georgia Institute of Technology, Atlanta, GA, United States of America, Applied Bioinformatics Laboratory, Georgia Institute of Technology, Atlanta, GA, United States of America
Clio Andris ORCID
School of City and Regional Planning, Georgia Institute of Technology, Atlanta, GA, United States of America, School of Interactive Computing, Georgia Institute of Technology, Atlanta, GA, United States of America
Joshua S. Weitz ORCID
School of Biological Sciences, Georgia Institute of Technology, Atlanta, GA, United States of America, School of Physics, Georgia Institute of Technology, Atlanta, GA, United States of America, Institut de Biologie, École Normale Supérieure, Paris, France
Editor
Gabriela Alessio Robles ORCID
Tags
epidemiology COVID-19 mapping

GitHub Events

Total
Last Year

Committers

Last synced: 10 months ago

All Time
  • Total Commits: 232
  • Total Committers: 5
  • Avg Commits per committer: 46.4
  • Development Distribution Score (DDS): 0.44
Past Year
  • Commits: 0
  • Committers: 0
  • Avg Commits per committer: 0.0
  • Development Distribution Score (DDS): 0.0
Top Committers
Name Email Commits
Stephen Beckett b****j@g****m 130
FreyjaBrandelTanis 3****t 79
Aroon Chande g****b@a****o 16
Kaitlyn Johnson k****n@r****g 5
quannguyenminh103 q****3@g****m 2
Committer Domains (Top 20 + Academic)

Issues and Pull Requests

Last synced: 6 months ago

All Time
  • Total issues: 26
  • Total pull requests: 42
  • Average time to close issues: about 2 months
  • Average time to close pull requests: 6 days
  • Total issue authors: 7
  • Total pull request authors: 4
  • Average comments per issue: 2.46
  • Average comments per pull request: 1.14
  • Merged pull requests: 36
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
  • ar0ch (12)
  • sjbeckett (8)
  • welch16 (2)
  • rkassa (1)
  • mbkumar (1)
  • quannguyenminh103 (1)
  • jeanpaulrsoucy (1)
Pull Request Authors
  • sjbeckett (17)
  • freyja-bt (12)
  • ar0ch (10)
  • kaitejohnson (3)
Top Labels
Issue Labels
Pull Request Labels
do-not-merge (1)

Dependencies

.github/workflows/check-release.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/check-r-package v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/draft-pdf.yml actions
  • actions/checkout v2 composite
  • actions/upload-artifact v1 composite
  • openjournals/openjournals-draft-action master composite
.github/workflows/make_maps.yml actions
  • actions/checkout v3 composite
  • actions/upload-artifact v3 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pkgdown.yaml actions
  • JamesIves/github-pages-deploy-action 4.1.4 composite
  • actions/checkout v2 composite
  • r-lib/actions/setup-pandoc v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-commands.yaml actions
  • actions/checkout v2 composite
  • r-lib/actions/pr-fetch v2 composite
  • r-lib/actions/pr-push v2 composite
  • r-lib/actions/setup-r v2 composite
  • r-lib/actions/setup-r-dependencies v2 composite
.github/workflows/pr-links.yaml actions
  • tonyhallett/artifacts-url-comments v1.1.0 composite
DESCRIPTION cran
  • R >= 3.50 depends
  • COVID19 * imports
  • dplyr * imports
  • jsonlite * imports
  • lubridate * imports
  • magrittr * imports
  • purrr * imports
  • readxl * imports
  • rlang * imports
  • sf * imports
  • stringr * imports
  • tibble * imports
  • tidyr * imports
  • tmap * imports
  • usethis * imports
  • utils * imports
  • vroom * imports
  • RColorBrewer * suggests
  • glue * suggests
  • googledrive * suggests
  • here * suggests
  • htmltools * suggests
  • htmlwidgets * suggests
  • httr * suggests
  • knitr * suggests
  • leaflet * suggests
  • pdftools * suggests
  • rmapshaper * suggests
  • rmarkdown * suggests
  • rvest * suggests
  • shiny * suggests
  • testthat >= 3.0.0 suggests