kegg_query: KEGG drug query

Description Usage Arguments Value Examples

View source: R/kegg_query.R

Description

Extracts information from KEGG for a given drug or compound of interest using the KEGG REST API. The POST request is done using the 'httr' package. Given that this is a character vector that is unformated, it is likely unreadable and it is recommended that you run extract_info on the output of this function.

Usage

1
kegg_query(query_string)

Arguments

query_string

A character string with compound or drug name.

Value

The content of the POST request.

Examples

1
2
3
4
5
Query a drug:
aspirin <- kegg_query("aspirin") 

Query a compound:
nad_syn <- kegg_query("dpnh")

diogocamacho/drugminer documentation built on July 20, 2019, 1:48 p.m.