extr_ctd | R Documentation |
This function queries the Comparative Toxicogenomics Database API to retrieve data related to chemicals, diseases, genes, or other categories.
extr_ctd(
input_terms,
category = "chem",
report_type = "genes_curated",
input_term_search_type = "directAssociations",
action_types = NULL,
ontology = NULL,
verify_ssl = FALSE,
verbose = TRUE,
...
)
input_terms |
A character vector of input terms such as CAS numbers or IUPAC names. |
category |
A string specifying the category of data to query. Valid options are "all", "chem", "disease", "gene", "go", "pathway", "reference", and "taxon". Default is "chem". |
report_type |
A string specifying the type of report to return. Default is "genes_curated". Valid options include:
|
input_term_search_type |
A string specifying the search method to use. Options are "hierarchicalAssociations" or "directAssociations". Default is "directAssociations". |
action_types |
An optional character vector specifying one or more interaction types for filtering results. Default is "ANY". Other acceptable inputs are "abundance", "activity", "binding", "cotreatment", "expression", "folding", "localization", "metabolic processing"... See https://ctdbase.org/tools/batchQuery.go for a full list. |
ontology |
An optional character vector specifying one or more ontologies for filtering GO reports. Default NULL. |
verify_ssl |
Boolean to control of SSL should be verified or not. |
verbose |
A logical value indicating whether to print detailed messages. Default is TRUE. |
... |
Any other arguments to be supplied to |
A data frame containing the queried data in CSV format.
Davis, A. P., Grondin, C. J., Johnson, R. J., Sciaky, D., McMorran, R., Wiegers, T. C., & Mattingly, C. J. (2019). The Comparative Toxicogenomics Database: update 2019. Nucleic acids research, 47(D1), D948–D954. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/nar/gky868")}
Comparative Toxicogenomics Database
input_terms <- c("50-00-0", "64-17-5", "methanal", "ethanol")
dat <- extr_ctd(
input_terms = input_terms,
category = "chem",
report_type = "genes_curated",
input_term_search_type = "directAssociations",
action_types = "ANY",
ontology = c("go_bp", "go_cc")
)
str(dat)
# Get expresssion data
dat2 <- extr_ctd(
input_terms = input_terms,
report_type = "cgixns",
category = "chem",
action_types = "expression"
)
str(dat2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.