download_ctd_chem: Function to download checmicals available in CTDbase

Description Usage Arguments Details Value Examples

View source: R/download_ctd.R

Description

This function download the "Chemical vocabulary" file (CTD_chemicals.tsv.gz) from http://ctdbase.org/downloads.

Usage

1
2
download_ctd_chem(filename = "CTD_chemicals.tsv.gz", mode = "auto",
  verbose = FALSE)

Arguments

filename

(default "CTD_chemicals.tsv.gz") Name of the file in the local system.

mode

(default "auto") Mode passed to download.file.

verbose

(default FALSE) If set to TRUE is shows relevant information of each step.

Details

The field included in the file (CTD_chemicals.tsv.gz) are:

  1. ChemicalName

  2. ChemicalID (MeSH identifier)

  3. CasRN (CAS Registry Number, if available)

  4. Definition

  5. ParentIDs (identifiers of the parent terms; '|'-delimited list),

  6. TreeNumbers (identifiers of the chemical's nodes; '|'-delimited list),

  7. ParentTreeNumbers (identifiers of the parent nodes; '|'-delimited list),

  8. Synonyms ('|'-delimited list)

  9. DrugBankIDs ('|'-delimited list)

Value

Passed name into filename argument if it could be download 1 otherwise.

Examples

1
2
download_ctd_chem()
file.exists( "CTD_chemicals.tsv.gz" )

CTDquerier documentation built on Oct. 31, 2019, 2:57 a.m.