query_ctd_gene: Function to query CTDbase using gene terminology ( Gene...

View source: R/query_ctd_gene.R

query_ctd_geneR Documentation

Function to query CTDbase using gene terminology ( Gene Symbol )

Description

This function checks for CTDbase gene vocabulary and query CTDbase for each one, downloading gene-gene interactions, chemicals interactions, associated disease, associated KEGG pathways and associated GO terms.

Usage

query_ctd_gene(terms, ask = TRUE, verbose = FALSE)

Arguments

terms

Character vector with the genes used in the query.

ask

(default TRUE) If TRUE it asks the the persistent location must be used to save the vocabulary if it was not downloaded previously.

verbose

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

Value

An object of class CTDdata.

Examples

# Example in a tryCatch, since we are performing a connection to a server we might
# get a refused connection due to a server rejection. Evaluate the recieved HTTP 
# message to understand if the server is not available or if your IP adress is temporarly restricted
rst <- tryCatch({query_ctd_gene( terms = c( "APP", "HMOX1A", "hmox1" ), verbose = TRUE )}, error = function(w){NULL})

isglobal-brge/CTDquerier documentation built on Oct. 6, 2022, 1:18 p.m.