Skip to content

kaitejohnson/subregionalcovid19

 
 

Repository files navigation

subregionalcovid19

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.

Citation

Please cite our work as:

Beckett, S.J., Brandel-Tanis F., Nguyen Q., Chande A., Lee S., Rishishwar L., Andris C., Weitz J.S. subregionalcovid19: global processing and mapping infectious cases of COVID-19 at subnational scales ...

Installation

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

library("devtools")
install_github("sjbeckett/subregionalcovid19")
library("subregionalcovid19")

Use

Functionality is provided to load in data for a particular country, for example:

US <- LoadUS()

Malaysia <- LoadMalaysia()

#Note that to load data for the Philippines the googledrive package is used, requiring users google credentials.
#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 <- LoadPhilippines()

or to load all available datasets as:

GLOBALMAP <- LoadCountries()
GLOBALMAP <- tidy_Data(GLOBALMAP) #sets data older than 30 days, or with negative or zero differences in active cases to NA.

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

#show per capita active cases per 100,000 people in leaflet
PerCapitaMap_leaflet(GLOBALMAP,100000)

#show per capita active cases per 100,000 people in leaflet
PerCapitaMap_tmap(GLOBALMAP,100000)

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:

#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)

#show risk that one or more people are infectious in a group of 100 using tmap
EventMap_tmap(US,100)

#maps can be saved using tmap commands:
MAP = EventMap_tmap(US,100)
tmap_save(MAP,"US_RiskMap.png")

#we can also create a table of event risk by location (first dropping geometry) as:
USDAT <- sf::st_drop_geometry(US) %>%
    dplyr::as_tibble()
create_c19r_data(df_in = USDAT)

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • R 100.0%