Learn R Programming

extractox (version 1.2.0)

extr_tox: Extract Toxicological Information from Multiple Databases

Description

This wrapper function retrieves toxicological information for specified chemicals by calling several external functions to query multiple databases, including PubChem, the Integrated Chemical Environment (ICE), CompTox Chemicals Dashboard, and the Integrated Risk Information System (IRIS) and other.

Usage

extr_tox(casrn, verbose = TRUE, force = TRUE, delay = 2)

Value

A list of data frames containing toxicological information retrieved from each database:

who_iarc_monographs

Lists if any, the WHO IARC monographs related to that chemical.

pprtv

Risk assessment data from the EPA PPRTV

ghs_dat

Toxicity data from PubChem's Globally Harmonized System (GHS) classification.

ice_dat

Assay data from the Integrated Chemical Environment (ICE) database.

iris

Risk assessment data from the IRIS database.

comptox_list

List of dataframe with toxicity information from the CompTox Chemicals Dashboard.

Arguments

casrn

A character vector of CAS Registry Numbers (CASRN) representing the chemicals of interest.

verbose

A logical value indicating whether to print detailed messages. Default is TRUE.

force

Logical indicating whether to force a fresh download of the EPA PPRTV database. Default is TRUE.

delay

Numeric value indicating the delay in seconds between requests to avoid overwhelming the server. Default is 3 seconds.

Details

Specifically, this function:

  • Calls extr_monograph to return monographs informations from WHO IARC.

  • Calls extr_pubchem_ghs to retrieve GHS classification data from PubChem.

  • Calls extr_ice to gather assay data from the ICE database.

  • Calls extr_iris to retrieve risk assessment information from the IRIS database.

  • Calls extr_comptox to retrieve data from the CompTox Chemicals Dashboard.

Examples

Run this code
# \donttest{
condathis::with_sandbox_dir({ # this is to write on tempdir as for CRAN policies # nolint
  Sys.sleep(4) # To avoid overwhelming the server
  extr_tox(casrn = c("100-00-5", "107-02-8"), delay = 4)
})
# }

Run the code above in your browser using DataLab